isc-dhcp logging and status query

2009-05-07 Thread Pieter Donche

FreeBSD7-amd64:
I set up /usr/ports/net/isc-dhcp30-server 
for static IP addresses (based on the MacAddress)

This works, but I wonder where I can see information of the status?

1. The doc says I should see dhcp log messages (default in /var/log/messages)
but I see nothing about dhcp in /var/log/messages.
(I wonder where they are now, before hacking /etc/syslog.conf)

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)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: isc-dhcp logging and status query

2009-05-07 Thread Mel Flynn
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org