Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 May 2009 12:34:15 +0200
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org, Pieter Donche <Pieter.Donche@ua.ac.be>
Subject:   Re: isc-dhcp logging and status query
Message-ID:  <200905071234.15523.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
In-Reply-To: <alpine.BSF.2.00.0905071150550.38577@macos.cmi.ua.ac.be>
References:  <alpine.BSF.2.00.0905071150550.38577@macos.cmi.ua.ac.be>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905071234.15523.mel.flynn%2Bfbsd.questions>