new program to list dhcpd.leases
Glenn Satchell
Glenn.Satchell at uniq.com.au
Mon Jul 28 14:13:33 UTC 2008
Hi Luis
You can look at the source of the script, it gives the url to download,
and the directories to install it it. I think if you run the script it
will tell you:
my @OUIS = ('/usr/share/misc/oui.txt', '/usr/local/etc/oui.txt');
my $OUI_URL = 'http://standards.ieee.org/regauth/oui/oui.txt';
...
print(STDERR "Please download $OUI_URL to /usr/local/etc/oui.txt\n") if not
defined $oui;
regards,
-glenn
--
Glenn Satchell mailto:glenn.satchell at uniq.com.au | It's a dog eat dog
Uniq Advances Pty Ltd http://www.uniq.com.au | world, and by golly,
PO Box 70 Paddington NSW Australia 2021 | we better make sure
tel:0409-458-580 tel:02-9380-6360 fax:02-9380-6416 | we're the dog.
>Subject: Re: new program to list dhcpd.leases
>From: Luis Fernando Lacayo <lflacayo at cps.k12.il.us>
>To: dhcp-users at isc.org
>Date: Mon, 28 Jul 2008 08:53:06 -0500
>
>Christian,
>
>Thank you for taking the time to write, We can we get the manufacturer
>list?
>
>Luis
>
>On Sat, 2008-07-26 at 09:43 +0200, Christian Hammers wrote:
>
>> Hello
>>
>> As I sometimes want to find out which leases are currently active on my
>> DHCP server or which IP a specific MAC got the last time, I wrote a little
>> script to parse dhcpd.leases. It even prints the oui.txt manufacturer.
>>
>> Would be nice to see anything like this in the official DHCP distribution.
>>
>> If someone is interested, the script is public domain and written in pure
>> Perl5. It's available from http://www.lathspell.de/linux/dhcp/
>>
>> bye,
>>
>> -christian-
>>
>> $ dhcp-lease-list --last
>> # MAC IP valid until manufactorer
>> 00:02:b3:96:4d:4f 192.168.230.56 2007-10-25 14:04:30 Intel Corporation
>> 00:08:02:62:e8:b0 192.168.230.75 2008-02-25 16:24:26 Compaq Computer
Corporation
>> 00:0b:5d:96:bf:2f 192.168.230.57 2008-01-25 13:07:19 FUJITSU LIMITED
>> 00:0b:82:01:90:ee 192.168.230.71 2007-10-25 07:35:50 Grandstream Networks,
Inc.
>> 00:0c:29:7b:4d:b9 192.168.230.59 2007-08-23 07:46:55 VMware, Inc.
>>
>> $ dhcp-lease-list --help
>> Prints active DHCP leases.
>>
>> Usage: ./dhcp-lease-list [options]
>> --help shows this help
>> --parsable machine readable output with full dates
>> --last prints the last (even if end<now) entry for every MAC
>> --all prints all entries i.e. more than one per MAC
>>
>>
>
>--
>Luis Fernando Lacayo
>Chicago Public Schools
>Senior Unix Administrator
>ITS/ UNIX Infrastructure
>Office: 773-553-3835
>Cell: 773-203-4493
More information about the dhcp-users
mailing list