I want to use the method “get_failover_stateResponse” to get the appliance’s HA status, but don’t know how to get the result. The return value is always “1”.
Hi khtchan,
One means it is the active box. It will always be 1 if this is a standalone BIG-IP, and will be one if this is the primary and has not failed over. If it is the secondary before failover or the primary after failover, you should be getting zero back.
If that is not the case, then I would start by checking the is_redundant() call to make certain the BIG-IP knows it’s part of a pair, and then checking get_failover_mode to see which mode it thinks it’s running in. If is_redundant returns false or get_failover_mode returns ACTIVE, then there is something else going on.
Hope that helps!
Don.