cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2004
Views
0
Helpful
2
Replies

Interface status change and show interface descritpion

geevee1989
Level 1
Level 1

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

Dan Frey
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

Dan Frey
Cisco Employee
Cisco Employee

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

Thanks Daniel, that worked

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: