Configuration Examples For Eem - Cisco Nexus 9000 Series Configuration Manual

Nx-os system management configuration guide, release 6.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Configuring the Embedded Event Manager
Command
show event manager system-policy [all]
show running-config eem
show startup-config eem

Configuration Examples for EEM

This example shows how to override the __lcm_module_failure system policy by changing the threshold for
just module 3 hitless upgrade failures. This example also sends a syslog message. The settings in the system
policy, __lcm_module_failure, apply in all other cases.
event manager applet example2 override __lcm_module_failure
event module-failure type hitless-upgrade-failure module 3 count 2
action 1 syslog priority errors msg module 3 "upgrade is not a hitless upgrade!"
action 2 policy-default
This example shows how to override the __ethpm_link_flap system policy and shuts down the interface:
event manager applet ethport override __ethpm_link_flap
event policy-default count 2 time 1000
action 1 cli conf t
action 2 cli int et1/1
action 3 cli no shut
This example creates an EEM policy that allows the CLI command to execute but triggers an SNMP notification
when a user enters configuration mode on the device:
event manager applet TEST
event cli match "conf t"
action 1.0 snmp-trap strdata "Configuration change"
action 2.0 event-default
You must add the event-default action statement to the EEM policy or EEM will 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.
event manager applet eem-correlate
event syslog tag one pattern "copy bootflash:.* running-config.*"
event syslog tag two pattern "copy run start"
event syslog tag three pattern "hello"
tag one or two or three happens 1 in 120
action 1.0 reload module 1
Cisco Nexus 9000 Series NX-OS System Management Configuration Guide, Release 6.x
Configuration Examples for EEM
Purpose
Displays information about the predefined system
policies.
Displays information about the running configuration
for EEM.
Displays information about the startup configuration
for EEM.
177

Advertisement

Table of Contents
loading

Table of Contents