cancel
Showing results for 
Search instead for 
Did you mean: 

API to query IP along with splash page username

Here to help

API to query IP along with splash page username

With /networks/[id]/splashLoginAttempts, I can get username and MAC address.

Is there any way to query the IP address too? 

We need to push the username/IP to our Firewall (PaloAlto) for user-id mapping.

 

Thanks,

4 REPLIES 4
Kind of a big deal

Re: API to query IP along with splash page username

Could you take the MAC address and look that up in the ARP table of your Palo Alto to get the IP address?

Here to help

Re: API to query IP along with splash page username

Hi, well one API call that gives you all .. I'm not aware of that. When you have the MAC already you could run a 2nd script that gives you IP Address GET /networks/[networkId]/clients/[id_or_mac_or_ip]
Highlighted
Here to help

Re: API to query IP along with splash page username

I am able to get IP/Username and Mac address now. However, the timespan is login time, can I get client list base on Last Connected time?

Kind of a big deal

Re: API to query IP along with splash page username

No but you can get the last seen time (epoch/unix time) from the client details:

 
GET Return the client associated with the given identifier
{{baseUrl}}/networks/{{networkId}}/clients/{{clientMac}}

 

{
  "id": "k1af98e",
  "mac": "8c:85:90:aa:aa:aa",
  "ip": "192.168.0.113",
  "ip6": "",
  "description": "Miles-MacBook-Pro",
  "firstSeen": 1520683433,
  "lastSeen": 1527370304,
  "manufacturer": "Apple",
  "os": "Mac OS X 10.13",
  "user": null,
  "vlan": "1",
  "ssid": "viaPostman",
  "wirelessCapabilities": "802.11ac - 2.4 and 5 GHz",
  "smInstalled": false,
  "recentDeviceMac": "88:15:44:bb:bb:bb",
  "clientVpnConnections": null,
  "lldp": null,
  "cdp": null
}

 

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.