From 0721f96a7fd1c4b54e9f799638d78335f4d7a3e0 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Wed, 8 May 2019 15:12:01 -0700 Subject: [PATCH] dhcp-lease-list script: Don't show manufacturer. It is quite inefficient and scales badly. Disble this feature and just show the MAC address since we want to be able to call this script often. Signed-off-by: Ben Greear --- dhcp-lease-list.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dhcp-lease-list.pl b/dhcp-lease-list.pl index 11119f89..382c4444 100755 --- a/dhcp-lease-list.pl +++ b/dhcp-lease-list.pl @@ -127,7 +127,8 @@ sub process_leases() { 'date_end' => $date_end, 'mac' => $mac, 'hostname' => $hostname, - 'manu' => get_manufactorer_for_mac($mac), +# Too slow. --Ben 'manu' => get_manufactorer_for_mac($mac), + 'manu' => "", ); $entry{'date_begin'} =~ s#\/#-#g; # long live ISO 8601 @@ -213,7 +214,7 @@ sub cli_processing() { # main() # cli_processing(); -check_oui_file(); +#check_oui_file(); read_dhcpd_leases(); process_leases(); output_leases();