[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dhcp-users
Subject:    Re: Keeping Track of Static DHCP Leases
From:       Bill Shirley <Bill () Henagar ! PolymerIndustries ! biz>
Date:       2014-06-08 2:25:55
Message-ID: 5393C9B3.7040200 () Henagar ! PolymerIndustries ! biz
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 6/4/2014 6:58 PM, Glenn Satchell wrote:
> Static leases don't work that way. A static address is only for a known
> single host so the code short circuits a lot of the lease management
> stuff. Basically it just hands out a new lease for the given mac each time
> it asks. So it never deletes a lease and doesn't need to record it in the
> leases file or in memory.
>
> Syslog will show the discover, offer, request and accept messages.
>
> regards,
> -glenn
>
> On Thu, June 5, 2014 4:11 am, Martin G. McCormick wrote:
>> 	Is there any omshell or other command that will cause
>> dhcpd to output all static leases it holds?
>> We are using
>> Internet Systems Consortium DHCP Server 4.1-ESV-R7.
>> omshell's ability to query for an individual lease or host, in
>> the case of static bootP-style entries works well, but being
>> able to see what the dhcp server knows as it's static entry
>> table would be very useful. For that matter, any log line
>> stating that static host xyz.new.system.abc.edu MAC_ADDRESS IP_ADDRESS
>> was deleted or added would also be helpful.
>>
>> Thank you.
>>
>> Martin McCormick
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users@lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
Perhaps some modification of this could put the info you need in the log file:
# ------------------------------------------------------------------------------
if static { set is-static = " --> STATIC"; } else { set is-static = "";}
log (
         info,
         concat (
                 "VendorClassId: ", pick-first-value(option vendor-class-identifier, "Not available")
                 ," UserClass: ", pick-first-value(option user-class, "Not available")
                 , is-static
         )
);
# ------------------------------------------------------------------------------

Bill


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 6/4/2014 6:58 PM, Glenn Satchell
      wrote:<br>
    </div>
    <blockquote
      cite="mid:aed2c07e7559700bbc6a1dd8c5c4678b.squirrel@mail.uniq.com.au"
      type="cite">
      <pre wrap="">Static leases don't work that way. A static address is only for a \
known single host so the code short circuits a lot of the lease management
stuff. Basically it just hands out a new lease for the given mac each time
it asks. So it never deletes a lease and doesn't need to record it in the
leases file or in memory.

Syslog will show the discover, offer, request and accept messages.

regards,
-glenn

On Thu, June 5, 2014 4:11 am, Martin G. McCormick wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">	Is there any omshell or other command that will cause
dhcpd to output all static leases it holds?
We are using
Internet Systems Consortium DHCP Server 4.1-ESV-R7.
omshell's ability to query for an individual lease or host, in
the case of static bootP-style entries works well, but being
able to see what the dhcp server knows as it's static entry
table would be very useful. For that matter, any log line
stating that static host xyz.new.system.abc.edu MAC_ADDRESS IP_ADDRESS
was deleted or added would also be helpful.

Thank you.

Martin McCormick
_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a> <a \
class="moz-txt-link-freetext" \
href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>


</pre>
      </blockquote>
      <pre wrap="">

_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a> <a \
class="moz-txt-link-freetext" \
href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
 </pre>
    </blockquote>
    <tt>Perhaps some modification of this could put the info you need in
      the log file:<br>
      <font color="#993300">#
------------------------------------------------------------------------------<br>
        if static { set is-static = " --&gt; STATIC"; } else { set
        is-static = "";}<br>
        log (<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; info,<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; concat (<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
"VendorClassId: ", pick-first-value(option  vendor-class-identifier, "Not \
                available")<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
," UserClass: ", pick-first-value(option  user-class, "Not available")<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
, is-static<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<br>
        );<br>
        #
------------------------------------------------------------------------------<br>
        <br>
      </font>Bill<br>
      <br>
    </tt>
  </body>
</html>



_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic