Cisco show command automation

Hi,

I need a batch file or script which automatically logs into a Cisco PIX firewall, executes the "show access-lists" command, and then captures the results in csv/excel format so I can read/sort the hit count data easily.

I have no idea where to start on this, so any help would be greatly appreciated!

Many thanks,
PJRimmer.
PJRimmerAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
SorensonConnect With a Mentor Commented:
Kiwi Cat tools, free for up to 5 devices, http://www.kiwisyslog.com/cattools2.htm can be setup to run as a service, gather configs, or run scripted commands, e-mail or save results, etc.  Great for managing  a bunch of systems and maintaining change control on them.  Would work for what you are looking for.
0
 
prashsaxCommented:
You can use Telnet Scripting Tool.
http://www.winsite.com/bin/Info?500000000873

Create your own script which will login to router and save the output in a text file.

0
 
rsivanandanCommented:
Expect is a great tool for such things. Not just the 'show' command but can also do a lot of things. Learning expect is also simple since it uses less stuff to learn.

Cheers,
Rajesh
0
 
skags442Commented:
why not use logging and a syslog server
0
 
PJRimmerAuthor Commented:
Hi Sorenson,

I downloaded Kiwi Cat tools which seems to do the trick, however the captured output has in complete lines and repeated sections. Have you seen this before?
0
All Courses

From novice to tech pro — start learning today.