S Commands
snmp-trap
397
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
snmp-trap
To generate a Simple Network Management Protocol (SNMP) trap when an Embedded Event Manager
(EEM) applet is triggered, use the snmp-trap command.
snmp-trap [intdata1 integer-data1] [intdata2 integer-data2] [strdata string-data] event-type
ev_type policy-name name
Syntax Description
Defaults None
Command Modes Any command mode
Supported User Roles network-admin
network-operator
vdc-admin
vdc-operator
Command History
Usage Guidelines This command does not require a license.
Examples This example shows how to generate an SNMP trap when an EEM applet is triggered:
switch(config)# event manager applet snmp-applet
switch(config-applet)# action 1 snmp-trap strdata "EEM detected server failure”
switch(config-applet)#
intdata1
integer-data1
(Optional) Specifies an integer to be sent in the SNMP trap message to the SNMP
agent.
intdata2
integer-data2
(Optional) Specifies a second integer to be sent in the SNMP trap message to the
SNMP agent.
strdata
string-data
(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.
event-type Specifies the event type.
ev_type Event type.
policy-name Specifies the policy name.
name Policy name.
Release Modification
4.0(1) This command was introduced.