Can I dynamically change the server's data

Li Gan li.gan at mapleworks.com
Fri Nov 10 19:53:15 UTC 2006


Thanks for your advice, are there some api functions which can give me all
the current leases information? Because I need this information in my own
code for the continuing processing. 

Thanks.

-----Original Message-----
From: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] On Behalf
Of Simon Hobson
Sent: Friday, November 10, 2006 1:54 PM
To: dhcp-users at isc.org
Subject: Re: Can I dynamically change the server's data

At 09:16 -0500 10/11/06, Li Gan wrote:
>Hi there,
>
>
>I am now working for integrating isr-dhcp server into our software, is it
>possible to dynamically change the server's config data such as subnet, ip
>address pool, options., or I can only change the dhcpd.conf and then
restart
>the server?

You have to restart the server. On and off there have been calls for 
a dynamic restart, but the concensus always seems to end up as "it 
would bring significant additional complexity (and scope for bugs) 
whilst providing little benefit over the stop-start operation 
currently done".

>Another question is  how can I get the information of my ip address pool,
>which ones are available, which ones are allocated.

Try the archives, there have been a number of scripts that will give 
you this information. The normal method is to read the config file 
for the subnet & range definitions, then read through the leases file 
to find out about leases. The leases file will always have all the 
information - just be aware that it is append only (apart from the 
hourly cleanup) so there can be multiple entries for any particular 
lease and the last one in the file is always the current one.




More information about the dhcp-users mailing list