Configuring Event Statements - Cisco Nexus 7000 Series Configuration Manual

Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring the Embedded Event Manager
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8

Configuring Event Statements

Use one of the following commands in Applet Configuration mode to configure an event statement:
Command or Action
description policy-description
Example:
switch(config-applet)# description
"Monitors interface shutdown."
event event-statement
Example:
switch(config-applet)# event cli match
"shutdown"
tag tag {and | andnot | or} tag [and | andnot
| or {tag}] {happens occurs in seconds}
Example:
switch(config-applet)# tag one or two
happens 1 in 10000
action label action-statement
Example:
switch(config-applet)# action 1.0 cli
show interface e 3/1
show event manager policy-state name
[module module-id]
Example:
switch(config-applet)# show event
manager policy-state monitorShutdown
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Cisco Nexus 7000 Series NX-OS System Management Configuration Guide
Defining a User Policy Using the CLI
Purpose
(Optional)
Configures a descriptive string for the policy. The
string can be any alphanumeric string up to 80
characters. Enclose the string in quotation marks.
Configures the event statement for the policy.
Repeat this step for multiple event statements. See
Configuring Event Statements, on page
(Optional)
Correlates multiple events in the policy.
The range for the occurs argument is from 1 to
4294967295. The range for the seconds argument
is from 0 to 4294967295 seconds.
Configures an action statement for the policy.
Repeat this step for multiple action statements. See
Configuring Action Statements, on page
(Optional)
Displays information about the status of the
configured policy.
(Optional)
Copies the running configuration to the startup
configuration.
247.
252.
247

Advertisement

Table of Contents
loading

Table of Contents