cancel
Showing results for 
Search instead for 
Did you mean: 

API - Switch Port Status

SOLVED
Getting noticed

API - Switch Port Status

Hi there , 

 

I'm looking through the docs : https://dashboard.meraki.com/api_docs#

 

But it seems like there is no way to get a switch port status via API eg :  API calls that returns switch port status -> Down ,Up , Disabled ... 

 

Is this API call hidden or just missing ?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Meraki Employee

Re: API - Switch Port Status

@RaphaelL would the API call to return an individual switch port not work here?  For example I just tried a quick call to return the status of a single port on one of my switches, and it does return an "enabled" parameter as a true/false value among other things.  Sorry if I misunderstood the question.  Or... perhaps you mean pulling the live status of an individual switch port, as opposed to the *configuration* status of that port, which I do not see a call for as @PhilipDAth mentioned.  But I do see a feature request for this in the system, and I just added a note and upvoted it.  No ETA on delivery, it's a valid request but not necessarily in the priority queue for development.  Work with your local Meraki SE to go into the FR and add your requirement and opportunity to help bump the visibility for this.  In the meantime there's just the alert feature if a switch port goes down or changes speed or detects a cable error.

 

5 REPLIES 5
Kind of a big deal

Re: API - Switch Port Status

I can't see any API either to return the individual status of MS switch ports.

Meraki Employee

Re: API - Switch Port Status

@RaphaelL would the API call to return an individual switch port not work here?  For example I just tried a quick call to return the status of a single port on one of my switches, and it does return an "enabled" parameter as a true/false value among other things.  Sorry if I misunderstood the question.  Or... perhaps you mean pulling the live status of an individual switch port, as opposed to the *configuration* status of that port, which I do not see a call for as @PhilipDAth mentioned.  But I do see a feature request for this in the system, and I just added a note and upvoted it.  No ETA on delivery, it's a valid request but not necessarily in the priority queue for development.  Work with your local Meraki SE to go into the FR and add your requirement and opportunity to help bump the visibility for this.  In the meantime there's just the alert feature if a switch port goes down or changes speed or detects a cable error.

 

Kind of a big deal

Re: API - Switch Port Status

I think that "enabled" fields means administrative enabled/disabled, rather than reporting the link status.

Meraki Employee

Re: API - Switch Port Status

Agreed, the existing API call is returning the configuration state for individual switch ports, not the active running state, so hopefully the existing FR will address this among other things like error counts and utilization levels.

Conversationalist

Re: API - Switch Port Status

Hi,

 

Unfortunately live switch port status is not available from the dashboard API.

 

If you really need the information though, one other way would be through SNMP polling the dashboard.

 

Kr,

Erik

 

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.