I have about 250 Nortel devices (350/450-24T) that need to change the password, I know there were a thread (thread902-286467) related to the same matter so I would like to see if the tool and script that was provided to do the change still available
I just recently wrote an Expect script to automate the process of resetting (changing) all the passwords on ~ 400 Nortel switches.
The later switches might support setting the user passwords through the SNMP MIB but I don't think the 350/450s support it.
Here's a starting point for you;
#!/usr/bin/expect -f
#
# This Expect script was generated by autoexpect on Wed Jul 27 17:25:28 2005
# Expect and autoexpect were both written by Don Libes, NIST.
#
set force_conservative 1 ;# set to 1 to force conservative mode even if
;# script wasn't run conservatively originally
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s -- $arg
}
}
#
set PATH "/root/"
set TELNET "/usr/bin/telnet"
set SWITCH [lindex $argv 0]
set PASSWORD [lindex $argv 1]
set RO "user"
set RW "secure"
set TODAY [timestamp -format %y%m%d ]
set WEEKDAY [timestamp -format %a ]
set DATE [timestamp -format %c ]
set send_human {.1 .3 1 .05 2}
#log_file $PATH/$SWITCH.expect.log
log_file /usr/local/etc/password.expect.log
log_user 0 # Disable logging to STDOUT
#log_user 1 # Enable logging to STDOUT
set timeout 60
spawn $TELNET $SWITCH
match_max 100000
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.