API - Get client info just by MAC

CiscoUser
Here to help

API - Get client info just by MAC

Hi

To get client info via API, it seem I must know beforehand on which network or device it is on:

GET /devices/[serial]/clients
GET /networks/[networkId]/clients/[id_or_mac_or_ip]


Assuming I want to get client info only knowing it's MAC (big organization with multiple networks and devices) is there a way?

Interested in any kind of workaround you have in mind, even for partial info,
Thanks

2 Replies 2
BrechtSchamp
Kind of a big deal

I'm afraid the only option is to go:

GET /organizations/[organizationId]/networks

Then iterating over the results with the MAC address of the client using the GET you posted.

PhilipDAth
Kind of a big deal
Kind of a big deal

If the client info you want is not changing frequently you would walk over every network and dump every client to something local.  Then you could just query that local database.

 

Note that a client could appear under multiple networks, especially a WiFi user that travels between networks.

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.
Labels