cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1279
Views
0
Helpful
2
Replies

Embedded Event Manager - Trigger for device startup

TONY SMITH
Spotlight
Spotlight

Hi,

I'm looking for a way to trigger a script when a device restarts, preferably triggered by any sort of reload whether by reload command, power or even fault.   The reason is to enable a couple of debugs by default.   Ideally I'd want the trigger to be something that doesn't create a lot of overhead.   I was thinking that triggering on a syslog string match would mean the system needs to parse every log message to see if it matches my criteria.  The other disadvantage of syslog matching is there doesn't seem to be any particular event message that appears, it seems device specific so would be a matter of looking straight after a restart to see what messages first appear, and choosing one that looks as if it wouldn't pop up at other time.  

Is there any specific trigger for device startup?  

Thanks, Tony S

 

2 Replies 2

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Try using a countdown timer:

!
event manager applet <your_applet>
  event timer countdown time 20
  …
!

cheers,

Seb.

 


@Seb Rupik wrote:

Hi there,

Try using a countdown timer:

Seb.


That works for me, thanks.  Just tested it on a test switch, and I will trial it on our voice gateway by scheduling an out of hours reload.