We are working on getting notifications for ports that go into a BPDU state when a loop happens. And once again the newer EX-2300 switches are causing issues. (I really hate how inconsistent these switches are.)
So we have a trap receiver set up and we are sending BPDU traps to it. What we can NOT find is how to tell an EX-2300 to send a trap when a port comes out of a BPDU state and is back up and running correctly.
So to further clarify. On a EX-2200 or EX-3300 you need to tell the switch to send a trap based on:
set event-options policy snmptrap events ESWD_BPDU_BLOCK_ERROR_DISABLED
set event-options policy snmptrap events ESWD_BPDU_BLOCK_ERROR_ENABLED
set event-options policy snmptrap then raise-trap
(There is more to the config than the above but in general those are the settings needed for the trap.)
So the "DISABLED" is a port going into a blocked state and the "ENABLED" is it coming out (and yes, it still can go right back into a blocked state if the loop still exists). All of this works as it should and has an expected outcome. We get the traps correctly sent to the trap server.
Our problem comes in with an EX-2300. So to monitor a port getting blocked by a loop:
set event-options policy snmptrap events "L2CPD_RECEIVE_BPDU_BLOCK_ENABLED: BPDU_PROTECT"
The above works sending the trap for a port going into a blocking state. What we can't find is the correct event-options policy to send a trap when it comes out of a blocking state.
From what we've read the documentation all points to the same web pages for doing this for either type of EX switch... none seem to show an ELS level switch and sending an SMMP trap message for it coming out of a blocked state.
From the messages logs you get:
Oct 21 08:25:59 cl2ntt18 l2cpd[5503]: L2CPD_RECEIVE_BPDU_BLOCK_ENABLED: BPDU_PROTECT: Interface ge-0/0/35 is DOWN: BPDU error detected
Oct 21 08:25:59 cl2ntt18 l2cpd[5503]: L2CPD_RECEIVE_BPDU_BLOCK_ENABLED: BPDU_PROTECT: Interface ge-0/0/34 is DOWN: BPDU error detected
Oct 21 08:26:59 cl2ntt18 l2cpd[5503]: BPDU_PROTECT: Interface ge-0/0/35 is UP: BPDU error Cleared
Oct 21 08:26:59 cl2ntt18 l2cpd[5503]: BPDU_PROTECT: Interface ge-0/0/34 is UP: BPDU error Cleared
But trying (we've tried a bunch of variations of the above in the policy - none have worked):
set event-options policy snmptrap events BPDU_PROTECT
Is NOT enough to have the trap sent to the trap receiver.
Any idea how to get an EX-2300 to send a trap message when a port comes out of a BPDU blocking state?