POE::Filter::DHCPd::Lease - parses leases from isc dhcpd leases file
0.0502
my $filter = POE::Filter::DHCPd::Lease->new;
$self->get_one_start($stream);
$stream is an array-ref of data, that will eventually be parsed into a qualified lease, returned by get() or get_one.
$stream
$leases = $self->get_one;
$leases is an array-ref, containing zero or one leases.
$leases
starts => epoch value ends => epoch value binding => "active" or "free" hw_ethernet => 12 chars, without ":" hostname => the client hostname circuit_id => circuit id from relay agent (option 82) remote_id => remote id from relay agent (option 82)
See POE::Filter.
Returns an empty string. Should not be used.
my $buffer = $self->get_pending;
Returns any data left in the buffer.
Jan Henning Thorsen, <jhthorsen-at-cpan-org>
<jhthorsen-at-cpan-org>
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 POE::Filter::DHCPd::Lease, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Filter::DHCPd::Lease
CPAN shell
perl -MCPAN -e shell install POE::Filter::DHCPd::Lease
For more information on module installation, please visit the detailed CPAN module installation guide.