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

Version 5
    Share This:

    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.  
     
    or  
     
    "Login Failed.  
    Authentication failed." 

     


    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 3. emuser password defined in the command line is not the correct one


    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

    Another problem could be the emuser password used in the utility is not the correct one so double check it and if for some reason it's being used the correct one and still failing to login then do following:

    1. Reset emuser password from Control-M Configuration Manager Authorizations. This will not change DBO password. By resetting the password we're making sure the password is registered properly in DB
    2. Close all client sessions used with emuser to make sure new password takes effect
    3. Rerun the utility again by specifying new password in the command

      

     


    Article Number:

    000097864


    Article Type:

    Solutions to a Product Problem



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