RRR

updated

12 years ago

R

RRR

6 Operator

5739 Posts

0

5659

April 2nd, 2014 05:00

How to use a (Windows) CMD batchfile to run commands on Cisco MDS

I need to run some sort of script from a (Windows) host which runs 2 comamnds on the CLI of a Cisco MDS switch. Also: the output should be logged somewhere, preferrably to a log on that host.

Does anyone know how to do this? I want to fully automate it, so copy paste after starting an ssh session by using putty is not an option.

The commands I'm trying to run are:

show logging onboard | i  "Module|FRAMES_DISCARD"

show interface counters | i "fc|B2B"