Solved Need help write batch file to login cisco router with PuTTY

November 17, 2016 at 07:41:49
Specs: Windows 7
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


See More: Need help write batch file to login cisco router with PuTTY

Report •

✔ Best Answer
November 19, 2016 at 04:15:10
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***



#1
November 17, 2016 at 07:47:49
I found this:

http://www.snbforums.com/threads/ho...

message edited by beachyhbt


Report •

#2
November 17, 2016 at 08:32:13
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***


Report •

#3
November 17, 2016 at 23:16:39
I'm new to this can explain clearly about this

putty.exe yourusername@yourserverlocationIusemyddns -pw yourpassword


Report •

Related Solutions

#4
November 19, 2016 at 04:15:10
✔ Best Answer
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***


Report •

Ask Question