mclt Values, was 2 Instances of dhcp on Same Platform

Glenn Satchell Glenn.Satchell at uniq.com.au
Tue Feb 27 11:25:43 UTC 2007


>To: dhcp-users at isc.org
>Subject: Re: mclt Values, was 2 Instances of dhcp on Same Platform 
>Date: Mon, 26 Feb 2007 14:56:23 -0600
>From: Martin McCormick <martin at dc.cis.okstate.edu>
>
>"David W. Hankins" writes:
>> I'd hate to recommend using OMAPI as I know how painful it is to
>> use it effectively.  I also have no plans to perpetuate it.
>> 
>> But it can absolutely do the thing you describe today, which is
>> at least better than the vaporous alternative I'd rather we had.
>
>	I hope whatever replaces omapi is script-friendly, also.
>I think I once compared the idea to the nsupdate utility for
>bind.  It is easily incorporated in to shell scripts and other
>automation.  Omapi isn't fun, but at least it is here and can be
>scripted in to an expect script which can be created by the same
>back end that now sends out new dhcpd.conf configurations so this
>is the best possible news.  Thanks for the warning about making
>sure both servers see the same omapi events.  The fact that
>static addresses aren't part of any pools means that they don't
>fall in to the failover synchronization system.  Some method of
>syncing them might be a good idea when another external control
>mechanism is developed.
>
>	Again thanks to you and Glenn Satchell for getting me/us
>on to a  better design.

There's some examples in the omshell man page that create new objects.
Note that omshell reads from stdin, so you can do simple things in a
script like

omshell < file_of_commands

and this taken straight from the omshell man page

omshell <<EOF
new host
set name = "some-host"
set hardware-address = 00:80:c7:84:b1:94
set hardware-type = 1
set ip-address = 192.168.4.40
create
EOF

Have a look back through the mailing list archives. There have been a
few omshell type scripts posted over the years. One technique was to
also update dhcpd.conf with the same host entries to avoid losing them
from dhcpd.leases. I'm not sure how successful, or whether that's
recommended, but might be worht testing out too.

regards,
-glenn


More information about the dhcp-users mailing list