Forum Discussion
Mike_Thompson_9
Nimbostratus
Mar 30, 2007Active Passive Member Problem
For some reason, when I call the get_failover_state method from the System module, I am getting the same result for each device.
I always get FAILOVER_STATE_STANDBY. However, if I login in to the UI on each device, there is clearly a device in STANDBY and a device in ACTIVE.
Here is my code. Not sure what I could be doing wrong, this should be a simple call:
Dim URL As String = "https://" & inDeviceName & "/iControl/iControlPortal.cgi"
_F5System.Url = URL
_F5System.Credentials = CredentialBuilder(URL)
_F5System.AllowAutoRedirect = False
_F5System.PreAuthenticate = True
_F5System.Timeout = 20000
Public Function GetFailoverState() As F5System.SystemFailoverFailoverState
_F5System.get_failover_state()
End Function
Any help would be appreciated.
- Obvious question first: are you sure you are updating the URL to each server and all requests aren't going through a shared management address? You can tell this by looking at the apache logs (/var/log/http/access_log) on each server.
$ b db failover.bigipunitmask
- Mike_Thompson_9
Nimbostratus
Thanks Joe. I ran the query on each device with the following results: - Those are the correct DB values. 0 for standby, 3 for active. I just checked the source for that interface and the logic goes like this
set dbval = dblookup("Failover.BigipUnitMask") if dblookup failed or dbval eq 0 then return FAILOVER_STATE_STANDBY else return FAILOVER_STATE_ACTIVE
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects