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
2-13
Cisco MDS 9000 Family Command Reference
OL-18089-02, Cisco MDS NX-OS Release 4.x
Chapter 2 A Commands
action counter
action counter
To specify setting or modifying a named counter when an Embedded Event Manager (EEM) applet is
triggered, use the
action counter
command. To restore the default value to the counter, use the
no
form of
the command.
action
number
[
.number2
]
counter name
counter
value
val
op
{
dec | inc | nop | set
}
no action
number
[
.number2
] c
ounter name
counter
value
val
op
{
dec | inc | nop | set
}
Syntax Description
Defaults
None.
Command Modes
Embedded Event Manager mode.
Command History
Usage Guidelines
None.
Examples
The following example shows how to set or modify the counter when the EEM counter applet is
triggered:
switch#
configure terminal
switch(config)#
event manager applet counter-applet
switch(config-applet)#
action 2.0 counter name mycounter value 20 op
switch(config-applet)#
number
.
number2
Number can be any number up to 16 digits. The range for
number2
is from
0 to 9.
name
counter
The counter name can be any case-sensitive, alphanumeric string up to 32
characters.
value
val
Specifies the value of the counter. The
val
can be an integer from 0 to
2147483647 or a substituted parameter.
op dec | inc | nop | set
The following operations can be performed:
•
Dec
—decrement the counter by the specified value.
•
Inc
—increment the counter by the specified value.
•
Nop
—Only print the specified value.
•
Set
—set the counter to the specified value.
Release
Modification
NX-OS 4.1(3)
This command was introduced.