Net::DHCP::Info - Fast dhcpd.leases and dhcpd.conf parser
This module is not very flexible, and not maintained. Use Net::ISC::DHCPd instead.
Version 0.11
use Net::DHCP::Info; my $conf = Net::DHCP::Info->new($path_to_dhcpd_conf); my $lease = Net::DHCP::Info->new($path_to_dhcpd_leases); while(my $net = $conf->fetch_subnet) { # .. do stuff with $net } while(my $lease = $lease->fetch_lease) { # .. do stuff with $lease }
Object constructor. Takes one argument; a filename to parse. This can be either a dhcpd.conf or dhcpd.leases file.
This method returns an object of the Net::DHCP::Info::Obj class.
Net::DHCP::Info::Obj
Takes a mac in various formats as an argument, and returns it as a 12 char string.
Jan Henning Thorsen, <pm at flodhest.net>
<pm at flodhest.net>
Copyright 2007 Jan Henning Thorsen, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::DHCP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DHCP::Info
CPAN shell
perl -MCPAN -e shell install Net::DHCP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.