cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
726
Views
0
Helpful
8
Replies

Event manager

Hello,

I need to load some license related commands every time the computer is powered off and back on. I have thought about using event manager but I have not only used it with IP SLA to implement bck and in this case I would not know how to apply it.

Thank you very much in advance

Greetings to all

1 Accepted Solution

Accepted Solutions

Hello,

 

which commands do you need to run ?

 

Here is a basic EEM script that would run each time the syslog pattern is matched. You can add the commands you need:

 

event manager applet LIC_INFO
event syslog pattern "%SYS-5-RESTART: System restarted"
action 1.0 cli command "enable"
action 2.0 cli command "sh lic"

View solution in original post

8 Replies 8

balaji.bandi
Hall of Fame
Hall of Fame
 computer is powered off and back on

not sure we understand this, please explain more

 

below exmple give you how you can do that EEM

 

https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-xe-16/216091-best-practices-and-useful-scripts-for-ee.html

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello

I have a Cisco Catalyst 9800-L wireless controller and there is a licensing issue that we are seeing with the cisco TAC. I need to execute some commands after controller restart and I have thought about using event manager.

Thank you very much for your help

Hello,

 

EEM can respond to syslog messages, and execute commands based on the occurrence of these syslog entries.

 

What log entry do you see when the controller restarts, and what commands do you want to execute ?

Hi Georg

 

This entry for expample :

 

: %SYS-5-RESTART: System restarted --

 

Thank you very much in advance

 

Greetings

Hello,

 

which commands do you need to run ?

 

Here is a basic EEM script that would run each time the syslog pattern is matched. You can add the commands you need:

 

event manager applet LIC_INFO
event syslog pattern "%SYS-5-RESTART: System restarted"
action 1.0 cli command "enable"
action 2.0 cli command "sh lic"

Thank you very much for your help, the cisco tac has solved the incident, anyway I keep the information you have provided us.

Greetings

Hello,

 

curious to know what TAC has answered, can you share their solution ?

Review Cisco Networking for a $25 gift card