free a lease via omshell
marccp at srttel.com
Tue Feb 24 18:14:47 UTC 2009
I found the same problem when trying to use omshell to terminate a lease early. What we ended up doing was to not even worry about the state at all, and just
after opening the lease we wanted to modify. Once the lease is ended, it appears that the state doesn't matter and the IP can be assigned again. Sorry for delayed response, I was in Vegas last week :)
Hope this helps you!
Date: Wed, 18 Feb 2009 18:49:56 +0100
From: Axel Scheepers <axel at axel.truedestiny.net>
Subject: free a lease via omshell
To: dhcp-users at lists.isc.org
Message-ID: <1234979396.7722.57.camel at ceridwen.thuis.net>
Content-Type: text/plain; charset="us-ascii"
I'm trying to free a lease via omshell by doing;
set hardware-address = "XX:XX:XX:XX:XX:XX"
set state = 00:00:00:02
set state = 00:00:00:01
This doesn't work because as far as I understand atm it still waits for
the ends time of the lease. I can't seem to change the ends variable to
'now', although the state does change.
I wonder if it's possible to free a lease this way. Can I change the
ends time? How should I convert a time to the hex format?
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
More information about the dhcp-users