cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1925
Views
0
Helpful
1
Replies

Cannot get evert to trigger on or off

Michael Durham
Level 4
Level 4

I am trying to have a sub-interface be enabled at 7am and disabled at 6pm.  This is our guest network only.  I configured the following event but it does not seem to enable or disable the port.

event manager applet Shutdown_Guest-Access_6p-6a
event timer cron cron-entry "0 18 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "interface GigabitEthernet0/1.150"
action 4.0 cli command "shut"
action 5.0 cli command "end"
action 6.0 syslog msg "Interface GigabitEthernet0/1.150 has been shutdown"
event manager applet Start_Guest-Access_6p-6a
event timer cron cron-entry "0 7 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "interface GigabitEthernet0/1.150"
action 4.0 cli command "no shut"
action 5.0 cli command "end"
action 6.0 syslog msg "Interface GigabitEthernet0/1.150 has been restored"

 

#sh ip int bri
Interface IP-Address OK? Method Status Protocol
Embedded-Service-Engine0/0 unassigned YES NVRAM administratively down down
GigabitEthernet0/0 174.77.232.45 YES NVRAM up up
ISM0/0 unassigned YES NVRAM up up
GigabitEthernet0/1 unassigned YES NVRAM up up
GigabitEthernet0/1.100 192.168.100.1 YES NVRAM up up
GigabitEthernet0/1.150 192.168.150.1 YES NVRAM up up
GigabitEthernet0/1.200 192.168.200.1 YES manual up up
GigabitEthernet0/2 unassigned YES unset administratively down down
ISM0/1 unassigned YES unset up up
NVI0 174.77.232.45 YES unset up up
Tunnel0 172.16.1.3 YES NVRAM up up
Tunnel200 172.20.0.1 YES NVRAM up up
Vlan1 unassigned YES unset up up

Any suggestions

1 Reply 1

balaji.bandi
Hall of Fame
Hall of Fame

i do not see any issue on EEM applet high level.

 

1. do you have NTP Sync Correctly

2. worth adding if you have AAA in place

 event manager session cli username USER

 

EDIT : ( i did some test here) - Bold made the trickl.

 

 

event manager applet Shutdown_Guest-Access_6p-6a
event timer cron name Shutdown_Guest-Access_6p-6a "0 18 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "interface GigabitEthernet0/1.150"
action 4.0 cli command "shut"
action 5.0 cli command "end"
action 6.0 syslog msg "Interface GigabitEthernet0/1.150 has been shutdown"
event manager applet Start_Guest-Access_7a-6p
event timer cron name Start_Guest-Access_7a-6p cron-entry "0 7 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "interface GigabitEthernet0/1.150"
action 4.0 cli command "no shut"
action 5.0 cli command "end"
action 6.0 syslog msg "Interface GigabitEthernet0/1.150 has been restored"

 

 

 

BB

=====Preenayamo Vasudevam=====

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

How to Ask The Cisco Community for Help