Cisco nexus 3000 series Command Reference Manual page 38

Nx-os system management
Hide thumbs Also See for nexus 3000 series:
Table of Contents

Advertisement

action snmp-trap
S e n d c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
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.
Syntax Description
label num1 [.num2] Unique identifier that can be any string value. Actions are sorted and run in an
intdata1 integer
intdata2 integer
strdata string
Defaults
None
Command Modes
Embedded event manager configuration mode
Command History
Release
5.0(3)U3(1)
Usage Guidelines
This command does not require a license.
Examples
This 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.7 snmp-trap strdata "EEM detected server failure"
switch(config-applet)#
Cisco Nexus 3000 Series NX-OS System Management Command Reference
-SM-14
action label num1 [.num2] snmp-trap [intdata1 integer] [intdata2 integer] [strdata string]
no action label num1 [.num2] snmp-trap [intdata1 integer] [intdata2 integer] [strdata string]
ascending alphanumeric sequence using the label as the sort key. The range for
num1 is from 1 to 16 and the range for num2 is from 0 to 9.
(Optional) Specifies an integer to be sent in the SNMP trap message to the SNMP
agent. The integer can be any number up to 80 characters.
(Optional) Specifies a second integer to be sent in the SNMP trap message to the
SNMP agent. The second integer can be any number up to 80 characters.
(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. The string can be any alphanumeric string up to 80 characters.
Modification
This command was introduced.
Chapter
System Management Commands
OL-29557-04

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents