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

EEM Feature in 3560G

wasiimcisco
Level 1
Level 1

Hi,

I have cisco 3560G with C3560 Software (C3560-IPSERVICESK9-M), Version 12.2(53)SE1 Image. I want to configure it for EEM feature so that when my Gig 0/7 port goes on it will automatically shutdown the port Gig 0/1.

MPLS_WAN_NET#show event manager version
Embedded Event Manager Version 3.20
Component Versions:
eem: (v320_throttle)2.1.50
eem-gold: (v320_throttle)1.0.4
eem-call-home: (v320_throttle)1.0.4
Event Detectors:
Name                Version   Node        Type   
application         01.00     node0/0     RP     
mat                 01.00     node0/0     RP     
neighbor-discovery  01.00     node0/0     RP     
identity            01.00     node0/0     RP     
syslog              01.00     node0/0     RP     
routing             03.00     node0/0     RP     
cli                 01.00     node0/0     RP     
counter             01.00     node0/0     RP     
interface           01.00     node0/0     RP     
ioswdsysmon         01.00     node0/0     RP     
none                01.00     node0/0     RP     
oir                 01.00     node0/0     RP     
snmp                01.00     node0/0     RP     
snmp-object         01.00     node0/0     RP     
ipsla               01.00     node0/0     RP     
snmp-notification   01.00     node0/0     RP     
timer               01.00     node0/0     RP     
rpc                 01.00     node0/0     RP   

MPLS_WAN_NET#show event manager detector all
No.  Name                Version   Node        Type   
1    application         01.00     node0/0     RP     
2    mat                 01.00     node0/0     RP     
3    neighbor-discovery  01.00     node0/0     RP     
4    identity            01.00     node0/0     RP     
5    syslog              01.00     node0/0     RP     
6    routing             03.00     node0/0     RP     
7    cli                 01.00     node0/0     RP     
8    counter             01.00     node0/0     RP     
9    interface           01.00     node0/0     RP     
10   ioswdsysmon         01.00     node0/0     RP     
11   none                01.00     node0/0     RP     
12   oir                 01.00     node0/0     RP     
13   snmp                01.00     node0/0     RP     
14   snmp-object         01.00     node0/0     RP     
15   ipsla               01.00     node0/0     RP     
16   snmp-notification   01.00     node0/0     RP     
17   timer               01.00     node0/0     RP     
18   rpc                 01.00     node0/0     RP     


Please let me know to create the script in order to achieve the interface failure.


Thanks in advance.  

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

This applet should work for you.

event manager applet shut-port

event syslog pattern "Line protocol on Interface GigabitEthernet0/7, changed state to down"

action 1.0 cli command "enable"

action 2.0 cli command "config t"

action 3.0 cli command "int gi0/1"

action 4.0 cli command "shut"

action 5.0 cli command "end"

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

This applet should work for you.

event manager applet shut-port

event syslog pattern "Line protocol on Interface GigabitEthernet0/7, changed state to down"

action 1.0 cli command "enable"

action 2.0 cli command "config t"

action 3.0 cli command "int gi0/1"

action 4.0 cli command "shut"

action 5.0 cli command "end"

Hi,

Thanks for the reply, infact i already got the info from other forms. Anyway I will get back to you if i need further information.

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: