Is there a way to change all the Admin Accounts for all the firewalls we manage under SFM . I have to change the password for all 50 + firewalls we manage.
I was wondering if there is an easy way
This thread was automatically locked due to age.
Is there a way to change all the Admin Accounts for all the firewalls we manage under SFM . I have to change the password for all 50 + firewalls we manage.
I was wondering if there is an easy way
Expect script tested from linux client:
#!/usr/bin/expect -f
log_file "/path/to/logfile/expect-xg-cred.[clock format [clock seconds] -format %Y%m%d].log"
set ip_file "list_of_xg_ip_addresses.txt"
set fid [open $ip_file r]
while {[gets $fid ip] != -1} {
spawn ssh -o "StrictHostKeyChecking no" $ip -l admin
expect "password:"
send "oldpasswordhere\r"
expect "Select Menu Number \\\[0-7\\\]:"
send "2\r"
expect "Select Menu Number \\\[0-4\\\]:"
send "1\r"
expect " Enter new password:"
send "newpasswordhere\r"
expect " Re-Enter new Password:"
send "newpasswordhere\r"
expect "Password Changed."
send "\r"
expect "Select Menu Number \\\[0-4\\\]:"
send "0\r"
expect "Select Menu Number \\\[0-7\\\]:"
send "0\r"
expect eof
}
close $fid
Expect script tested from linux client:
#!/usr/bin/expect -f
log_file "/path/to/logfile/expect-xg-cred.[clock format [clock seconds] -format %Y%m%d].log"
set ip_file "list_of_xg_ip_addresses.txt"
set fid [open $ip_file r]
while {[gets $fid ip] != -1} {
spawn ssh -o "StrictHostKeyChecking no" $ip -l admin
expect "password:"
send "oldpasswordhere\r"
expect "Select Menu Number \\\[0-7\\\]:"
send "2\r"
expect "Select Menu Number \\\[0-4\\\]:"
send "1\r"
expect " Enter new password:"
send "newpasswordhere\r"
expect " Re-Enter new Password:"
send "newpasswordhere\r"
expect "Password Changed."
send "\r"
expect "Select Menu Number \\\[0-4\\\]:"
send "0\r"
expect "Select Menu Number \\\[0-7\\\]:"
send "0\r"
expect eof
}
close $fid