Net::DHCP::Info - Fast dhcpd.leases and dhcpd.conf parser
Version 0.01
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 }
new
Object constructor. Takes one argument; a filename to parse. This can be either a dhcpd.conf or dhcpd.leases file.
fetch_subnet
This method returns an object of the Net::DHCP::Info::Obj class.
Net::DHCP::Info::Obj
fetch_lease
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>
Please report any bugs or feature requests to bug-net-dhcp-info at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-DHCP-Info. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-dhcp-info at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::DHCP::Info
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-DHCP-Info
CPAN Ratings
http://cpanratings.perl.org/d/Net-DHCP-Info
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-DHCP-Info
Search CPAN
http://search.cpan.org/dist/Net-DHCP-Info
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.