Thursday, May 14, 2009

Cisco mail multiple printouts from EEM applet

http://wiki.nil.com/Time-based_wireless_interface_activity
ip host mail-gw.mydomain.info 10.0.0.1
event manager environment _mail_smtp mail-gw.mydomain.info
event manager environment _mail_domain mydomain.info
event manager environment _mail_rcpt operator@mydomain.info
!
event manager applet RouterReload
event syslog occurs 1 pattern "%SYS-5-RESTART"
action 1.0 cli command "delete /force flash:output.txt"
action 1.1 cli command "show version | append flash:output.txt"
action 1.2 cli command "show logging | append flash:output.txt"
action 1.3 cli command "more flash:output.txt"
action 2.0 info type routername
action 2.1 mail server "$_mail_smtp" to "$_mail_rcpt" from "$_info_routername@$_mail_domain" →
subject "Reload: $_info_routername" body "$_cli_result"

No comments:

Post a Comment