Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Feature request: dhcp-lease counter

    Scheduled Pinned Locked Moved Development
    3 Posts 2 Posters 960 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      heper
      last edited by

      Hi,

      would it be possible to add a counter to status:dhcp leases ?

      i'm asking primarily because of the growing byod trend at the schools i work. I've had it happen a couple of times that i got reports of "wifi problems' … only to find out a while later, that i ran out of free leases.

      Ideally the counter would show: x of y leases in use.
      where x=active leases | y=range_end - range_start

      would love to see this feature

      kind regards,

      jeroen

      1 Reply Last reply Reply Quote 0
      • mcdonnjdM
        mcdonnjd
        last edited by

        @heper:

        where x=active leases | y=range_end - range_start

        Just an aside, the formula should be y = (range_end + 1) - range_start since the range is inclusive, not exclusive. (ie, a range of 192.168.1.10 to 192.168.1.15 is 6 IP addresses, not 5. And it's a bit more complex than that if not using /24 addresses.)

        You might have better luck getting this done if you put a bounty on it. Might get a few others to toss in some $ as well.

        1 Reply Last reply Reply Quote 0
        • H
          heper
          last edited by

          i know its more complex using >/24 subnets … a while ago i hacked it on the shell with some grep -c mess.
          so getting the information if i really want/need it, is not exactly the problem. Getting it visually, all the time either in a widget or on the dhcp status page is what i would like to see.
          I figured this would be a nice and not too difficult feature to add to 2.2

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.