<html><head><title>Re: OMAPI Reservations and peer/failover</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;">Following up on my own post.<br>
Given what I've been able to dig up on the subject of omapi and peers, I'm pretty sure you have to run against both, explicitly.<br>
<br>
But, additional complication arise!<br>
<br>
As noted, a fair bit of reading and searching seems to indicate you have to run the omshell commands against each server.<br>
However, this is particularly interesting (or perhaps troubling.)<br>
See: </span><a style=" font-family:'Courier New'; font-size: 9pt;" href="https://lists.isc.org/mailman/htdig/dhcp-users/2006-July/001102.html">https://lists.isc.org/mailman/htdig/dhcp-users/2006-July/001102.html</a><br>
<br>
<span style=" font-family:'Courier New'; font-size: 9pt;">To save you the click, I'll quote...<br>
---<br>
"You will have to rerun the statement on both peers.<br>
Take careful note of servers that lose their dhcpd.leases files, you'll have to be able to 0-to-60 them by replaying everything. "<br>
---<br>
<br>
There was no expansion on this - and my understanding of it is somewhat ambiguous.<br>
Does this mean that if I have a peer that gets rebuild and the leases file is deleted, it won't get a copy of the "original" leases file from it's peer and that all the "reservation" flags will be lost and I will have to re-run all the omapi commands against the peer which lost the leases file?<br>
<br>
Assuming that's the correct interpretation...<br>
I suppose that it's best then, to copy the leases file from the "still-up' peer to the rebuilt peer. (I can't see a reason not to do this, but perhaps I'm missing something.)<br>
<br>
I'd be thrilled for the grizzled old-timers out there to weigh in and offer me some of that sage advice! :)<br>
[On this list, anyway, that usually means super-helpful and awesome posts. That isn't the usual response of the old veterans from other lists, however!]<br>
<br>
Perhaps this is all done way better in Kea, I dunno. Perhaps I ought to start looking at that.<br>
<br>
Thanks in advance!<br>
-Greg<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;">Anyone?<br>
I kinda want to get this handled and off my plate, so I'm probably a little impatient. :)<br>
<br>
Thanks again!<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;">I finally got around to attempting to set the reservation flag on some dhcp leases using omapi.<br>
(I'd asked about how to do this with OMAPI ages ago ... since I can do it live and not have to stop the DHCP servers and hand edit the leases file.)<br>
<br>
I'm running a pair of peers/failover/load-balance machines for dhcp.<br>
<br>
So, I set the reserved flag on one server, but the leases file on the other server doesn't see/reflect the reservation for that same lease.<br>
(I see the lease on both machines, but there's no reservation on the second server. The one I didn't target with the omapi connection/change.)<br>
<br>
Do I have to run OMAPI against both servers?<br>
(I guess I kind of thought since it's a change to the lease, it would get communicated between the peers. That looks like a bad assumption.)<br>
<br>
Can someone, (probably ISC) confirm the "right" way to do this?<br>
<br>
TIA<br>
-Greg</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</body></html>