Home > Archive > CCIE > October 2002 > Erase start chat script - might be useful.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Erase start chat script - might be useful.
Mat P

2002-10-18, 12:46 pm

I passed my written this week and have started in earnest on labs, using www.yeti-gbr1.co.uk online labs.

I got fed up of at the end of each lab, having to go through every router (11 in total if they are all used!) doing an erase start followed by a reload. It just seemed to be one of those repetitive tasks that shouldn't have to be done.

I figured that there must be an easier way, so with Yeti, wrote a chat-script which would erase the config of the routers. I figured that If we were finding it handy you all may on your terminal servers.

It's been tested on a 2500, 2600 and 3600 and will erase the config from any prompt. It will need editing slightly for switches, but I guess most people reading this will be able to do that.

Using a terminal server (a 2600 in yeti's lab) we wrote the following line (careful of the word wrap).

chat-script eraserouters TIMEOUT 10 "" \r "" "exit" "" \r "" "exit" "" \r "" "exit" "" \r "" "enable" "" "wr" "" "erase start" "" \r "" "reload" "" \r

However this still requires you to disconnect sessions and send the script to each individual line, so we wrote a text file you could send via the terminal server transfer file option, which did every line. The config is as follows:

disconnect

disconnect

disconnect


start-chat eraserouters 33
start-chat eraserouters 34
start-chat eraserouters 35

The disconnects terminate any open sessions and the carriage returns are needed to confirm the disconnects (in Yeti's case 11 were needed you may need less) and the 33, 34, 35 refers to the TTY line number, this would need changing depending on the config.

Hopefully some of you will find this useful - anybody else got any handy tips/scripts??
netport

2002-10-21, 1:46 pm

Xcellent stuff! Would be very useful for the home labs.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2009 examnotes.net