Solved

Cisco show command automation

Posted on 2006-06-28
5
522 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now