<html><head><title>Re: omshell reservation</title>
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">Ohhhh... Very cool bash script, BTW.<br>
(my bash-foo is weak! Grasshopper will remember this tidbit!)<br>
<br>
I owe you a beer, or something!<br>
Thanks a bunch!<br>
<br>
[BTW, where/how do you determine what flag values to use - other than asking a dev? Is it documented somewhere other than just source code?]<br>
<br>
Again, thanks so much!<br>
<br>
-Greg<br>
<br>
<br>
</span><table style =" border-collapse: collapse;" cellpadding = 1 cellSpacing = 2>
<tr>
<td  width=2 bgcolor= #0000ff><br>
</td>
<td ><span style=" font-family:'courier new'; font-size: 9pt;">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>
<br>
On 7/20/20 9:18 AM, Gregory Sloop wrote:<br>
</span><table style =" border-collapse: collapse;" cellpadding = 1 cellSpacing = 2>
<tr>
<td  width=2 bgcolor= #3200ff><br>
</td>
<td ><span style=" font-family:'courier new'; font-size: 9pt;">Re: omshell reservation</td>
</tr>
</table>
</td>
</tr>
</table>
<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/">https://www.isc.org/contact/</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b> for more<br>
>> information.<br>
<br>
</b><span style=" color: #000000;">_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at </span></span><a style=" font-family:'courier new'; font-size: 9pt;" href="https://www.isc.org/contact/">https://www.isc.org/contact/</a><span style=" font-family:'courier new'; font-size: 9pt;"> for more information.<br>
<br>
dhcp-users mailing list<br>
</span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
<br>
<span style=" font-family:'arial'; color: #c0c0c0;"><i>--<br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: 503.251.0452 x121<br>
EMail: </i></span><a style=" font-family:'arial';" href="mailto:gregs@sloop.net">gregs@sloop.net</a><br>
<a style=" font-family:'arial';" href="http://www.sloop.net">http://www.sloop.net</a><br>
<span style=" font-family:'arial'; color: #c0c0c0;"><i>---</body></html>