hit counter script

Defining A User Policy Using The Cli; Configuring Event Statements - Cisco AP776A - Nexus Converged Network Switch 5020 Configuration Manual

Cisco mds 9000 family cli configuration guide - release 4.x (ol-18084-01, february 2009)
Hide thumbs Also See for AP776A - Nexus Converged Network Switch 5020:
Table of Contents

Advertisement

Configuring EEM
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

Defining a User Policy Using the CLI

You can define a user policy using the CLI.
This section includes the following topics:
To define a user policy using the CLI, follow these steps:
Command
Step 1
config t
Step 2
event manager applet applet-name
Step 3
description policy-description
Step 4
event event-statement
Step 5
action action-statement
Step 6
show event manager policy internal name
Step 7
copy running-config startup-config

Configuring Event Statements

To configure an event statement, use one the following commands in EEM configuration mode:
Command
event cli match expression [count repeats |
time seconds]
event counter name counter entry-val entry
entry-op {eq | ge | gt | le | lt |ne}
[exit-val exit exit-op {eq | ge | gt | le |
lt |ne}]
Cisco MDS 9000 Family CLI Configuration Guide
54-6
Configuring Event Statements, page 54-6
Configuring Action Statements, page 54-8
Chapter 54
Configuring the Embedded Event Manager
Purpose
Enters configuration mode.
Registers the applet with EEM and enters applet
configuration mode. The applet-name can be any
case-sensitive alphanumeric string up to 29 characters.
(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. See the
"Configuring Event Statements" section on page
Configures an action statement for the policy. See the
"Configuring Action Statements" section on
page
54-8.
Repeat Step 5 for multiple action statements.
(Optional) Displays information about the configured
policy.
(Optional) Saves this configuration change.
Purpose
Triggers an event if you enter a CLI command that
matches the regular expression. The repeats range
is from 1 to 65000. The time range, in seconds, is
from 0 to 4294967295.
Triggers an event if the counter crosses the entry
threshold (based on the entry operation—greater
than, less than, and so on.) The event resets
immediately. Optionally, you can configure the
event to reset after the counter passes the exit
threshold. The counter name can be any
case-sensitive, alphanumeric string up to 28
characters. The entry and exit value ranges are
from 0 to 2147483647.
OL-18084-01, Cisco MDS NX-OS Release 4.x
54-6.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents