cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1207
Views
0
Helpful
1
Replies

Ethernet Port Status

michael.bailey
Level 1
Level 1

I'm looking to retrieve the status (connected/not) of each of the Ethernet ports as displayed on the Meraki interface within an app, and I was hoping the dashboard API might have a call I could use. I've attempted the call to return uplink information, although all that returns is a single WAN port, which isn't what I'm after. I also attempted grabbing the switch ports with this call. However, I've consistently been getting back a 404 error. The request link appears to match up to the expected format.

Does anyone know if there's a good way to check each Ethernet port's status via the dashboard API?

1 Accepted Solution

Accepted Solutions

colo
Cisco Employee
Cisco Employee

Michael,

You can check the configuration of the ports by looking at the switchport configuration:

https://dashboard.meraki.com/api_docs#switch-ports

You can check the status for those same ports by looking at the list of clients on the switch:

https://dashboard.meraki.com/api_docs#list-the-clients-of-a-device-up-to-a-maximum-of-a-month-ago

Most likely the 404 error indicates the wrong syntax is being used, but remember with this API call you need a timespan. So your  GET should have a URL like https://dashboard.meraki.com/api/v0/devices/[serial]/clients?timespan=86400

Think of it this way, instead of giving you the "this is what is on your switch right now" the Meraki Dashboard API gives you "this is everything that was on your switch in the last month or last 10 minutes."

View solution in original post

1 Reply 1

colo
Cisco Employee
Cisco Employee

Michael,

You can check the configuration of the ports by looking at the switchport configuration:

https://dashboard.meraki.com/api_docs#switch-ports

You can check the status for those same ports by looking at the list of clients on the switch:

https://dashboard.meraki.com/api_docs#list-the-clients-of-a-device-up-to-a-maximum-of-a-month-ago

Most likely the 404 error indicates the wrong syntax is being used, but remember with this API call you need a timespan. So your  GET should have a URL like https://dashboard.meraki.com/api/v0/devices/[serial]/clients?timespan=86400

Think of it this way, instead of giving you the "this is what is on your switch right now" the Meraki Dashboard API gives you "this is everything that was on your switch in the last month or last 10 minutes."

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: