EasyManua.ls Logo

Cisco Nexus 5600 Series - Configuration Examples for EEM

Cisco Nexus 5600 Series
378 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PurposeCommand
Displays information about the running configuration
for EEM.
show running-config eem
Displays information about the startup configuration
for EEM.
show startup-config eem
Configuration Examples for EEM
This example shows how to override the __ethpm_link_flap system policy and shut down the interface:
switch# configure terminal
switch(config)# event manager applet ethport override __ethpm_link_flap
switch(config-applet)# event policy-default count 2 time 1000
switch(config-applet)# action 1 cli conf t
switch(config-applet)# action 2 cli int et1/1
switch(config-applet)# action 3 cli no shut
This example shows how to create an EEM policy that allows the CLI command to execute but trigger an
SNMP notification when a user enters configuration mode on the device:
switch# configure terminal
switch(config)# event manager applet TEST
switch(config-applet)# event cli match "conf t"
switch(config-applet)# action 1.0 snmp-trap strdata "Configuration change"
switch(config-applet)# action 2.0 event-default
You must add the event-default action statement to the EEM policy, or EEM does not allow the CLI
command to execute.
Note
This example shows how to correlate multiple events in an EEM policy and execute the policy based on a
combination of the event triggers. In this example, the EEM policy is triggered if one of the specified syslog
patterns occurs within 120 seconds:
switch# configure terminal
switch(config)# event manager applet eem-correlate
switch(config-applet)# event syslog tag one pattern "copy bootflash:.* running-config.*
switch(config-applet)# event syslog tag two pattern copy run start
switch(config-applet)# event syslog tag three pattern hello
switch(config-applet)# tag one or two or three happens 1 in 120
switch(config-applet)# action 1.0 reload module 1
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
252 OL-31641-01
Configuring EEM
Configuration Examples for EEM

Table of Contents

Other manuals for Cisco Nexus 5600 Series

Related product manuals