I need to parse  dhcpd.leases to store data in mysql
    Her, Andre 
    andre.her at eds.com
       
    Fri Jun 30 13:23:01 UTC 2006
    
    
  
If we are talking about modifying the source code, why not an option to
either give a customized format to the lease file or an option to load
directly into a database ? 
Andre
-----Original Message-----
From: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] On
Behalf Of Simon Hobson
Sent: vrijdag 30 juni 2006 15:15
To: dhcp-users at isc.org
Subject: Re: I need to parse dhcpd.leases to store data in mysql
Brent L. Bates wrote:
>      Could the syslog output be of any help for the person trying to 
>log everything to his MySQL data base?  He could have all this output 
>sent to its own log file.  I know the default output doesn't have all 
>the information he needs.  However, are there any `ifdefs' that might 
>turn this information on and log it?  If not, how difficult would it be
to modify the source to do so?
>  Just some ideas.
A good point. Another option would be to use the "on <action> ..." 
external links, eg "on commit <call code to add record to database>". 
Though care needs to be taken when using these not to introduce too much
latency into the server.
Simon
    
    
More information about the dhcp-users
mailing list