I am suspecting that the port up/down messages are SNMP v2c traps. That is why the traps are sent only with the snmpv2c model. I am currently doing some tests to validate my understanding. Will keep you updated after I get a clarity on this.
Using this one, I can see SNMP Trap number (in show management command o/p) increase whenever I unplug cable.But this is through snmpv2c, If I remove that, it is not increasing.
SNMP traps: sent 12 is very old (i dont when it is generated), not if I do anything it is not changing.
fyi, I am working on snmpv3.
configure snmp add trapreceiver command is not for snmpv3!!
Also which target parameter I should be using?
my current o/p:
# show snmpv3 target-params
Target Params Name : snmpparam
MP Model : snmpv3
Security Model : USM
User Name : tester1
Security Level : Authentication Privacy
Storage Type : NonVolatile
Row Status : Active
Please check in the switch if the port up/down traps are enabled.
Also, please ensure that the trap receiver is configured properly in the switch by verifying the command,
If it still doesnot work, please share the output of show management after your testing.
Hope this helps!
P.S. The image of the wireshark shared above is not clear. So, I am not sure how it is being filtered. I would suggest using the following filter to ensure that there are traps from the switch.
Thank you for MIB information.
So, switch is sending get-response after around 10min. Even if I disable /enable switch port, it is not sending trap immediately. If I filter using snmp.trap, I am not getting any packet.
Why there is a delay?, why it is not generating message when port status has changed? why it is not sending any trap?