cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1148
Views
4
Helpful
18
Replies

EEM Script not working when manually triggered

Joy3
Level 1
Level 1

Hallo,

I have the below EEM script configured in C1100 router and I am trying to manually trigger it but it is not working. What could it be that I am doing wrong?

event manager applet IP-CHANGE
event none
action 3.0 cli command "enable"
action 4.0 cli command "conf t"
action 5.0 cli command "interface GigabitEthernet0/0/0"
action 6.0 cli command "ip address 162.92.209.14 255.255.255.252"
action 7.0 cli command "no ip route vrf INTERNET 0.0.0.0 0.0.0.0 dhcp"
action 8.0 cli command "ip route vrf INTERNET 0.0.0.0 0.0.0.0 162.92.209.13"
action 9.0 cli command "exit"

R1#event manager run IP-CHANGE

R1#
18 Replies 18

You are so welcome 

Have a nice weekend 

MHM

balaji.bandi
Hall of Fame
Hall of Fame

couple of things i need to ask.

1. how is your authentication (Local or TACACS ?)

2. how is your VTY Lines Config (can you post that config ?)

3. check is the EVENT registered :

show event manager policy registered

show event manager environment

4. when you enable - try terminal monitor to check the Logs message and also check show logging

5. what version of code running ?

6. what is the outcome if you manually configure the same config on the interface ?

 

handy reference :

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

https://community.cisco.com/t5/networking-knowledge-base/cisco-eem-basic-overview-and-sample-configurations/ta-p/3148479

 

BB

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

How to Ask The Cisco Community for Help

Authorization is via TACACS. Thanks for pointing that out.

sure i was suspected when you mentioned nothing working, that is the reason my suggestion was TACACS issue., Glad all good

BB

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

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card