cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6958
Views
1
Helpful
12
Replies

GET OrgDevices - Devices Missing

ehayric1320
Level 3
Level 3

Hello. First time using the Meraki API. I am conducting an assessment for a customer who has almsot 100 networks under their org. I would like to export inventory for the entire Org and I like the info that the API gives me versus the built in dash export tool (like including local IP for example).

The problem is that after running the API call named 'getOrganizationDevices' the list it returns is not completed. I have found random missing devices such as switches and MX devices. Does anyone have an idea as to why this may be happening?

image.png

1 Accepted Solution

Accepted Solutions

Like @alessandrodematos and @Raphletourn say, results are returned in 'pages', for the endpoint you are using the maximum is 1,000 devices per page.

If you have more than 1,000 devices, you will need to follow the pagination rules to get the next page(s) of results, see...

https://developer.cisco.com/meraki/api-v1/pagination/

Ypu can use the script from @Jamiegprice15 or write one yourself using the Meraki Python library (it can handle the pagination for you)...

https://github.com/meraki/dashboard-api-python

View solution in original post

12 Replies 12

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

I suggest you open a support case.

I am not a Cisco 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.

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

How many devices do you have?

image.png

I am not a Cisco 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.

If I perform an Organization export from the dashboard, I see 1,667 lines on the CSV file.

It says per page. The number of devices per page doesn't really concern me. Does this mean it will not export every page?

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

Have you tried this one?

https://developer.cisco.com/meraki/api/get-organization-inventory-devices/

I am not a Cisco 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.

They will not help and will tell you that you need someone to do scripting.

ww^
Meraki Community All-Star
Meraki Community All-Star

Are the missing devices assigned to a network or, in your inventory but not assigned to networks

If I look through all devices (Org > Inventory) and search by Used and Unused, yes I do see devices not in a network.

Jamiegprice15
Level 4
Level 4

This will get all the APs (not Meraki switches or other gear) and place it into a spreasheet.
Merakicode/AssetDataDump at main · jadexing/Merakicode (github.com)

Raphael_L
Meraki Community All-Star
Meraki Community All-Star

You have over 1K devices. You have to use pagination. The Meraki SDK already covers that.

Sorry but I don't really know what that means. Do you have a link that covers how I can resolve this?

Like @alessandrodematos and @Raphletourn say, results are returned in 'pages', for the endpoint you are using the maximum is 1,000 devices per page.

If you have more than 1,000 devices, you will need to follow the pagination rules to get the next page(s) of results, see...

https://developer.cisco.com/meraki/api-v1/pagination/

Ypu can use the script from @Jamiegprice15 or write one yourself using the Meraki Python library (it can handle the pagination for you)...

https://github.com/meraki/dashboard-api-python