Hello Experts,
What is the API to get the RSTP state of switch ports and where can I see it in the dashboard?
I want to see if the interface is in a blocking state or a forwarding state.
-Pavan
Solved! Go to solution.
An orange port like that one will show up as a 'error' or 'warning' :
{"portId":"13","enabled":true,"status":"Connected","isUplink":false,"errors":[],"warnings":["BPDU guard activated, STP discarding packets"],"speed":"100 Mbps","duplex":"full","usageInKb"
https://api.meraki.com/api/v1/devices/{'serial'}/switch/ports/statuses
I have to "thank" my users for that example... haha
Have you checked this one?
https://developer.cisco.com/meraki/api/get-network-switch-stp/
It would be : https://developer.cisco.com/meraki/api-v1/get-device-switch-ports-statuses/
You would see the port status
I don't believe either of these calls will provide RSTP status. I'm not aware of an endpoint that provides this, actually. In the Dashboard UI, take a look at port 7 on this screenshot, for how RSTP blocked ports appear. Ignore the orange colour, the - sign is the key bit.
An orange port like that one will show up as a 'error' or 'warning' :
{"portId":"13","enabled":true,"status":"Connected","isUplink":false,"errors":[],"warnings":["BPDU guard activated, STP discarding packets"],"speed":"100 Mbps","duplex":"full","usageInKb"
https://api.meraki.com/api/v1/devices/{'serial'}/switch/ports/statuses
I have to "thank" my users for that example... haha
Hello @RaphaelL
On the UI, Interface 3 shows blocking though the API response shows 'Connected'.
That's because Meraki thinks that it is a normal condition. You probably don't have BPDU guard on that port , hence you don't have any warnings.
In that case , I don't think you will be able to spot those via the API.