OMAPI: Retrieve lease object given hardware-address and state

Robin Breathe robin-dhcp at isometry.net
Wed Aug 24 07:42:51 UTC 2005


Robin Breathe wrote:
> The real problem comes when I start trying to lookup leases given just 
> hardware-address/-type. If I specify only hardware-address, 
> hardware-type and state, it more often than not reports that "more than 
> one object matches key". Manual inspection of the leases file makes it 
> apparent that in these cases there are indeed multiple leases with the 
> same hardware-address (for example in different subnets), but that only 
> one is active (I have "one-lease-per-client on" set). Thus ignoring 
> 'state' has become a real problem, since I can't retrieve *any* lease 
> object.

I've now had the opportunity to clear out the leases file, and currently
with 430 distinct MAC addresses this seems to be working (i.e. I can
search leases by hardware-address).

As nobody replied to my initial query, could anyone more knowledgeable
than I tell me whether I can expect for this to continue working? It is
possible there were some stale leases following global configuration
changes in the old leases file.

Regards,
Robin
-- 
Robin Breathe, Computer Services, Oxford Brookes University, Oxford, UK
rbreathe at brookes.ac.uk       Tel: +44 1865 483685  Fax: +44 1865 483073



More information about the dhcp-hackers mailing list