EasyManua.ls Logo

Cisco Nexus 5600 Series - Verifying the EEM Configuration

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 or Action
Saves the change persistently through reboots and
restarts by copying the running configuration to the
startup configuration.
switch(config-applet)# copy
running-config startup-config
Step 8
Sample Python file (Python.py). Copy this file to the bootflash.
import re
import cisco
cisco.cli ("show interface eth 1/1-32 transceiver detail >> bootflash:link_flap.txt")
This example shows how to define a user policy by using the CLI and invoking a Python script by using the
action statement once the event is triggered:
switch# configure terminal
switch(config)# event manager applet PYTHON
switch(config-applet)# description "Triggers PYTHON Script"
switch(config-applet)# event cli match "shutdown"
switch(config-applet)# action 1.0 cli local python bootflash:Python.py
switch(config-applet)# copy running-config startup-config
Verifying the EEM Configuration
To display EEM configuration information, enter one of the following commands:
PurposeCommand
Displays information about the event manager
environment variables.
show event manager environment [variable-name
| all]
Displays information about the event manager event
types.
show event manager event-types [event | all |
module slot]
Displays the history of events for all policies.show event manager history events [detail]
[maximum num-events] [severity {catastrophic |
minor | moderate | severe}]
Displays information about the configured policies.
show event manager policy internal [policy-name]
[inactive]
Displays information about the policy state, including
thresholds.
show event manager policy-state policy-name
Displays information about the script policies.
show event manager script system [policy-name |
all]
Displays information about the predefined system
policies.
show event manager system-policy [all]
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
OL-31641-01 251
Configuring EEM
Verifying the EEM Configuration

Table of Contents

Other manuals for Cisco Nexus 5600 Series

Related product manuals