11-02-2014 11:38 PM
Hi All,
I am trying to write a script which will mail the status change along with " show inter description" details.
event manager applet interface-down
event syslog severity-notification pattern "%LINEPROTO-5-UPDOWN: Line protocol on Interface.* changed state to down"
action 1 regexp "Interface ([^,]+)" "$_syslog_msg" match intf
action 1.1 cli command "do show interface $intf description"
action 2 mail server "$email_server" to "$email_to" from "$email_from" subject "Interface status change" body "Interface $intf changed state to down $_cli_result"
!
end
Issue is ,am not getting the " show inter description". can someone help me on this?
Thanks in Advance
Regards,
Geevee
Solved! Go to Solution.
11-03-2014 05:16 AM
Before action 1.1 EEM needs to issue the "enable" command.
11-03-2014 05:16 AM
Before action 1.1 EEM needs to issue the "enable" command.
11-03-2014 07:19 PM
Thanks Daniel, that worked
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide