free a lease via omshell

Marc Perea marccp at
Tue Feb 24 18:14:47 UTC 2009

Hi, Axel.

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

set ends=00:00:00:00

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!

Message: 3
Date: Wed, 18 Feb 2009 18:49:56 +0100
From: Axel Scheepers <axel at>
Subject: free a lease via omshell
To: dhcp-users at 
Message-ID: <1234979396.7722.57.camel at>
Content-Type: text/plain; charset="us-ascii"

Hi List,

I'm trying to free a lease via omshell by doing;

new lease
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?

Kind regards,

Axel Scheepers
()  ascii ribbon campaign - against html e-mail 
/\   - against proprietary attachments

More information about the dhcp-users mailing list