04-25-2013 05:36 PM
Is it possible this way if I'm making two script? Thanks.
Script 1
For this log:
Apr 24 07:40:01.884 MNL: %LINK-3-UPDOWN: Interface Cellular0/2/0, changed state
to down
ROUTER(config)#event manager applet cell1
ROUTER(config-applet)# event syslog pattern "Interface Cellular0/2/0, changed state to down"
ROUTER(config-applet)# action 1.0 cli command "enable"
ROUTER(config-applet)# action 1.1 cli cmmand "configure term"
ROUTER(config-applet)# action 1.2 cli command "interface Cellular0/2/0"
ROUTER(config-applet)# action 1.3 cli command "no shut"
ROUTER(config-applet)#
Script 2
For this log:
Apr 25 11:17:49.881 MNL: %CELLWAN-2-MODEM_DOWN: Modem in HWIC slot 0/2 is DOWN
ROUTER(config)#event manager applet cell2
ROUTER(config-applet)# event syslog pattern "Modem in HWIC slot 0/2 is DOWN"
ROUTER(config-applet)# action 1.0 cli command "enable"
ROUTER(config-applet)# action 1.1 cli cmmand "reload at 19:00"
ROUTER(config-applet)#
Solved! Go to Solution.
04-25-2013 08:08 PM
I'm no EEM expert here (Joe is), but look at 1.2 and 1.3, shouldn't there be a "shutdown" first before a "no shutdown"?
04-25-2013 08:18 PM
Yeah. haha I'm waiting for his response. But thanks anyway. Appreciate it.
04-25-2013 08:25 PM
I'm not sure what he wants to do, but if the intent is to shut/no shut, then yeah, you need a "shut" in there.
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