Switch API query for client mac information

jeffsto64
New here

Switch API query for client mac information

Is there an API call for a switch that will either give the full mac table it has learned or is there a way to query for the learned mac by port?

3 Replies 3
RaphaelL
Kind of a big deal
Kind of a big deal

I'm not aware of any endpoint for that. 

 

You could maybe use : getOrganizationClientsSearch  to do the reverse lookup ( find where a specific MAC was seen ) 

 

https://developer.cisco.com/meraki/api-v1/#!get-organization-clients-search

Crocker
Building a reputation

You can try the /devices/$serialNum/clients endpoint: https://developer.cisco.com/meraki/api-v1/#!get-device-clients

 

Alternatively, if you want to gather all clients for a given network, you can query the 

👍

 

It's worth noting:   

/devices/$serialNum/clients may show different clients from /networks/$id/clients, as the networks call seems to be dependent a certain amount of traffic being generated for it to show at the network client level.

Get notified when there are additional replies to this discussion.