PurposeCommand
Triggers an event if the temperature sensor exceeds
the configured threshold. The sensor range is from 1
to 18.
event temperature [module slot] [sensor number]
threshold {any | major | minor}
Example:
switch(config-applet)# event temperature module 2
threshold any
Triggers an event if the tracked object is in the
configured state.
The tag tag keyword-argument pair identifies this
specific event when multiple events are included in
the policy.
The object-number range is from 1 to 500.
event track [tag tag] object-number state {any |
down | up}
Example:
switch(config-applet)# event track 1 state down
Action Statement Configuration
Use the following commands in EEM configuration mode to configure action statements:
PurposeCommand
Runs the configured CLI commands. You can
optionally run the commands on the module where
the event occurred. The action label is in the format
number1.number2.
number can be any number up to 16 digits. The range
for number2 is from 0 to 9.
Enclose the string in quotation marks.
action number[.number2] cli command1
[command2...] [local]
Example:
switch(config-applet)# action 1.0 cli “show interface
e 3/1“
Modifies the counter by the configured value and
operation. The action label is in the format
number1.number2.
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 28 characters. The val can
be an integer from 0 to 2147483647 or a substituted
parameter.
action number[.number2] counter name counter
value val op {dec | inc | nop | set}
Example:
switch(config-applet)# action 2.0 counter name
mycounter value 20 op inc
Executes the default action for the associated event.
The action label is in the format number1.number2.
number can be any number up to 16 digits. The range
for number2 is from 0 to 9.
action number[.number2] event-default
Example:
switch(config-applet)# action 1.0 event-default
   Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
244 OL-31641-01   
Configuring EEM
Action Statement Configuration