Koozali.org: home of the SME Server

Detailed DHCP in Web Interface

Offline snaveevans

  • 2
  • +0/-0
Detailed DHCP in Web Interface
« on: April 05, 2013, 08:08:57 AM »
Hi, I'm very new to SME I have SME 8.0 and I'm currently using it as a wide array of things, including DHCP and DNS server. I was wondering if there is any way to view all devices connected through DHCP (very similar to what a router or modem has). I have read that it is possible to have a script and run in at the actual terminal, however I'm sure SSH would work as well (link below). Any help would be greatly appreciated and I'm sorry if this is a repeat by any means I've been looking for the past couple days and come up with nothing. If there is no such function I wouldn't mind trying out some coding for SME I am computer programmer (Intermediate) but always looking to expand my skills and would love to give back, please just point me in the right direction. Thank you very much!

Edit: Forgot to place link
http://forums.contribs.org/index.php/topic,35975.0.html

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Detailed DHCP in Web Interface
« Reply #1 on: April 05, 2013, 09:41:14 AM »
Hi, welcome here

ATM there's no such a feature
if you want to know how SME works behind the curtains, please read the developer's manual (see here) and join the developer's ML ( see here)

HTH
« Last Edit: April 05, 2013, 09:49:57 AM by Stefano »

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Detailed DHCP in Web Interface
« Reply #2 on: April 05, 2013, 01:27:10 PM »
Here's a bug report with an attachment that lists dhcp lease info: http://bugs.contribs.org/show_bug.cgi?id=2641

Offline snaveevans

  • 2
  • +0/-0
Re: Detailed DHCP in Web Interface
« Reply #3 on: April 10, 2013, 11:57:48 PM »
Thank you very much for very quick replies I will look into the manual when I have the time. Thanks again!

Offline piran

  • *****
  • 502
  • +0/-0
Re: Detailed DHCP in Web Interface
« Reply #4 on: April 11, 2013, 03:08:28 PM »
Here's a bug report with an attachment that lists dhcp lease info: http://bugs.contribs.org/show_bug.cgi?id=2641
- { printf out," " }' /var/lib/dhcp/dhcpd.leases
+ { printf out," " }' /var/lib/dhcpd/dhcpd.leases

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Detailed DHCP in Web Interface
« Reply #5 on: April 11, 2013, 03:46:20 PM »
- { printf out," " }' /var/lib/dhcp/dhcpd.leases
+ { printf out," " }' /var/lib/dhcpd/dhcpd.leases

Please post your patch (bug fix) in the bug tracker, not here.

Offline piran

  • *****
  • 502
  • +0/-0
Re: Detailed DHCP in Web Interface
« Reply #6 on: April 11, 2013, 04:01:46 PM »
Please post your patch (bug fix) in the bug tracker, not here.

More of an observation really, does it count
as a patch (bug fix) SIX years down the line ;-)

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Detailed DHCP in Web Interface
« Reply #7 on: April 13, 2013, 03:05:19 PM »
I posted the patch in the bug  - actually, sme8 and sme7 keep dhcpd.leases in different directories...