When using High Availability Automatic Failover, how do you check if the current host is the active Control-M/Server host?

Version 1
    Share:|

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Server for UNIX and Microsoft Windows


    COMPONENT:

    Control-M/Server for UNIX and Microsoft Windows


    APPLIES TO:

    Control-M Server version 9.0.00



    QUESTION:

    When using High Availability Automatic Failover, how do you check if the current host is the active Control-M/Server host via a commandline utility?


    ANSWER:

     

    Use the commandline utility "ctmha".  Here is the usage syntax :

      

    ctmha
    Parameter -ACTION isn't specified

      

    usage: ctmha
      -ACTION <IS_INSTALL_PERMITTED|IS_UNINSTALL_PERMITTED> -FP_VERSION <FP version>
      -ACTION <IS_ACTIVE|IS_HA|IS_PRIMARY>
      -ACTION UPDATE_REPLICATION_MODE <ASYNC|SYNC>
      -ACTION UPDATE_REPLICATION_STATUS <NOT_INITIALIZED|NOT_OK|OK>
      -ACTION UPDATE_HA_MODE <DISABLED|AUTO|MANUAL>
      [ -QUIET ]
      [ -DEBUG       <debug level> ]


    Here are some examples:
    > ctmha -ACTION IS_ACTIVE
    Yes

      

    > ctmha -ACTION IS_HA
    Yes

      

    > ctmha -ACTION IS_PRIMARY
    Yes

     


    Article Number:

    000132874


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles