<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18812"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hi Billy,</DIV>
<DIV>I'm not sure what your exact goal is for removing the lease entirely, but we use omshell to what we call "clear" a lease. We're using option 82 to define a customer and 1 lease per customer, 1 class per customer for a statically assigned dynamic IP pool of 1 address. When a customer has to replace a modem, that's a problem if there is an existing lease because the IP is tied to the old modem's MAC address until that lease expires. I tried many different maneuvers, but only one seemed to fit what we needed to have happen; I really wanted to remove the lease entirely, but have only been able to force the lease to end prematurely instead - using omshell, of course you could use perl or something else to manually edit the file, but that invokes its own set of trouble.</DIV>
<DIV> </DIV>
<DIV>Anyway, if ending the lease on demand is an acceptable solution for you, you can just</DIV>
<DIV>>set ends 00:00:00:00</DIV>
<DIV>>update<BR></DIV>
<DIV>This leaves the lease in the database, but will set the end time (to the beginning of time?) so that the lease is available for re-use on another MAC. It works great for us. We then tied a script to do that work to a web page that our support people have access to, and it's working well for us.</DIV>
<DIV> </DIV>
<DIV>HTH - Marc</DIV>
<DIV> </DIV>
<DIV>PS - Just wanted to send a thanks to Glenn and Simon who have imparted lots of knowledge to me through this list and without whose help I'm sure I wouldn't have nearly as robust or as stable a deployment!</DIV>
<DIV> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV>Date: Thu, 21 Jan 2010 14:37:28 +1100<BR>From: Glenn Satchell <glenn.satchell@uniq.com.au><BR>Subject: Re: Remove Lease via omshell<BR>To: Users of ISC DHCP <dhcp-users@lists.isc.org><BR>Message-ID: <4B57CBF8.3020507@uniq.com.au><BR>Content-Type: text/plain; charset=UTF-8; format=flowed<BR><BR>Hi Billy<BR><BR>Selecting by anything only works when it matches one lease. That <BR>hardware-address must correspond to more than one lease, so in that case <BR>hardware-address and dhcp-identifier are not unique selectors. <BR>ip-address is always a unique selector for a lease.<BR><BR>I don't know about removing a lease, I thought that was only for host <BR>entries, perhaps someone else can help?<BR><BR>-- <BR>regards,<BR>-glenn<BR>--<BR>Glenn Satchell                            |  Miss 9: What do you<BR>Uniq Advances Pty Ltd, Sydney Australia   |  do at work Dad?<BR>mailto:glenn.satchell@uniq.com.au         |  Miss 6: He just<BR><A href="http://www.uniq.com.au">http://www.uniq.com.au</A> tel:0409-458-580   |  types random stuff.</DIV></BLOCKQUOTE></BODY></HTML>