I have to add a logging server address to about 1000 Cisco routers. I want to use Procomm Plus and an Aspect script for this. Using the script recorder, I captured one update.
Is there a way to modify this so the script reads the routers from a separate list? Reading through the help files, it looks like there is but I am no programmer!
Any help would be appreciated.
proc main
connectmanual TELNET "ROUTER1"
waitfor "Username: "
transmit "USERNAME^M"
waitfor "Password: "
transmit "PASSWORD^M"
waitfor "ROUTER1>"
transmit "ena^M"
waitfor "Password: "
transmit "PASSWORD^M"
waitfor "ROUTER1#"
transmit "config t^M"
waitfor "ROUTER1(config)#"
transmit "logging 192.168.0.1^M"
waitfor "ROUTER1(config)#"
transmit "end^M"
waitfor "ROUTER1#"
transmit "wr^M"
waitfor "ROUTER1#"
transmit "exit^M"
endproc
Is there a way to modify this so the script reads the routers from a separate list? Reading through the help files, it looks like there is but I am no programmer!
Any help would be appreciated.
proc main
connectmanual TELNET "ROUTER1"
waitfor "Username: "
transmit "USERNAME^M"
waitfor "Password: "
transmit "PASSWORD^M"
waitfor "ROUTER1>"
transmit "ena^M"
waitfor "Password: "
transmit "PASSWORD^M"
waitfor "ROUTER1#"
transmit "config t^M"
waitfor "ROUTER1(config)#"
transmit "logging 192.168.0.1^M"
waitfor "ROUTER1(config)#"
transmit "end^M"
waitfor "ROUTER1#"
transmit "wr^M"
waitfor "ROUTER1#"
transmit "exit^M"
endproc