Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help writing script to upgarde cisco routers

Status
Not open for further replies.

amvmr

Technical User
Jun 5, 2002
10
US
Hi

I need help writing a basic script to upgrade Cisco routers thru Procomm plus. the process is simple I don't understand why it isn't working.

I need to send a break
then the text "confreg" enter
enter
enter
enter
enter
enter
"n" enter
enter
enter
enter
"i"

If someone can help I can show you a captured script. Or if you can refer me to some basic scripting instructions I would be greatful.

garth
 
Here you go:

proc main

break
mspause 150
transmit "confreg^M"
mspause 150
transmit "^M"
mspause 150
transmit "^M"
mspause 150
transmit "^M"
mspause 150
transmit "^M"
mspause 150
transmit "^M"
mspause 150
transmit "n^M"
mspause 150
transmit "^M"
mspause 150
transmit "^M"
mspause 150
transmit "^M"
mspause 150
transmit "i"

endproc

If you are using procomm 4.8, there is a complete script reference in the help files.

Regards
frda
 
I am by no means any type of programmer and have absolutely no skills in that field, but have been working on an Aspect script to automate dialing into the out of band management of the routers at my company. I have managed to get the script to work almost to completion, but cannot get it to terminate the call. The command is usually +++ but for some reason it doesn't take when I run the script. Can you please take a look at my script and see if you can spot the discrepancy, or no of the proper command to automate the termination. Please note that the number, password, and username are not real due to company restrictions. Thank you for your time.

proc main
commandmode on
transmit "ATDT"
transmit "number^M"
waitfor "ENTER PASSWORD: " FOREVER
transmit "password^M"
waitfor "CPM>"
transmit "/s^M"
waitfor "CPM>"
transmit "/c 16^M"
waitfor "ORT CONNECT^M^J"
transmit "^M"
waitfor "Username: "
transmit "doej^M"
waitfor "Password: "
transmit "password^M"
waitfor "router>" FOREVER
transmit "+++"
waitfor "K^M^J"
transmit "athn^M"
endproc
 
Hello ...,

If the following lines are ment to go into modem command mode and disconnect the call,

transmit "+++"
waitfor "K^M^J"
transmit "athn^M"

then you can replace them with hangup

waitfor "Username: "
transmit "doej^M"
waitfor "Password: "
transmit "password^M"
waitfor "router>" FOREVER
hangup

Doej!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top