Why NOT ALL clients returned? Even if Online.

SOLVED
AidanVenn
Here to help

Why NOT ALL clients returned? Even if Online.

Hi All,

 

When I run:

 

url = "https://api.meraki.com/api/v1/networks/xxxxx/clients"

 

My response only covers a random number of clients on the network. Lets say 10 of 100 wired and wireless, online/offline.

 

Each request returns the same clients but not all of them. Can be missing 50. They all appear in the Meraki dashboard.

 

Anybody else facing this issue or know of a fix? Maybe my interpretation but results show no patterns across the 2000 + networks we have.

 

thanks

1 ACCEPTED SOLUTION
ww
Kind of a big deal
Kind of a big deal

the default is 10.

can you try with 

perPage 1000

View solution in original post

3 REPLIES 3
ww
Kind of a big deal
Kind of a big deal

the default is 10.

can you try with 

perPage 1000

AidanVenn
Here to help

Doh!! Thanks ww for fast reply and solution!

sungod
Building a reputation

You need to handle multiple pages of client details if you are using the 'raw' API.

 

If you use the Python SDK, it will do the page handling for you, for instance...

 

clients = await aiomeraki.networks.getNetworkClients(net['id'], timespan=t, perPage=1000, total_pages="all")

 

...can return many thousands of clients.

 

Get notified when there are additional replies to this discussion.
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.