Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhthorsen/poe-filter-dhcpd-lease
parses leases from isc dhcpd leases file
https://github.com/jhthorsen/poe-filter-dhcpd-lease
Last synced: 27 days ago
JSON representation
parses leases from isc dhcpd leases file
- Host: GitHub
- URL: https://github.com/jhthorsen/poe-filter-dhcpd-lease
- Owner: jhthorsen
- Created: 2009-04-02T23:34:39.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2014-08-04T19:49:48.000Z (over 10 years ago)
- Last Synced: 2024-10-16T11:58:42.693Z (3 months ago)
- Language: Perl
- Homepage:
- Size: 242 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
POE::Filter::DHCPd::Lease - parses leases from isc dhcpd leases fileVERSION
0.0702METHODS
new
my $filter = POE::Filter::DHCPd::Lease->new;get_one_start
$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.get_one
$leases = $self->get_one;$leases is an array-ref, containing zero or one 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)get
See POE::Filter.put
Returns an empty string. Should not be used.get_pending
my $buffer = $self->get_pending;Returns any data left in the buffer.
AUTHOR
Jan Henning Thorsen, ""COPYRIGHT & LICENSE
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.