<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello all:<br>
      <br>
      It is possible to connect to ISC_DHCP via omshell and change the
      lease state to released as<br>
      shown below.  The following example you're connecting from the
      machine ISC_DHCP<br>
      is running on and you didn't specify a key in the server config:<br>
      <br>
      <br>
      1. Start omshell and connect to ISC DHCP:<br>
      <br>
      ---------------------------------------------<br>
      centos64 isc_dhcp $ tip/bin/omshell<br>
      > server localhost<br>
      > port 7911<br>
      > connect<br>
      obj: <null><br>
      ><br>
      ----------------------------------------------<br>
      <br>
      <br>
      2. Create a new lease object and set the ip-address to<br>
      the address of the desired lease:<br>
      ----------------------------------------------<br>
      > new lease<br>
      obj: lease<br>
      > set ip-address=178.16.1.127<br>
      omapi_set_value (ip-address, 4 18bed8c)<br>
       ==> success<br>
      obj: lease<br>
      ip-address = b2:10:01:7f<br>
      ><br>
      ----------------------------------------------<br>
      <br>
      3. Fetch the lease via the open object command<br>
      ----------------------------------------------<br>
      > open<br>
      omapi_set_value (op, 1)<br>
       ==> success<br>
         :<br>
         :<br>
      obj: lease<br>
      ip-address = b2:10:01:7f<br>
      state = 00:00:00:02<br>
      subnet = 00:00:00:02<br>
      pool = 00:00:00:03<br>
      hardware-address = 08:00:27:99:72:be<br>
      hardware-type = 00:00:00:01<br>
      ends = 59:9c:30:bc<br>
      starts = 59:9c:2f:90<br>
      tstp = 00:00:00:00<br>
      tsfp = 00:00:00:00<br>
      atsfp = 00:00:00:00<br>
      cltt = 59:9c:2f:90<br>
      flags = 00<br>
      ><br>
      ----------------------------------------------<br>
      <br>
      4. Set the lease state to FTS_RELEASED (i.e. 4)<br>
      ----------------------------------------------<br>
      set state=4<br>
      omapi_set_value (state, 4)<br>
       ==> success<br>
      obj: lease<br>
      ip-address = b2:10:01:7f<br>
      state = 4<br>
      subnet = 00:00:00:02<br>
      pool = 00:00:00:03<br>
      hardware-address = 08:00:27:99:72:be<br>
      hardware-type = 00:00:00:01<br>
      ends = 59:9c:30:bc<br>
      starts = 59:9c:2f:90<br>
      tstp = 00:00:00:00<br>
      tsfp = 00:00:00:00<br>
      atsfp = 00:00:00:00<br>
      cltt = 59:9c:2f:90<br>
      flags = 00<br>
      ><br>
      ----------------------------------------------<br>
      <br>
      <br>
      5. Save the change via the update object command:<br>
      ----------------------------------------------<br>
      > update<br>
      omapi_set_value (op, 3)<br>
       ==> success<br>
      omapi_set_value (object, dhcpctl-remote)<br>
       ==> success<br>
      omapi_set_value (handle, 4)<br>
       ==> success<br>
      omapi_set_value (result, 4 18c03fc)<br>
       ==> success<br>
      obj: lease<br>
      ip-address = b2:10:01:7f<br>
      state = 4<br>
      subnet = 00:00:00:02<br>
      pool = 00:00:00:03<br>
      hardware-address = 08:00:27:99:72:be<br>
      hardware-type = 00:00:00:01<br>
      ends = 59:9c:30:bc<br>
      starts = 59:9c:2f:90<br>
      tstp = 00:00:00:00<br>
      tsfp = 00:00:00:00<br>
      atsfp = 00:00:00:00<br>
      cltt = 59:9c:2f:90<br>
      flags = 00<br>
      ----------------------------------------------<br>
      <br>
      omshell(1) discusses this in general terms.  dhcpd.conf(5)
      describes how to configure ISC_DHCP for OMAPI connections.<br>
      <br>
      <br>
      Regards,<br>
      <br>
      Thomas Markwalder<br>
      ISC Software Engineering<br>
      <br>
      <br>
      On 8/22/17 8:47 AM, perl-list wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1814560698.321732.1503406052059.JavaMail.zimbra@network1.net">
      <div style="font-family: Andale Mono; font-size: 10pt; color:
        #000000">
        <div style="font-family: Andale Mono; font-size: 10pt; color:
          #000000">To my knowledge, there is no such method available.
           The client is leased the address until a certain expire
          period.  There is no way to tell the client to stop using the
          address early. <br>
          <br>
          <hr id="zwchr" data-marker="__DIVIDER__">
          <div data-marker="__HEADERS__">
            <blockquote style="border-left:2px solid
#1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From:
              </b>"Maneesh Kumar" <a class="moz-txt-link-rfc2396E" href="mailto:maneeshk@cdac.in"><maneeshk@cdac.in></a><br>
              <b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
              <b>Sent: </b>Tuesday, August 22, 2017 7:47:30 AM<br>
              <b>Subject: </b>Mechanism for forcing release of lease
              from the DHCP server end<br>
            </blockquote>
          </div>
          <div data-marker="__QUOTED_TEXT__">
            <blockquote style="border-left:2px solid
#1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">Dear
              Members,<br>
              <br>
              Kindly let me know if there is a mechanism available for
              forcing release of lease from the DHCP server end.<br>
              <br>
              If yes, please let me know the way to achieve the same.<br>
              <br>
              <br>
              Maneesh Kumar<br>
              <br>
              HPC Infrastructure and Ecosystem Group<br>
              Centre for Development of Advanced Computing<br>
              <br>
-------------------------------------------------------------------------------------------------------------------------------<br>
              [ C-DAC is on Social-Media too. Kindly follow us at:<br>
              Facebook: <a class="moz-txt-link-freetext" href="https://www.facebook.com/CDACINDIA">https://www.facebook.com/CDACINDIA</a> &
              Twitter: @cdacindia ]<br>
              <br>
              This e-mail is for the sole use of the intended
              recipient(s) and may<br>
              contain confidential and privileged information. If you
              are not the<br>
              intended recipient, please contact the sender by reply
              e-mail and destroy<br>
              all copies and the original message. Any unauthorized
              review, use,<br>
              disclosure, dissemination, forwarding, printing or copying
              of this email<br>
              is strictly prohibited and appropriate legal action will
              be taken.<br>
-------------------------------------------------------------------------------------------------------------------------------<br>
              <br>
              _______________________________________________<br>
              dhcp-users mailing list<br>
              <a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
              <a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></blockquote>
          </div>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
    <p><br>
    </p>
  </body>
</html>