cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
816
Views
0
Helpful
3
Replies

Command output logging

mtobkes
Level 1
Level 1

I would like to know the easiest way to automate the following process:

I have a spreadsheet that I manually enter the output from various IOS commands. Is there a way to automate this process?

i.e. a script that will log command output to either a text file or directly into my spreadsheet.

Any help is much appreciated.

3 Replies 3

bhatia.sachin
Level 1
Level 1

have u tried thru hyperterminal ?? it gives you the capture option an whatever u execute will be captured in a text file..Hope this helps

I'm aware of the logging capabilities of Hyperterminal. What I'm asking is if there is any way to automate the process...

I need a method - e.g. Perl script, SNMP etc. that will allow me to automate the execution of commands on several routers and have the output logged to a file. I have 40 routers that I need output from and I don't want to manually telnet to each.

Thanks

I use the Net:Telnet module available on CPAN. See the README at http://www.cpan.org/modules/by-category/05_Networking_Devices_IPC/Net/Net-Telnet-3.01.readme

If you want to take a look at some scripts that use this module, check the Cisco-centric Open Source Exchange Community (COSI) web page at http://cosi-nms.sourceforge.net/alpha-progs.html. The IOS Command Script Toolkit (http://sourceforge.net/project/showfiles.php?group_id=25401&package_id=26206) have a a number of scripts that should give you enough ideas.

Regards

Steve