OMAPI ip-address lookup always fail
dan le bray
dlb at univ-lehavre.fr
Wed May 14 08:18:13 UTC 2014
Hello,
when trying to lookup a lease using an ip-address (as mentionned in the
omshell man page), the operation fails with the 'can't open object: not
found' error message. It does work well when looking up a host object
using either a 'name' or 'hardware address' atribute but always fail
when using the ip-address attribute of a lease object. The result is the
same whether the lease was created using OMAPI or defined in the dhcpd.conf.
I searched this list but didn't find any clue about this.
We're using ISC DCPd 4.2.2/x86_64 on Debian Wheezy (7.5).
Example#1: hardware address lookup:
> new host
obj: host
> set hardware-address = 00:50:56:aa:bb:ff
obj: host
hardware-address = 00:50:56:aa:bb:ff
> open
obj: host
hardware-address = 00:50:56:aa:bb:ff
ip-address = 0a:64:0a:64
name = "bidon"
hardware-type = 00:00:00:01
Example#2: name lookup:
> new host
obj: host
> set name = "bidon"
obj: host
name = "bidon"
> open
obj: host
name = "bidon"
ip-address = 0a:64:0a:64
hardware-address = 00:50:56:aa:bb:ff
hardware-type = 00:00:00:01
Example#3: ip address lookup:
> new lease
obj: lease
> set ip-address = 10.100.10.100
obj: lease
ip-address = 0a:64:0a:64
> open
can't open object: not found
obj: lease
ip-address = 0a:64:0a:64
Any help would be helpful.
--
Daniel Le Bray - CRI / Pôle Systeme et Reseaux
Universite du Havre - 25 rue Philippe Lebon - 76600 Le Havre
More information about the dhcp-users
mailing list