[API] Get information of Ethernet in MR

Solved
Namgyu
Getting noticed

[API] Get information of Ethernet in MR

Hi, all.

 

In the left area of each access point in Meraki Dashboard, there is the information of Ethernet.

I want to show this through Dashboard API but I do not know what it is.

Please let me solve the problem. Thank you.

 

ethernet.PNG

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

I don't think there is an API to get that info for a non MS device (such as in your picture).

View solution in original post

7 Replies 7
PhilipDAth
Kind of a big deal
Kind of a big deal

I don't think there is an API to get that info for a non MS device (such as in your picture).

ConnorL
Meraki Employee
Meraki Employee

Greetings,

 

You can use the getNetworkDeviceUplink API to fetch the IP address, gateway, public IP address etc, but as @PhilipDAth mentioned, the API cannot currently provide the link speed and LLDP information of the connected switch (for example). Here's an example for my home MR56:

 

Screenshot 2020-04-17 at 08.45.55.png

 

I'd recommend using the "Make a Wish" button to submit this as a requested new feature.

 

Kind regards,

--

Connor Loughlin
Network Support Engineer

.:|:.:|:. Cisco Meraki EMEAR 🇬🇧

For reference, many questions can be easily answered by searching our online documentation: http://documentation.meraki.com

 

Edgar-VO
Building a reputation

Small Python script to get all uplinks .. 

The connection speeds is not available as said before. I have tested the script and it works... Change the api_key to your own apikey and you are up and running

 

import meraki
import apikey

api_key = apikey.Get_Api_Key("COMPANY")
dashboard = meraki.DashboardAPI(api_key)
my_org = dashboard.organizations.getOrganizations()

for org in my_org:
        org_id   = org['id']

my_networks = dashboard.networks.getOrganizationNetworks(org_id)

for my_network in my_networks:

    my_devices = dashboard.devices.getNetworkDevices(my_network['id'])

    for my_device in my_devices:
        try:
            my_uplink = dashboard.devices.getNetworkDeviceUplink(my_network['id'],my_device['serial'])
            print (my_uplink)
        except:
            print("No uplink available")
Namgyu
Getting noticed

Thanks, all @PhilipDAth, @ConnorL, and @Edgar-VO.
I have checked using getNetworkDeviceUplink API to get IP address, gateway, public IP address etc.
And I also want to get Ethernet information but well, I am going to suggest it to 'Make a Wish.'

 

Thank you again! 😄

Dieter
Conversationalist

I need this feature too.

Would make a script to check that all APs link to 1Gpbs.

Where is that "Make a wish" button?

 

thanks

John_on_API
Meraki Employee
Meraki Employee

thanks!

I enabled early API access and tried to do the following curl:

 

curl -L -H 'X-Cisco-Meraki-API-Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' -X GET -H 'Content-Type: application/json' "https://api.meraki.com/api/v1/organizations/2xxxxx/wireless/devices/ethernet/statuses"

 

but always getting back 404

 

 </div>
  <div class="content__container">
    <h1 class="content__title">Page not found</h1>
    <p class="content__primaryText">The page you are looking for may have been moved or does not exist.</p>
    <p class="content__secondaryText">To log in to the Cisco Meraki Dashboard, go to <a href="https://dashboard.meraki.com">https://dashboard.meraki.com</a>.</p>
  </div>
  <div class="footer__container">
    <span id="footer" class="footer__text">&copy; Cisco Systems, Inc.</span>
  </div>
  <script type="text/javascript" charset="utf-8">
  //<![CDATA[
  (function () {
    var year = new Date().getFullYear();
    document.getElementById("footer").innerHTML = '&copy; ' + year + ' Cisco Systems, Inc.';
  })()
  //]]>
  </script>
</body>
</html>

 

Also I was wondering if this needs the networkID somewhere or the list always returns for the full organization?

thanks

 

Dieter

Get notified when there are additional replies to this discussion.