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-21
Cisco MDS 9000 Family Command Reference
OL-18089-02, Cisco MDS NX-OS Release 4.x
Chapter 2 A Commands
action snmp-trap
action snmp-trap
To specify the generation of a Simple Network Management Protocol (SNMP) trap when an Embedded
Event Manager (EEM) applet is triggered, use the
action snmp-trap
command. To disable the SNMP
trap, use the
no
form of this command.
action
number
[
.number2
]
snmp-trap
{[
intdata1
integer
[
intdata2
integer
] [
str
data string
]]}
no action
number
[
.number2
]
snmp-trap
{[
intdata1
integer
[
intdata2
integer
] [
str
data string
]]}
Syntax Description
Defaults
None.
Command Modes
Embedded Event Manager mode.
Command History
Usage Guidelines
None.
Examples
The following example shows how to specify an SNMP trap to generate when an EEM applet is
triggered:
switch#
configure terminal
switch(config)#
event manager applet snmp-applet
switch(config-applet)#
action 1.0 snmp-trap strdata “temperature problem”
switch(config-applet)#
Related Commands
number
.
number2
Number can be any number up to 16 digits. The range for number2 is from
0 to 9.
intdata1
integer
(Optional) Specifies an integer to be sent in the SNMP trap message to the
SNMP agent.
intdata2
integer
(Optional) Specifies a second integer to be sent in the SNMP trap message
to the SNMP agent.
str
data string
(Optional) Specifies a string to be sent in the SNMP trap message to the
SNMP agent. If the string contains embedded blanks, enclose it in double
quotation marks.
Release
Modification
NX-OS 4.1(3)
This command was introduced.
Command
Description
event manager applet
Displays an applet with the Embedded Event Manager.