cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3494
Views
0
Helpful
5
Replies

automation of cisco commands

Hello,

Is there  way how to automatize cisco commands for maintenance like " clear conn " " sh ip interface brief" from a batch or tool?

Regards

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

Sure.  That's what the Embedded Event Manager is for.  With EEM.  For example, to email you the output of "show ip int brie" every day:

event manager applet email-intfs

event timer cron cron-entry "0 8 * * *"

action 1.0 cli command "show ip int brief"

action 2.0 mail from user@example.com from user@example.com subject "Show IP Interface Brief" body "$_cli_result" server 10.1.1.1

More on EEM can be found at http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_eem_overview.html .

Hello thank you for your response., but i would like to know if there is another tool differente from cisco for this kind of scheduel jobs.

Regards,

There are a lot of network management tools that can automate running CLI commands.  What a lot of users do is roll the Expect scripting language into their own tools.  Expect is very flexible and will work across vendors.

http://expect.sourceforge.net/

hello, thank you for your comments, is there a tool similiar to catools maybe?

Regards,

If you mean Kiwi CatTools, those will work with Cisco devices.  If you're looking for free packages to do command scheduling, there is Nagios for general network monitoring and Rancid (http://www.shrubbery.net/rancid/) that can do automatic configuration backup and archive.  On the Cisco commercial side, Cisco Prime LAN Management Solution offers both configuration management and schedulable batch command execution.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: