When executing the Control-M/Enteprise Manager exportdeftable, exportdeffolder, or exportdefjob utilities error messages such as "Failed to load user authorizations" may appear.

Version 4
    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/Enterprise Manager


    COMPONENT:

    Control-M/Enterprise Manager


    APPLIES TO:

    All versions of Control-M/Enterprise Manager Use of exportdeftable exportdefjob xml utility



    PROBLEM:

     

      When executing the Control-M/Enterprise Manager exportdeftable, exportdeffolder, or exportdefjob utilities, error messages such as the ones below may appear: 
      
        
      
      Failed to load user authorizations This error may be caused by any of the following:  
    - Server '<GUI Server Name / Host Name>' is not running.  
    - The Server listening port is blocked by the firewall.  
    - The outgoing ports are blocked in this computer. 

     


    CAUSE:

    1. The -HOST or -s value that was entered in the command is in a different case than the GUI Server is registered. 2. The header of the arguments file is causing the conflict


    SOLUTION:

     

    - Ensure that the value of the Control-M/Enterprise Manager GUI Server as in "-HOST" or "-s" option is entered as registered
    - The value is case sensitive so ensure it is entered as defined in the Control-M Configuration Manager (CCM)
    - Enter the GUI Server parameter in the same case in which it appears in the CONTROL-M/Enterprise Manager GUI Login window.
    - For example, assume the GUI Server is "myguiserver".  The command below will fail because the GUI Server is not registered in all uppercase. 

      
      Incorrect:
      
      exportdeftable -USERNAME emuser -PASSWORD empass -HOST MYGUISERVER -ARG_FILE args.xml -OUT_FILE outputfile.xml 
      
        
      
       
       Correct: 
       
       exportdeftable -USERNAME emuser -PASSWORD empass -HOST myguiserver -ARG_FILE args.xml -OUT_FILE outputfile.xml  
      
      
        
      
      If the syntax is correct then remove the header from the arguments file.   

    Change from:

       

    ------------------------------------------------

       

    <?xml version='1.0' encoding='ISO-8859-1' ?>

       

    <!DOCTYPE configuration SYSTEM "/export/emuserdev9/ctm_em/etc/cli/resource/terms.dtd">

       

    <TERMS>

       

    <TERM>

       

    <PARAM NAME="DATACENTER" OP="EQ"

       

    VALUE="Control-M_TEST"/>

       

    <PARAM NAME="CALENDAR" OP="EQ" VALUE="DAILY"/>

       

    </TERM>

       

    </TERMS>

       

    -----------------------------------------------

       

     

       

    To:

       

     

       

    -----------------------------------------------

       

    <TERMS>

       

    <TERM>

       

    <PARAM NAME="DATACENTER" OP="EQ"

       

    VALUE="Control-M_TEST"/>

       

    <PARAM NAME="CALENDAR" OP="EQ" VALUE="DAILY"/>

       

    </TERM>

       

    </TERMS>

       

    -----------------------------------------------

    Another less frequent cause of the message can be missing values in the Client side [Client Home]\data\etc\communication.xml file.
    Check that the EM hostname is in the following value:

    <scope name="ClientsDefault">
        <variable name="WebUrl" value="http://[EM Hostname]:18080" />
      </scope>

    If not, resolve it with the following:
    1. Backup and edit [Client Home]\data\etc\communication.xml
    2. Update the EM webUrl so that it becomes:
    <scope name="ClientsDefault">
        <variable name="WebUrl" value="http://[EM Hostname]:18080" />
      </scope>
    3. Save and exit
    4. Run the utility to check, it should now run as expected

      

     


    Article Number:

    000097864


    Article Type:

    Solutions to a Product Problem



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