<div dir="ltr"><div><div><div><div><div><div><div><div>Hi.<br><br></div>I have a script parsing <span style="font-family:monospace,monospace">dhcpd.leases</span> file and would like to ask few questions:<br><br></div>1. What is the difference between <span style="font-family:monospace,monospace">dhcpd.leases</span> and <span style="font-family:monospace,monospace">dhcpd.leases~</span> files?<br></div>2. My <span style="font-family:monospace,monospace">dhcpd.leases</span> parsing script is executed on commit, like:<br><br><span style="font-family:monospace,monospace">subnet 192.168.0.0 netmask 255.255.255.0<br>{<br>   interface "eth0";<br>   range 192.168.0.1 192.168.0.100;<br>   option routers 192.168.0.254;<br>   on commit {<br>      execute("/home/user/leases_parse.sh");<br>   }<br>}<br></span><br></div>Can I assume that <span style="font-family:monospace,monospace">dhcpd.leases</span> has already been updated with latest lease when my script is executed?<br><br></div>3. Is a new lease always appended at the end of <span style="font-family:monospace,monospace">dhcpd.leases</span> file?<br></div>4. On renew is a new lease block always added at the end or is existing block updated?<br><br></div>Thank you very much for your comments.<br><br></div>RegK<br></div>