isc-dhcp logging and status query

Mel Flynn mel.flynn+fbsd.questions at mailing.thruhere.net
Thu May 7 10:34:18 UTC 2009


On Thursday 07 May 2009 12:00:10 Pieter Donche wrote:

> 2. Is there any tool to see what Statically assigned IP address are handed
> out at a given time?
> (I also see nothing in /var/db/dhcpd/dhcpd.leases file execpt comments)

Add omapi-port 7911; to dhcpd.conf.

Then, as follows:
$ omshell
> connect
obj: <null>
> new lease
obj: lease
> set ip-address = 192.168.2.253
obj: lease
ip-address = c0:a8:02:fd
> open
obj: lease
ip-address = c0:a8:02:fd
state = 00:00:00:02
client-hostname = "impy"
<snip more info>

See omshell(1) for more info. Install isc-dhcp30-relay to get the omapi(3) and 
dhcpctl(3) programming interfaces to roll your own tools.
-- 
Mel


More information about the freebsd-questions mailing list