Snmp-Trap - Cisco Nexus 7000 Series Reference Manual

Nx-os system management command reference
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

S Commands

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.
Syntax Description
intdata1
integer-data1
intdata2
integer-data2
strdata
string-data
event-type
ev_type
policy-name
name
Defaults
None
Command Modes
Any command mode
Supported User Roles
network-admin
network-operator
vdc-admin
vdc-operator
Command History
Release
4.0(1)
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)#
OL-25806-03
snmp-trap [intdata1 integer-data1] [intdata2 integer-data2] [strdata string-data] event-type
ev_type policy-name name
(Optional) Specifies an integer to be sent in the SNMP trap message to the SNMP
agent.
(Optional) Specifies a second integer to be sent in the SNMP trap message to the
SNMP agent.
(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.
Specifies the event type.
Event type.
Specifies the policy name.
Policy name.
Modification
This command was introduced.
Cisco Nexus 7000 Series NX-OS System Management Command Reference
snmp-trap
397

Advertisement

Table of Contents
loading

Table of Contents