How to check SNMP traps sent status?

  • 0
  • 1
  • Problem
  • Updated 3 years ago
  • Solved
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 #
Photo of Paul

Paul

  • 2,026 Points 2k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 51,458 Points 50k badge 2x thumb
Hi Paul,

mine looks like that and I'd rx traps in Netsight...



The only difference I'd see is the SNMP group that I've configured.

Is the switch IP on VR-Default - you'd check it with "show vlan"

Here a article that I've found about trap configuration...
https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-send-only-the-SNMP-traps-that-are-r...

-Ron
Photo of Paul

Paul

  • 2,026 Points 2k badge 2x thumb
Thanks Ron,

I have already configure link up down and didn't see any trap sent? Why?
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 51,458 Points 50k badge 2x thumb
Please post the output of "show vlan"
Photo of Paul

Paul

  • 2,026 Points 2k badge 2x thumb
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 
Photo of Paul

Paul

  • 2,026 Points 2k badge 2x thumb
I didn't aware that "show vlan" is also part of troubleshooting process. Thanks.
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 51,458 Points 50k badge 2x thumb
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.
Photo of Paul

Paul

  • 2,026 Points 2k badge 2x thumb
Hi Ron,

Let me try it and get back to you tmr.
Thanks for your fast response.
Appreciate it.

-Paul
Photo of Paul

Paul

  • 2,026 Points 2k badge 2x thumb
i have try that command "configure snmpv3 add group xxxxx"  but still the same. 
no snmp trap sent.
Photo of Paul

Paul

  • 2,026 Points 2k badge 2x thumb
what is the below configuration result please. 

# Module idMgr configuration.
enable snmp traps identity-management

# Module lldp configuration.
configure lldp snmp-notification-interval 5

-Paul
Photo of Drew C.

Drew C., Community Manager

  • 40,858 Points 20k badge 2x thumb
Hi Paul,
I'm checking up on older threads and wanted to see if you were able to get this one sorted out.
Photo of Paul

Paul

  • 2,026 Points 2k badge 2x thumb
Hi Drew,

we may close the case. by using "sh management" and snmp trap will sent out, eg. link up/down. 

Thanks for your review.