I hate tooting my own horn but I am the developer of the phpDHCPAdmin software that utilizes a MySQL backend to dynamically generate lease file data for clients and it automatically stores them. It is on <a href="http://sourceforge.net">sourceforge.net</a> if you wish to test drive the application.<br>
<br><div class="gmail_quote">On Thu, Jun 11, 2009 at 5:03 AM, Terry L. Inzauro <span dir="ltr"><<a href="mailto:tinzauro@ha-solutions.net">tinzauro@ha-solutions.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Niall O'Reilly wrote:<br>
> Terry L. Inzauro wrote:<br>
>> List,<br>
>><br>
>> Whats the best way to keep/record ALL lease activity?<br>
><br>
>     It's not clear to me what your requirements are:<br>
>     "best" for what purpose, "activity" in what sense?<br>
><br>
>     The leases file shows the current state of all known dynamic<br>
>     leases, but not that of leases which are unknown.  IIUC, a lease<br>
>     becomes unknown which has at some time been, but no longer<br>
>     remains, in the  server's configuration, as it is not written to<br>
>     the leases file when this is updated.  If you need to record<br>
>     leases from before the last significant configuration change,<br>
>     you need to take account of this.<br>
><br>
>     The logs show the recent history of lease activity, according<br>
>     to how long you keep them.  This history will show transaction-<br>
>     -level detail of activity relating to fixed addresses and to<br>
>     unknown (no longer known) leases.  It will also show activity<br>
>     relating to earlier history of currently known leases.<br>
><br>
>     I think you'll find discussions both on processing logs and on<br>
>     parsing the leases file in the archives of this list.<br>
><br>
>     If you can express your purpose more clearly, you may find<br>
>     either that a well-known solution is available or that there<br>
>     are people on this list who are interested in working with you<br>
>     to solve an outstanding problem.<br>
><br>
>     Best regards,<br>
><br>
>     Niall O'Reilly<br>
>     University College Dublin IT Services<br>
<br>
<br>
Well put.<br>
<br>
I would define best as "most efficient and easy to maintain". I like to keep configuration as simple and close to standards<br>
as possible.<br>
<br>
-----<br>
<br>
I am trying to derive a method of retaining the MAC/IP combinations (and maybe other information) for all successful leases<br>
for compliance and auditing  purposes.  Basically, in the public sector, I have to be able to tell law enforcement who (which<br>
mac addres) had obtained an address and at what time (to the best of my knowledge).<br>
<br>
At first I envisioned a script being ran upon a successful lease that would log various info to SQL or something like that.<br>
I thought this method would be possible based on the section called 'REFERENCE: EVENTS' (in man 5 dhcpd.conf) but I am<br>
finding a lack of documentation or examples on that particular subject.<br>
<br>
Perhaps I am making something out of nothing. Is this problem simply a matter tuning syslog-ng to log all DHCPD related<br>
messages to a log that is later archived indefinitely?<br>
<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jason Gerfen<br><a href="mailto:jason.gerfen@gmail.com">jason.gerfen@gmail.com</a><br><br>~ tomorrow ain't promised so we live for today<br>