Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Interface status change and show interface descritpion

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

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Before action 1.1 EEM needs

Before action 1.1 EEM needs to issue the "enable" command.

2 REPLIES
Cisco Employee

Before action 1.1 EEM needs

Before action 1.1 EEM needs to issue the "enable" command.

New Member

Thanks Daniel, that worked

Thanks Daniel, that worked

395
Views
0
Helpful
2
Replies
CreatePlease to create content