Koozali.org: home of the SME Server

list of dhcp leases

sage

list of dhcp leases
« on: November 09, 2001, 07:03:01 PM »
It would be very nice to see the ipaddresses that have been asigned to clients and the host name as well as the mac address.

Sage

sage

Re: list of dhcp leases
« Reply #1 on: November 09, 2001, 07:17:36 PM »
I just found one.  lanlord on sourceforge, but if this could become an admin option with the ability to kick an ip would be great.

DJ_Ramjet99

Re: list of dhcp leases
« Reply #2 on: November 12, 2001, 12:30:25 AM »
Hi, how do you use this?
I dropped it inot my cgi-bin and tried to access it throiugh the browser but had no luck, any tips on how to access or settings that need to be changed from the original .cgi script ?

Patrick B

Re: list of dhcp leases
« Reply #3 on: November 14, 2001, 11:44:14 PM »
you will need to change the script to match the version of e-smith/SME you are running.  for example: my SME V5 server has the dhcp leases in the file /var/lib/dhcp/dhcpd.leases so the cgi script needs to be modified to point to that file location:

look for this section in the lanlord.cgi file and make the modifications like i did below (see the 3rd 'LeaseFile' line)
========================================================
#-------
#LeaseFile = "/etc/dhcpd.leases"  # if you have Redhat before 6.1
#LeaseFile = "/var/state/dhcpd/dhcpd.leases" # if you have Redhat 6.1
LeaseFile = "/var/lib/dhcp/dhcpd.leases" # if you have SME V5 Redhat 7.1
=========================================================

let us know how it goes.  good luck.

regards,
patrick