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 ...
Apr 02, 2007
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_ACTIVEThe logic is fairly straight forward. The only loophole I can see is if the dblookup fails for some reason, then it will return a state of standby. You can test this out by adding the Management.DBVariable interface to your project and trying to extract the db key that way. If that method succeeds then the dblookup isn't the problem.
If I were you, here's what I'd first check the apache logs for each system after you make the method call to make sure that the call is going to the correct system. If you find that they are, then I'd try to test out the DBVariable methods to try to extract the key manually. If that succeeds, then I'm not sure where to go from there. You'll likely have to open a support ticket.
-Joe
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
