• Print
  • Share
  • Dark

Putting the working server in a failover pair into "partner down" state

  • Updated on 06 Jan 2017
  • 1 minute to read
  • Contributors 

You can either edit the leases file or do this via omshell/OMAPI.

To change via the leases file:

Stop the server, then look for the last failover statement:

failover peer "Failover-Pair-Name" state {  my state state at 1 date;  partner state state at 1 date;}

Items in bold/italics will vary depending on your machine, actual date, etc. In the "partner state" section, change from the existing state to "partner-down":

failover peer "Failover-Pair-Name" state {  my state state at 1 date;  partner state partner-down at 1 date;}

Leave the date and everything else as is. Restart the server.

To change via omshell/OMAPI:

omshell << EOF server localhost key omapi_key "XXX==" connectnew failover-state set name = "foo" openset local-state = 4 update EOF

Note that you will have to enable OMAPI in your dhcpd.conf file in order to use omshell:

To enable OMAPIomapi-port 7911;key omapi_key {        algorithm HMAC-MD5;        secret "XXXX==";};omapi-key omapi_key;

© 2001-2018 Internet Systems Consortium For assistance with problems and questions for which you have not been able to find an answer in our Knowledge Base, we recommend searching our community mailing list archives and/or posting your question there (you will need to register there first for your posts to be accepted). The bind-users and the dhcp-users lists particularly have a long-standing and active membership. ISC relies on the financial support of the community to fund the development of its open source software products. If you would like to support future product evolution and maintenance as well having peace of mind knowing that our team of experts are poised to provide you with individual technical assistance whenever you call upon them, then please consider our Professional Subscription Support services - details can be found on our main website.

Problems with this site? Email us at marketing@isc.org