Tried to fix a "peer holds all free leases" problem in my failover DHCP setup, using "omshell" to set the running dhcpd to state "partner-down".
Trying to connect with omshell, returns the following error:
[SOLUTION]dhcpctl_connect: no more
By default, the om-api connection is not configured in /etc/dhcp/dhcpd.conf, so you must add a few lines to enable the omshell connection.
Thanks to the DHCPd failover article on Frederik's blog, I got an idea of how to configure the "omapi" for using "omshell".
Add the following lines to your primary DHCP server dhcpd.conf:
Code: Select all
key primaryhost {
algorithm hmac-md5;
secret "secret";
};
omapi-key primaryhost;
omapi-port 7911;
Code: Select all
server localhost
port 7911
key primaryhost "secret"
connect
This is not an error, but it indicates, that you haven't told omshell which "object" to work on.obj: <null>
For example:
Code: Select all
new failover-state
set name = "failovername"
open