Action Counter - Cisco AJ732A - MDS 9134 Fabric Switch Command Reference Manual

Cisco mds 9000 family command reference guide - release 4.x (ol-18089-01, february 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 Fabric Switch:
Table of Contents

Advertisement

Chapter 2
A Commands
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

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.
Syntax Description
number
.number2
name counter
value val
op dec | inc | nop | set
Defaults
None.
Command Modes
Embedded Event Manager mode.
Command History
Release
NX-OS 4.1(3)
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)#
OL-18089-02, Cisco MDS NX-OS Release 4.x
action number [.number2] counter name counter value val op {dec | inc | nop | set}
no action number[.number2] counter name counter value val op {dec | inc | nop | set}
Number can be any number up to 16 digits. The range for number2 is from
0 to 9.
The counter name can be any case-sensitive, alphanumeric string up to 32
characters.
Specifies the value of the counter. The val can be an integer from 0 to
2147483647 or a substituted parameter.
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.
Modification
This command was introduced.
Cisco MDS 9000 Family Command Reference
action counter
2-13

Advertisement

Table of Contents
loading

Table of Contents