cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[API] Get information of Ethernet in MR

SOLVED
Highlighted
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

Accepted Solutions
Highlighted
Kind of a big deal

Re: [API] Get information of Ethernet in MR

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

4 REPLIES 4
Highlighted
Kind of a big deal

Re: [API] Get information of Ethernet in MR

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

Meraki Employee

Re: [API] Get information of Ethernet in MR

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

 

Highlighted
Getting noticed

Re: [API] Get information of Ethernet in MR

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")
Highlighted
Getting noticed

Re: [API] Get information of Ethernet in MR

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! 😄

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.