OMAPI ip-address lookup always fail

dan le bray dlb at univ-lehavre.fr
Thu May 22 08:25:02 UTC 2014


Hello,
a lil up... any chance to see some feedback about this OMAPI trouble?
Does anyone has already succeeded to lookup an entry using the ip-address?

cheers

On 14/05/2014 10:18, dan le bray wrote:
> 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
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users


More information about the dhcp-users mailing list