<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <tt>Set flags value to 4:<br>
      <br>
      A bit of bash:<br>
      <br>
      <br>
      omshell 1>$errfile 2>&1 << END_OF_INPUT<br>
      server localhost<br>
      port 7911<br>
      connect<br>
      new lease<br>
      set ip-address = $addr<br>
      open<br>
      set flags = 4<br>
      update<br>
      END_OF_INPUT<br>
      <br>
      <br>
      <br>
      You should see the word "reserved" added to the lease:<br>
      <br>
      lease 178.16.1.100 {<br>
        starts 1 2020/07/20 14:00:00;<br>
        ends 1 2020/07/20 15:00:00;<br>
        tstp 1 2020/07/20 15:00:00;<br>
        cltt 1 2020/07/20 14:00:00;<br>
        binding state free;<br>
        reserved;<br>
        hardware ethernet 08:00:27:25:d3:f4;<br>
        set remote-handle = %1;<br>
      }<br>
    </tt><br>
    <div class="moz-cite-prefix">On 7/20/20 9:18 AM, Gregory Sloop
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1423850443.20200720061855@sloop.net">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <title>Re: omshell reservation</title>
      <meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=9;
        IE=8; IE=7; IE=EDGE">
      <span style=" font-family:'Courier New'; font-size: 9pt;">Still
        struggling with this.<br>
        <br>
        Perhaps I wasn't clear, but question #3 was about what I see in
        the leases file.<br>
        <br>
        After the lease is expired, here's what I find in the leases
        file.<br>
        ---<br>
        lease 10.8.20.229 {<br>
          starts 5 2020/07/17 22:42:54;<br>
          ends 5 2020/07/17 22:42:52;<br>
          tstp 5 2020/07/17 22:42:54;<br>
          tsfp 5 2020/07/17 22:42:54;<br>
          atsfp 5 2020/07/17 22:42:54;<br>
          cltt 5 2020/07/17 18:42:52;<br>
          binding state backup;<br>
          hardware ethernet 98:01:a7:ff:ff:ff;<br>
          uid "\000\000\000\000\000\000";<br>
          set remote-handle = %3;<br>
          set vendor-class-identifier = "MSFT 5.0";<br>
        }<br>
        <br>
        ---<br>
        <br>
        The only thing that I noticed that changed after setting flags
        was the<br>
          set remote-handle = %3;<br>
        And I can't find any detail about what "remote-handle" is.<br>
        Does it even apply to reservations?<br>
        <br>
        TIA<br>
        -Greg<br>
        <br>
        <br>
        <span style=" color: #800000;"><b>gsuca> Great sleuthing
            there Greg. omshell typically writes something into the<br>
            gsuca> leases file, so have a look for the *last* record
            for the given IP<br>
            gsuca> address and see what is in it, especially compared
            to earlier ones.<br>
            <br>
            gsuca> regards,<br>
            gsuca> -glenn<br>
            <br>
            gsuca> On 2020-07-18 08:02, Gregory Sloop wrote:<br>
            >> I'm trying to accomplish a "reservation" using
            omshell.<br>
            <br>
            >> But just like Unicorns, Santa, and the Easter
            Bunny, I'm not sure it<br>
            >> really exists!<br>
            >> Ok, ok. Yeah, it probably does - but I can't find
            an example anywhere<br>
            >> that's confirmed to work.<br>
            <br>
            >> This quote from long ago summarizes my feelings so
            far. [probably<br>
            >> nearly everyone's, actually]<br>
            <br>
            >>> involves a rather fragile and often misbehaving
            omshell<br>
            >>> process where the only "documentation" is half
            a mailing list thread<br>
            >>> from ten years ago<br>
            <br>
            >> So, from what I've gleaned, this is what I'm doing.<br>
            >> After you get into omshell<br>
            >> ---<br>
            >> port xxx<br>
            >> server localhost<br>
            >> key...<br>
            >> set ip-sddress=1.2.3.4<br>
            >> open<br>
            >> ---<br>
            <br>
            >> I get a listing of the lease for 1.2.3.4<br>
            >> Then it looks like I should use<br>
            >> set flag = 8<br>
            >> update<br>
            >> [And surprisingly the update takes. It feels like
            magic when you<br>
            >> finally hit on the right incantation!]<br>
            <br>
            >> So, my questions<br>
            >> 1) Is setting flags = 8 the right thing to set for
            a reserved lease?<br>
            >> (I'm guessing from that even less than half a
            thread from 10y ago.)<br>
            <br>
            >> 2) How can I tell if it actually took?<br>
            <br>
            >> 3) And perhaps realated to #2 - what's this mean in
            the lease: set<br>
            >> remote-handle = %3; (I see that after setting flag
            = 8<br>
            <br>
            >> TIA<br>
            >> -Greg<br>
            >> _______________________________________________<br>
            >> ISC funds the development of this software with
            paid support<br>
            >> subscriptions. Contact us at </b></span></span><a
        style=" font-family:'courier new'; font-size: 9pt;"
        href="https://www.isc.org/contact/" moz-do-not-send="true">https://www.isc.org/contact/</a><span
        style=" font-family:'courier new'; font-size: 9pt; color:
        #800000;"><b> for more<br>
          >> information.<br>
        </b></span><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at <a class="moz-txt-link-freetext" href="https://www.isc.org/contact/">https://www.isc.org/contact/</a> for more information.

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>
    <br>
  </body>
</html>