Greetings to the community,
I need to alert about flapping and spanning trees due to traps. Do you have any recommendations or best practices for this? Thank you very much in advance.
I don't have a best practice for this. I use syslog alerting to give me the details I need.
Hi,
To have information about STP, you can use polling en snmp TRAP.
For exemple, on Aruba AOS-CX, the OID 1.3.6.1.4.1.47196.4.1.1.3.5.1.4.1.7 will return the state of all ports [RPVST]
disabled(1)blocking(2)listening(3)learning(4)forwarding(5)broken(6)bpduError(7)loopInconsistent(8)pvidInconsistent(9)rootGuard(10)
Link flapping will also be showed (excessive link transition)
On Aruba 2930, use the OID 1.3.6.1.4.1.11.2.14.11.5.1.88.1.4.1.5, will give you the state of each port.
In addition, add trap. On your switch AOS configure the trap receiver [ex: snmp-server host X.X.X.X community XXXXX trap-level XXX]
Then adding the followinf line will result in trap sending
* spanning-tree trap errant-bpdu loop-guard ...etc.
Hope this will help you, have a nice day
Greetings Eeprom,
Thanks so much for sharing the OID. I'll try it and let you know if it works for me.
I got this link thwack.solarwinds.com/.../1744
The OID is for Cisco devices 1.3.6.1.2.1.17.2.15.1.3
The port's current state as defined by application of the Spanning Tree Protocol. This state controls what action a port takes on reception of a frame. If the bridge has detected a port that is malfunctioning it will place that port into the broken(6) state. For ports which are disabled (see dot1dStpPortEnable) , this object will have a value of disabled(1).
Options: disabled (1)
blocking (2)
listening (3)
learning (4)
forwarding (5)
broken (6)
It seems based on a generic MIB [Bridge-MIB], personnaly i prefer use the dedicated MIB of the Manufacturer.
For exemple for Aruba CX, its [ARUBAWIRED-RPVST-MIB], for Aruba AOS its [HP-ICF-RPVST], find the equivalent for Cisco. If you have Cisco Nexus, best way is to download the MIB from Cisco and then compile them to have a look (i use Paessler MIB Importer, but other exist).
Regards
I didn't realize it was generic; I actually didn't know. Based on your experience, these generics can fail or stop working at some point.