IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Sagcc command not recognizing

  • 1.  Sagcc command not recognizing

    Posted Wed September 29, 2021 06:37 AM

    Hi Team,

    We are trying to run the sagcc command from CCE linux server, but cce is not recognizing the sagcc command. we are getting below error
    Error:
    -bash-4.2$ sagcc
    -bash: sagcc: command not found
    -bash-4.2$ sagcc --help
    -bash: sagcc: command not found
    -bash-4.2$ ^C

    Some how the VM is showing -bash-4.2$ instead of the VM name so the VM got restored. After restoring the VM we still see -bash-4.2$ and when we tried to run the sagcc command after restoration we still see
    the above error.

    Did any one faced this type of error or any one now how to resolve it?.

    Please help us to resolve this issue.


    #Command-Central
    #webMethods


  • 2.  RE: Sagcc command not recognizing

    Posted Wed September 29, 2021 06:54 AM

    You have to add the command to your PATH environment variable, from the command line type the following

    $ env |grep PATH
    or
    $ echo $PATH

    It should include a directory to your CCE bin directory, if not update your PATH like so

    $ export PATH <CCE_BIN_PATH>:$PATH

    replace CCE_BIN_PATH with the directory to sagcc command, but don’t include the command itself.

    regards,
    John.


    #Command-Central
    #webMethods


  • 3.  RE: Sagcc command not recognizing

    Posted Wed September 29, 2021 07:04 AM

    HI John,

    I didnt see the PATH.

    Now i will cross verify with other servers and will export the PATH.

    will let you now


    #webMethods
    #Command-Central


  • 4.  RE: Sagcc command not recognizing

    Posted Wed September 29, 2021 09:44 AM

    Hi,

    alternatively you can navigate to the CCE_BIN_PATH and use “./sagcc …” directly from there.

    Or you can check if it is possible to create a wrapper script to start CC which can be added to the run level control of the VM.

    Regards,
    Holger


    #Command-Central
    #webMethods


  • 5.  RE: Sagcc command not recognizing

    Posted Thu September 30, 2021 07:13 AM

    Hi Thomsen,

    No we cant do that ./sagcc customer wont accept it


    #Command-Central
    #webMethods


  • 6.  RE: Sagcc command not recognizing

    Posted Thu September 30, 2021 07:14 AM

    Hi Johan,

    I exported the path and restarted CCE server even though we are having same issue like above.
    can you please suggest what else can we do.

    Thanks


    #Command-Central
    #webMethods


  • 7.  RE: Sagcc command not recognizing

    Posted Thu September 30, 2021 08:12 AM

    Can you echo the PATH variable and post the response here?
    If the actual location is correct, this should work (and you can add it to ~/.bashrc for a permanent fix).

    KM


    #Command-Central
    #webMethods


  • 8.  RE: Sagcc command not recognizing

    Posted Thu September 30, 2021 08:14 AM

    Hi Kasi,
    Here is the output

    /appjava/zulu_jdk8.0_292/jre/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/webm7/bin:/opt/perf/bin:/opr/webMethods/oracle/product/11.2.0.2/bin

    bashrc output:

    -bash-4.2$ more .bashrc

    .bashrc

    Source global definitions

    if [ -f /etc/bashrc ]; then
    . /etc/bashrc
    fi

    User specific aliases and functions

    alias sagcc_prov='sagcc exec templates composite apply ’

    Command Central variables added by bootstrap installer

    CC_CLI_HOME=“/opt/softwareag1/CommandCentral/client”
    PATH=“/opt/softwareag1/CommandCentral/client/bin:/appjava/zulu_jdk8.0_212/jre/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr
    /local/sbin:/usr/sbin:/sbin:/home/webm7/bin:/opr/webMethods/oracle/product/11.2.0.2/bin”

    export CC_CLI_HOME
    export PATH
    export JAVA_HOME=/appjava/zulu_jdk8.0_282/jre

    umask 0022
    -bash-4.2$


    #Command-Central
    #webMethods


  • 9.  RE: Sagcc command not recognizing

    Posted Thu September 30, 2021 08:42 AM

    I do not see CCE in your PATH variable -

    Execute this and test again (make sure that everything is in a single line when you paste the following) -

    export PATH=/opt/softwareag1/CommandCentral/client/bin:/appjava/zulu_jdk8.0_292/jre/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/webm7/bin:/opt/perf/bin:/opr/webMethods/oracle/product/11.2.0.2/bin

    This will resolve the issue.

    KM


    #Command-Central
    #webMethods


  • 10.  RE: Sagcc command not recognizing

    Posted Thu September 30, 2021 08:45 AM

    Thank you kasi,

    Let me try this out and will let you know


    #webMethods
    #Command-Central


  • 11.  RE: Sagcc command not recognizing

    Posted Thu September 30, 2021 09:03 AM

    HI Kasi,

    The issue is resolved now my colleague did the same thing and now we can see that the sagcc command is showing as expected

    Thanks you very much for all your help.

    Thanks All for your help.


    #webMethods
    #Command-Central