Configuration Examples For Eem - Cisco Nexus 5600 Series Configuration Manual

Nx-os system management
Hide thumbs Also See for Nexus 5600 Series:
Table of Contents

Advertisement

Configuration Examples for EEM

Command
show running-config 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
Note
command to execute.
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
Purpose
Displays information about the running configuration
for EEM.
Displays information about the startup configuration
for EEM.
Configuring EEM
OL-31641-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents