Genesys Engage on-premises

 View Only

Discussion Thread View
  • 1.  mlcmd command line utility

    Posted 09-01-2024 02:27
    Edited by Stavros Vossos 09-01-2024 02:30

    Has anyone used the mlcmd for getting status and controlling switchover of applications.

    Having a problem getting a connection to config server. I have double checked that I have configured the correct parameters 

    $ Couldn't connect to Config Server: 'CFGConnWriteError'


    As an alternative Can this be done via REST API calls to GAX / GA any documentation...?


    #Platform/SystemAdministration

    ------------------------------
    Stavros Vossos
    Telstra Limited
    ------------------------------



  • 2.  RE: mlcmd command line utility

    GENESYS
    Posted 09-02-2024 03:14

    Hi Stavros,

    It looks like there is a connection issue with config server or a permission problem to read the objects. Please check if you are using the right username and password with minimum permissions to read and execute.

    Here is the command line we use internally and also suggests to customers.

    #!/bin/bash
    
    cshosts=<config server host>
    csport=<config server port>
    cs_user=mluser (Management layer user with minimal permission as mentioned in the drawing below)
    cs_pass=<password for mluser>
    cme_app=<Management layer app of type configuration manager>
    scs_host=<scs application host>
    scs_port=<scs application port>
    appdbid=<application dbid for which you need the runmode>
    
    ./mlcmd_64 -cshost $cshost -csport $csport -csuser $cs_user -cspassword $cs_pass -csappname $cme_app -scshost $scs_host -scsport $scs_port -getappstatus-runmode $appdbid -usedbid
    

    You could create a user <mluser> in the example below in three steps: 

    1. Object to be created: Create an access group (Ex. ML_AG), user (Ex. mluser) and Application object of type configuration manager (Ex. MLAPP).
    2. Association: Add mluser to Access Group ML_AG.
    3. Permissions: Add ML_AG to all the above objects (ML_AG itself, mluser, MLAPP, any SCS application in your environment) and provide read access. Add execute access to MLAPP in addition to read.
    Steps to create Management Layer user and app with minimal permission
    This will also address the concerns of exposing the user and password that may have access to the entire environment otherwise.


    ------------------------------
    Regards,
    Vinod Balan
    Genesys Reporting & Analytics
    ------------------------------



  • 3.  RE: mlcmd command line utility

    Posted 09-04-2024 03:08

    Hi Vinod,

    Thank you for the response.
    I was using the incorrect cme_app name in my connection string which is why it wasn't working.
    Will take your advice on setting up a separate user for running this utility with minimal permissions.
    Utility is great for automating application fail overs when patching.

    Thanks
    Regards Stavros.


     



    ------------------------------
    Stavros Vossos
    Telstra Limited
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources