Forum Discussion

Brian_Gibson_30's avatar
Brian_Gibson_30
Icon for Nimbostratus rankNimbostratus
Oct 18, 2016

Best way to determine which LTM is active

Hi,

 

We are looking for a way to remotely determine which LTM in a pair is the active node. We can use SNMP or iControl. But I wasn't able to find mib that would make the most sense.

 

2 Replies

  • Hi Brian, you can use REST Query:

     

    https://hostname/mgmt/tm/cm/failover-status?$select=status

     

    You get an answer like this:

     

    { "entries": { "https://localhost/mgmt/tm/cm/failover-status/0": { "nestedStats": { "entries": { "status": { "description": "STANDBY" }- }- }- }- }- }

     

  • You can also use snmp mibs like this:

     

    snmpwalk -v 2c -c public localhost F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState

     

    giving this result:

     

    F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".1 = INTEGER: unknown(0)

     

    F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".2 = INTEGER: standby(3)

     

    F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".3 = INTEGER: unknown(0)

     

    F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".4 = INTEGER: unknown(0)

     

     

    You can find a list of mibs in /usr/share/snmp/mibs directory.

     

     

    regards