James J J Hooper jjj.hooper at
Mon Jul 17 11:54:12 UTC 2006

  I know this isn't an ISC thing but I'm hoping someone on this list knows 
where I'm going wrong!

I'm trying to get perl to interface with dhcpd via omapi.

Running 'make test' of Omapi-perl ( 
<> ) with dhcpd 3.0.3 
and I get the following error:

make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch"
# Running under perl version 5.008005 for linux
# Current time local: Fri Jul 14 17:00:51 2006
# Current time GMT:   Fri Jul 14 16:00:51 2006
# Using version 1.25
Loading OMAPI-perl libs....     ok 1
Connection test....             ok 2
Unable to issue a wait (68)
Create_host() test....          not ok 3
# Failed test 3 in

I think this is due to my key being setup incorrectly. In dhcpd.conf I have:

key fred {
omapi-port 6666;
omapi-key fred;
subnet netmask {
omapi-key fred;

In of Omapi-perl I have:

# don't forget to set these variables
$key = 
$loginkey = 'fred:'.$key;
$servername = '';
$port = 6666;

Can anyone see the problem?  Alternatively, does anyone know of an 
alternate / better way to get perl to talk omapi?


James J J Hooper,
Information Services
University of Bristol

More information about the dhcp-users mailing list