11-13-2023 12:47 AM - last edited on 11-24-2023 01:10 PM by Translator
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#
Solved! Go to Solution.
11-13-2023 02:23 AM - edited 11-13-2023 02:26 AM
event manager applet IP-CHANGE-Joy authorization bypass
add this to new EEM and check debug and run.
Joy this is solution I hope
Thanks A Lot
MHM
11-13-2023 12:56 AM
Hello,
the script looks good. What is the output of:
debug event manager action cli
when you run the script manually ?
11-13-2023 01:07 AM - last edited on 11-24-2023 01:11 PM by Translator
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 6.1 cli command "exit"
action 6.2 cli command "conf t"
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
11-13-2023 01:33 AM
@Georg Pauwen I get no output on manually triggerring the script, not even with 'debug event manager all'.
@MHM Cisco World Even with the edit, it doesn't work.
11-13-2023 01:35 AM
dony edit the old one
add new Event with new name and run it manually
Thanks A Lot
MHM
11-13-2023 01:45 AM
@MHM Cisco World That's what I have done, though action 6.1 should be 'end' then 6.2 'conf t' makes sense. It still doesn't get triggered and no debug message is displayed.
11-13-2023 01:52 AM - last edited on 11-24-2023 01:12 PM by Translator
show run
I need to see last EEM you apply
11-13-2023 02:00 AM - last edited on 11-24-2023 01:13 PM by Translator
R1#sh run | sec event manager
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 6.1 cli command "exit"
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"
11-13-2023 02:03 AM - last edited on 11-24-2023 01:13 PM by Translator
event manager applet IP-CHANGE-Joy
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 6.1 cli command "exit"
action 6.2 cli command "conf t"
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-Joy
the EEM is not like edit it, it better add new one
Thanks A Lot
MHM
11-13-2023 02:23 AM
@MHM Cisco World I had turned off the term monitor. Here is partly the output from debug event manager action cli
11-13-2023 02:25 AM
I already send you solution check below
11-13-2023 02:48 AM
Command authorization failed. - you having issue with Authorisation as mentioned my post earlier.
1. how is your authentication (Local or TACACS ?) - make changes accordingly
11-13-2023 02:14 AM
Still not working @MHM Cisco World even with the new EEM. This is quite strange since there are even no debug messages.
11-13-2023 02:23 AM - edited 11-13-2023 02:26 AM
event manager applet IP-CHANGE-Joy authorization bypass
add this to new EEM and check debug and run.
Joy this is solution I hope
Thanks A Lot
MHM
11-13-2023 02:46 AM
This was actually what I needed. I suppose it is because authorization is via TACACS which blocks the commands from being executed. Is that right? Thanks so much for your help
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide