Forum Discussion
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_ACTIVE
The 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