Last seen for static DHCP leases
-
Hi there,
Is there a way to view when was the last time a static DHCP lease was used by the device that is supposed to use it. I am transitioning from a MikroTik router where I am using this information to track if a computer in the network was not used for a while.
I am interested if this information is actually collected at all by ISC or Kea?
If it is, I would be even more interested how to display it, hopefully in the web interface.Thanks!
-
@Ros44
Both DHCP servers seem to ping leased addresses every so often; the status indicators at the left of the "DHCP Leases" GUI page will give a thumbs-down to a device that's been offline for more than a couple minutes. I'm not sure what the ping interval is, or if you can control it, or if there's a way to see the underlying last-response-time state ... but that state must exist. -
For anyone that has the same question.
A workaround I've found is the Arpwatch package. It has a Timestamp data that has the last seen time not only for DHPC clients, but also for hosts with static IPs which is amazing!
It does the job perfectly but has the following cons:
- there is no convenient way to remove specific entries from the Arpwatch database;
- in order to find the last seen time of specific host from the DHCP lease table, I have to manually crosscheck the info from both services;
- sorting the database of Arpwatch is done by the letters of the days of the week, not by the date itself which is quite unusual and a bit silly.
Regards!