API to query IP along with splash page username

chuyendang
Getting noticed

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
PhilipDAth
Kind of a big deal
Kind of a big deal

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

Mr-MaGo
Here to help

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]
chuyendang
Getting noticed

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?

BrechtSchamp
Kind of a big deal

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
}

 

Get notified when there are additional replies to this discussion.