Solved

Cisco show command automation

Posted on 2006-06-28
5
540 Views
Last Modified: 2008-03-06
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.
0
Comment
Question by:PJRimmer
5 Comments
 
LVL 13

Expert Comment

by:prashsax
ID: 17001898
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
 
LVL 32

Expert Comment

by:rsivanandan
ID: 17002692
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
 
LVL 2

Expert Comment

by:skags442
ID: 17003186
why not use logging and a syslog server
0
 
LVL 10

Accepted Solution

by:
Sorenson earned 250 total points
ID: 17003684
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
 

Author Comment

by:PJRimmer
ID: 17030973
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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question