Meraki MS - STP

Solved
Pavan_Pawar
Getting noticed

Meraki MS - STP

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

1 Accepted Solution
RaphaelL
Kind of a big deal
Kind of a big deal

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

View solution in original post

8 Replies 8
alemabrahao
Kind of a big deal
Kind of a big deal

Have you checked this one?

 

https://developer.cisco.com/meraki/api/get-network-switch-stp/

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
RaphaelL
Kind of a big deal
Kind of a big deal

GreenMan
Meraki Employee
Meraki Employee

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 screenshotScreenshot 2023-09-14 175532.png, for how RSTP blocked ports appear.   Ignore the orange colour, the - sign is the key bit.

RaphaelL
Kind of a big deal
Kind of a big deal

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

Pavan_Pawar
Getting noticed

Thank you @RaphaelL 

Pavan_Pawar
Getting noticed

Hello @RaphaelL 

 

On the UI, Interface 3 shows blocking though the API response shows 'Connected'.

Screenshot 2023-09-20 at 2.39.13 PM.png

{
"portId": "3",
"enabled": true,
"status": "Connected",
"isUplink": false,
"errors": [],
"warnings": [],
"speed": "1 Gbps",
"duplex": "full",
"usageInKb": {
"total": 0,
"sent": 0,
"recv": 0
},
"lldp": {
"systemName": "Meraki MS250-24P - meraki03",
"systemDescription": "Meraki MS250-24P Cloud Managed PoE Switch",
"portId": "3",
"chassisId": "14:9f:43:a3:ad:e8",
"managementVlan": 1,
"portVlan": 100,
"managementAddress": "10.128.65.96",
"portDescription": "Port 3",
"systemCapabilities": "S-VLAN Component of a VLAN Bridge"
},
"clientCount": 0,
"powerUsageInWh": 0.0,
"trafficInKbps": {
"total": 0.0,
"sent": 0.0,
"recv": 0.0
},
"securePort": {
"enabled": false,
"active": false,
"authenticationStatus": "Disabled",
"configOverrides": {}
}
},
 
 
-Pavan
RaphaelL
Kind of a big deal
Kind of a big deal

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.

Pavan_Pawar
Getting noticed

Thanks a lot @GreenMan 

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.
Labels