No new rootbridge has been elected, This is the reason why the SNMP walk is not properly sending the expected output. Advised reproducing the issue, meaning to get a new root bridge and run "show snmp walk mib 1.3.6.1.2.1.17.0.1" again
show snmp mib get 1.3.6.1.2.1.17.0.1 newRoot No such object >>>> no new root bridge has been elected.
show snmp mib walk 1 | match dot1dBaseBridgeAddress dot1dBaseBridgeAddress.0 =XX XX XX AA BB CC
root@switch> show spanning-tree bridge detail STP bridge parameters Routing instance name : GLOBAL Context ID : 0 Enabled protocol : RSTP Root ID : 8193.00:23:04:ee:be:01 Root cost : 10000 Root port : ae0 Hello time : 2 seconds Maximum age : 20 seconds Forward delay : 15 seconds Message age : 1 Number of topology changes : 1 Time since last topology change : 2304982 seconds Local parameters Bridge ID : 32768.XX XX XX AA BB CC Extended system ID : 0 Hello time : 2 seconds Maximum age : 20 seconds Forward delay : 15 seconds Path cost method : 32 bit
Important: After changing STP root bridge, the snmp trap was properly sent on the OID expected.