cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12759
Views
13
Helpful
62
Replies

is it possible to create two scripts?

Josiah Inubio
Level 1
Level 1

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)#

62 Replies 62

Leo Laohoo
Hall of Fame
Hall of Fame

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"?

Yeah. haha I'm waiting for his response. But thanks anyway. Appreciate it.

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.