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