cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1196
Views
0
Helpful
1
Replies
gaurav61186
Beginner

TCL Script to send an email on cold-start

Hi All,

I am looking for mechanism which can notifiy us once the router boots up after COLD START.

Actually I am intrested in getting the information that the router was unavailable because it was powered off or not.

Is it possible by TCL script? You can also suggest me any other workaround.

Regards,

Gaurav

1 REPLY 1
Joe Clarke
Hall of Fame Cisco Employee

You can use EEM for this.  Tcl would not be required:

event manager applet email-on-reload

event timer cron cron-entry @reboot

action 1.0 cli command "enable"

action 2.0 cli command "show ver"

action 3.0 mail from router@company.com to user@company.com server 10.1.1.1 subject "Router reloaded" body "Router reloaded : $_cli_result"