Point me in the right direction.

Posted November 4th, 2008 by bcarroll and filed in Question for Readers

Can someone point me in the right direction?  I need to automate the “wr er” and “reload” of a router.  I need to be able to schedule it and just have it run.  If a password is not set as it should be I need it to run a password recovery.

I guess I need something like IE and IPexpert has for resetting back to defaults at the end of a session.

Anyone know what I need to make this happen?

6 Responses to “Point me in the right direction.”

  1. Rob Routt says:

    I would try a utility like procomm32 or you could just write a batch file I would think. I used to use Procomm32 it to login to different devices daily and gather ping stats, interface resets, buffer info, logs, etc. You could write a script for each device and have it scheduled to run. What would be your first connection? In other words, could you have it telnet to say a 2511, clear all the lines, then move on to the write erase and reload for each one. The password recovery would be tricky because of having to issue the break character when rebooting and then setting the config-register setting. I am sure you can do this, but can you input the logic to figure out if a password is set?? Not sure. Let me think about it.. that would something nice to have for my lab as well even though I am not selling rack time :)

    -R

  2. Wayne Lawson says:

    I know how to make that happen – but it’ll cost ya! ;-)

  3. Brandon says:

    @ Jeremy L. Gaddis:

    Yeah maybe. I dont know enough so I guess Ill have to read a bit. Thanks!

  4. Brandon says:

    @ Rob Routt:

    Thanks! I’ll certainly research it. I think I can use remote power to get it to power cycle and then let the password recovery take over from there.

  5. Etherealmind says:

    I have done this before using Perl and Expect. Expect for the console side, but perl for setup and management. I lost the scripts in my Windows days, but it is not hugely hard to do. But time consuming.

    After all, Wayne has done it ? _grin_ (yes that a joke Wayne)

Leave a Reply