get-current-dhcpd-leases

NAME

get-current-dhcpd-leases - filter dhcpd.leases for current leases

SYNOPSIS

get-current-dhcpd-leases < /var/lib/dhcp/dhcpd.leases


OPTIONS

--man

Print the manual page and exit.

--help

Print a brief help message and exit.


DESCRIPTION

This program is a simple filter for the dhcpd.leases file written by the ISC DHCP Daemon. It reads the timestamps and compares them to the current system time, outputing one line per current lease.


EXIT CODES

If this program exits with a zero exit status and the correct output is on standard output. Nothing else is ever printed to standard output.

This program will exit with a non-zero exit status if there was a fatal error. Both fatal and non-fatal errors will cause output on standard error.


AUTHOR

Mark Suter <suter@humbug.org.au>


COPYRIGHT

Copyright (C) 2003 Mark Suter <suter@humbug.org.au>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA or from the following webpage.

    http://www.gnu.org/licenses/gpl.txt