Forum Discussion

khtchan00_50916's avatar
khtchan00_50916
Icon for Nimbostratus rankNimbostratus
May 22, 2008

How can I get the Failover State by iControl API ?

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".

 

 

 

  • Don_MacVittie_1's avatar
    Don_MacVittie_1
    Historic F5 Account
    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.