I don't receive traps from switch which is managed through management port

  • 0
  • 2
  • Question
  • Updated 2 years ago
  • Answered

I have some switches connected through the management port.

For some reason I don't receive any traps when a port went down or a EAPS change happend

Photo of Johan Hendrikx

Johan Hendrikx

  • 3,804 Points 3k badge 2x thumb

Posted 2 years ago

  • 0
  • 2
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 50,114 Points 50k badge 2x thumb
Hi Johan, could you please post the output for "show config | incl target-addr".

Do you rx any traps at all ?
Could it be that you haven't set vr-mgmt as the vr to forward the traffic.
Photo of Johan Hendrikx

Johan Hendrikx

  • 3,804 Points 3k badge 2x thumb

configure snmpv3 add target-addr "v1v2cNotifyTAddr1" param "v1v2cNotifyParam1" ipaddress 144.2.144.77 transport-port 162 vr "VR-Mgmt" tag-list "defaultNotify"


From this device I don't receive any trap at all. From other devices ( management not through mgmt port)  I receive traps.

Photo of Balaji

Balaji, Employee

  • 776 Points 500 badge 2x thumb
Could you check whether the MIB-View is configured?

show snmpv3 mib-view
Photo of Johan Hendrikx

Johan Hendrikx

  • 3,804 Points 3k badge 2x thumb

View Name       : defaultUserView
MIB Subtree     : 1.0
Mask            : 80
View Type       : Included
Storage Type    : NonVolatile
Row Status      : Active

View Name       : defaultUserView
MIB Subtree     : 1.3.6.1.6.3.16
Mask            :
View Type       : Excluded
Storage Type    : NonVolatile
Row Status      : Active

View Name       : defaultUserView
MIB Subtree     : 1.3.6.1.6.3.18
Mask            :
View Type       : Excluded
Storage Type    : NonVolatile
Row Status      : Active

View Name       : defaultUserView
MIB Subtree     : 1.3.6.1.6.3.15.1.2.2.1.4
Mask            :
View Type       : Excluded
Storage Type    : NonVolatile
Row Status      : Active

View Name       : defaultUserView
MIB Subtree     : 1.3.6.1.6.3.15.1.2.2.1.6
Mask            :
View Type       : Excluded
Storage Type    : NonVolatile
Row Status      : Active

View Name       : defaultUserView
MIB Subtree     : 1.3.6.1.6.3.15.1.2.2.1.9
Mask            :
View Type       : Excluded
Storage Type    : NonVolatile
Row Status      : Active

View Name       : defaultAdminView
MIB Subtree     : 1.0
Mask            : 80
View Type       : Included
Storage Type    : NonVolatile
Row Status      : Active

View Name       : defaultNotifyView
MIB Subtree     : 1.0
Mask            : 80
View Type       : Included
Storage Type    : NonVolatile
Row Status      : Active

Total num. of entries in vacmViewTreeFamilyTable : 8

Photo of Balaji

Balaji, Employee

  • 776 Points 500 badge 2x thumb
Clear counters, disable and enable a port and then do "show management" there will be counters for traps sent check whether this counter incrementing.
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 50,114 Points 50k badge 2x thumb
could you post the full output of  "show config snmp"
Photo of Johan Hendrikx

Johan Hendrikx

  • 3,804 Points 3k badge 2x thumb

Ronald,


The full output:

configure snmpv3 add group "v1v2cNotifyGroup" user "v1v2cNotifyUser1" sec-model snmpv2c
configure snmpv3 add community "audax" name "audax" user "v1v2c_ro"
configure snmpv3 add target-addr "v1v2cNotifyTAddr1" param "v1v2cNotifyParam1" ipaddress 144.2.144.77 transport-port 162 vr "VR-Mgmt" tag-list "defaultNotify"
configure snmpv3 add target-params "ST.-1878880179.10550_Params" user "initialmd5" mp-model snmpv3 sec-model usm sec-level authnopriv
configure snmpv3 add target-params "ST.-1878880249.10550_Params" user "initialmd5" mp-model snmpv3 sec-model usm sec-level authnopriv
configure snmpv3 add target-params "v1v2cNotifyParam1" user "v1v2cNotifyUser1" mp-model snmpv2c sec-model snmpv2c sec-level noauth
configure snmpv3 add notify "ST.-1878880249.10550_Notify" tag "EPICenter"

Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 50,114 Points 50k badge 2x thumb
I've tried last week to enable SNMPv3 and run into the same issue so I've took a closer look on the commands and I've tried to unterstand which variable/name is the reference to the next command and so I came up with this.....



The last thing that I've missed was the "type inform" at the end of the last command.
As soon as I've changed that I was able to rx the traps on my EMC/Netsight.

I'd be wrong with my colour/variable list but you'd give it a try.
Photo of Johan Hendrikx

Johan Hendrikx

  • 3,804 Points 3k badge 2x thumb
I have added the 'type inform' but not success.
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 13,772 Points 10k badge 2x thumb
Hi Johan,

SNMP informs were added in version 3, but you are using SNMPv2c, thus it would not be correct to add "type inform."

Br,
Erik
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 50,114 Points 50k badge 2x thumb
Photo of Drew C.

Drew C., Community Manager

  • 40,238 Points 20k badge 2x thumb
Hello Johan,
Has any of the information shared here helped you to resolve this issue?
Photo of Johan Hendrikx

Johan Hendrikx

  • 3,804 Points 3k badge 2x thumb
Hello Drew,  No it isn't solved yet. I'm setting up a new test environment
Photo of Johan Hendrikx

Johan Hendrikx

  • 3,804 Points 3k badge 2x thumb
Drew,  it works now good after I made the changes  according the two KB articles