SNMP Trap not Received
Perform the following procedure to troubleshoot issues in which an SNMP trap is not received.
Procedure
Example
In the following example, BPDU guard is enabled on port 1/8, BPDU packets are received, port 1/8 is disabled, and the TimerCount is incrementing, but no SNMP trap is ever received.
Switch:1>enable Switch:1#show spanning-tree bpduguard 1/8 ================================================================================ Bpdu Guard ================================================================================ Port PORT PORT TIMER BPDUGUARD NUM MLTID ADMIN_STATE OPER_STATE TIMEOUT COUNT ADMIN_STATE -------------------------------------------------------------------------------- 1/8 Down Down 120 0 Disabled
Variable Definitions
The following table defines parameters for the show spanning-tree command.
Variable |
Value |
---|---|
{slot/port[/sub-port][-slot/port[/sub-port]][,...]} |
Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port. |
The following table defines parameters for the snmp-server host command.
Variable |
Value |
---|---|
filter WORD<1-32> |
Specifies a filter profile name. |
host WORD<1-256> |
Specifies the IPv4 or IPv6 host address |
inform [timeout <1-2147483647>] |
Specifies the notify type. The optional timeout parameter configures the timeout value, which specifies the time to wait for a reply before resending the inform message. Time is specified in centiseconds |
noAuthNoPriv|authNoPriv|authPriv WORD<1-32> |
Specifies the security level. |
port <1-65535> |
Specifies the port number that will be set as the destination port at the UDP level in the trap packet. |
retries <0-255> |
Specifies the number of packets to be sent if no reply is received. |
{slot/port[/sub-port][-slot/port[/sub-port]][,...]} |
Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port. |