December 19 2009
I need to create a batch file to run cisco show commands?
Posted by

feed Under
cisco
1 Comment » |

Tags:
Bat File,
batch,
Batch Commands,
Batch File,
cisco,
Cisco Commands,
Cisco Device,
commands,
create,
Exit,
file,
Logging,
Need,
Running,
show,
Thanks In Advance
How do I create a simple .BAT file that includes logging into a cisco device, running a cisco “show command” , then exit from the switch.
The running of the command and being able to run the command on more than one device (approx 25) are the two most importants needs here. Thanks in Advance.
You can
leave a response, or
trackback from your own site.
Have a look at these forum postings which describe how other people have approached (and apparently solved) this problem:
http://www.experts-exchange.com/Hardware/Routers/Q_21108412.html
http://www.velocityreviews.com/forums/t32024-automating-cisco-switch-configuration-changes.html
They should give you some starting points.
If you are going to write code then consider using Perl rather than a DOS batch file.