| 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?? |