cancel
Showing results for 
Search instead for 
Did you mean: 

How to check SNMP traps sent status?

How to check SNMP traps sent status?

Paul11
Contributor
How to check SNMP traps sent status?

i have configure port up/down trap. But i can't see any trap Sent to SNMP server?
enable snmp traps port-up-down ports all

Appreciate your help. Thanks.

SW.30 # sh management

Total Read Only Communities : 2
Total Read Write Communities : 1
RMON : Disabled
SNMP access : Enabled
: Access Profile : not set
SNMP Compatibility Options :
IP Fragmentation : Disallow
SNMP Traps : Enabled
SNMP v1/v2c TrapReceivers :
Destination Source IP Address Flags Timeout Retries
10.10.50.154 /162 2ET - -
10.10.50.30 /162 2ET - -

Flags: Version: 1=v1 2=v2c 3=v3
Mode: S=Standard E=Enhanced
Notification Type: T=Trap I=Inform

SNMP stats: InPkts 819 OutPkts 819 Errors 0 AuthErrors 0
Gets 819 GetNexts 0 Sets 0 Drops 0
SNMP traps: Sent 0 AuthTraps Enabled
SNMP inform: Sent 0 Retries 0 Failed 0

SW.30 # sh configuration "snmp"
#
# Module snmpMaster configuration.
#
configure snmpv3 add community private01 name private01 user v1v2c_rw
configure snmpv3 add community public name public user v1v2c_ro
configure snmpv3 add community public01 name public01 user v1v2c_ro
configure snmpv3 add target-addr v1v2cNotifyTAddr1 param v1v2cNotifyParam2 ipaddress 10.10.50.154 transport-port 162 vr VR-Default tag-list defaultNotify
configure snmpv3 add target-addr v1v2cNotifyTAddr3 param v1v2cNotifyParam4 ipaddress 10.10.50.30 transport-port 162 vr VR-Default tag-list defaultNotify
configure snmpv3 add target-params v1v2cNotifyParam1 user v1v2cNotifyUser1 mp-model snmpv2c sec-model snmpv2c sec-level noauth
configure snmpv3 add target-params v1v2cNotifyParam2 user v1v2cNotifyUser2 mp-model snmpv2c sec-model snmpv2c sec-level noauth
configure snmpv3 add target-params v1v2cNotifyParam4 user v1v2cNotifyUser4 mp-model snmpv2c sec-model snmpv2c sec-level noauth
Singapore-SW.31 #

11 REPLIES 11

Paul11
Contributor
Hi Ron, Let me try it and get back to you tmr. Thanks for your fast response. Appreciate it. -Paul

Ronald_Dvorak
Honored Contributor
Please add the "configure snmpv3 add group xxxxx" per my example in the screenshot above.

I've tried it and if I delete this command on my switch then I also don't get traps from the switch and the SNMP trap counter is 0.

Paul11
Contributor
I didn't aware that "show vlan" is also part of troubleshooting process. Thanks.

Ronald_Dvorak
Honored Contributor
Please post the output of "show vlan"

Singapore-SW.101 # sh vlan
---------------------------------------------------------------------------------------------
Name VID Protocol Addr Flags Proto Ports Virtual
Active router
/Total
---------------------------------------------------------------------------------------------
Black 40 ------------------------------------------------ ANY 1 /2 VR-Default
Blue 30 ------------------------------------------------ ANY 1 /2 VR-Default
Default 1 --------------------------------T--------------- ANY 2 /3 VR-Default
Gold 10 ------------------------------------------------ ANY 1 /1 VR-Default
Green 20 ------------------------------------------------ ANY 2 /2 VR-Default
Manage 50 10.10.50.2 /8 ---------------------------- ANY 3 /4 VR-Default
Mgmt 4095 ------------------------------------------------ ANY 0 /1 VR-Mgmt
---------------------------------------------------------------------------------------------
Flags : (B) BFD Enabled, (c) 802.1ad customer VLAN, (C) EAPS Control VLAN,
(d) Dynamically created VLAN, (D) VLAN Admin Disabled,
(e) CES Configured, (E) ESRP Enabled, (f) IP Forwarding Enabled,
(F) Learning Disabled, (i) ISIS Enabled, (I) Inter-Switch Connection VLAN for MLAG,
(k) PTP Configured, (l) MPLS Enabled, (L) Loopback Enabled,
(m) IPmc Forwarding Enabled, (M) Translation Member VLAN or Subscriber VLAN,
(n) IP Multinetting Enabled, (N) Network Login VLAN, (o) OSPF Enabled,
(O) Flooding Disabled, (p) PIM Enabled, (P) EAPS protected VLAN,
(r) RIP Enabled, (R) Sub-VLAN IP Range Configured,
(s) Sub-VLAN, (S) Super-VLAN, (t) Translation VLAN or Network VLAN,
(T) Member of STP Domain, (v) VRRP Enabled, (V) VPLS Enabled, (W) VPWS Enabled,
(Z) OpenFlow Enabled

Total number of VLAN(s) : 7
GTM-P2G8KFN