Forum Discussion
Alok_3817
Apr 08, 2010Nimbostratus
I think, this can be easily achieved
use the iControl API
Step 1: Connect to a box using iControl
Step 2: get_failover_state , It will respond 1 for Active and 0 for the Standby
Step 3: get_peer_address, It will give you the IP address for Peer
Step 4: Connect to the IP address that ou just got , using iControl
Step 5: get_failover_state, you will get the response
If the response got from step 2 and step 5 are "1" then it is Active Active config, if not, its active standby.
You could chose to add the "is_redundant" before the script gets into all the computation. I think this is logically consistant.