cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1382
Views
5
Helpful
1
Replies

EEM script to capture router hostname and send in email

ccie_6679
Level 1
Level 1

wokring on an EEM script to monitor an IP and send email when it is down.   I want to deploy on multiple routers and would like to include the router hostname in the body of the email.   Any help is greatly appreciated

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

From a Tcl policy, use the "info hostname" command:

set hostname [info hostname]