This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Change Admin password for all Firewalls Connected to SFM

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.
Parents
  • 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

Reply
  • 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

Children
No Data