can any body hep me in writing a batch file to login cisco router with putty i'm using putty in windows 2008 message edited by dhanusha
That would be the command you would need to run inside the batchfile to invoke putty. You could also run that from the command line to invoke putty as well.
The "yourusername@yourserverlocationIusemyddns " portion would need to be tailored to your system. Most routers don't have a DNS "name" and the default login on most is username = admin, password = admin. So, assuming your router is at 192.168.1.1 your putty command would look as follows:
putty.exe admin@192.168.1.1 -pw admin
It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.***William Henley***
Looking at the info on the link I'm a little surprised. I found myself thinking, this seems rather convoluted. First you're changing to a different drive, then to a different directory then you invoke the command. I'm lazy so the two extra lines of code seem like wasted effort to me. If you make sure putty.exe is located in a directory that is in the system path then it can be invoked without changing drives and/or directories leaving you with a batchfile with a single line of code, the actual putty command. As per the example from the link:
putty.exe yourusername@yourserverlocationIusemyddns -pw yourpassword
Then when you need to connect, you simply invoke the batchfile (again, make sure it's in a pathed directory) and voila, you're connected.
It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.***William Henley***
I'm new to this can explain clearly about this putty.exe yourusername@yourserverlocationIusemyddns -pw yourpassword
That would be the command you would need to run inside the batchfile to invoke putty. You could also run that from the command line to invoke putty as well.
The "yourusername@yourserverlocationIusemyddns " portion would need to be tailored to your system. Most routers don't have a DNS "name" and the default login on most is username = admin, password = admin. So, assuming your router is at 192.168.1.1 your putty command would look as follows:
putty.exe admin@192.168.1.1 -pw admin
It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.***William Henley***