Service Virtualization

  • 1.  Unable to execute an executable from SSH step

    Broadcom Employee
    Posted Oct 16, 2017 04:34 AM
      |   view attached

    I have added SSH utils jar to hotDeploy folder, restarted service.

    Added a ssh step, provided following details in the step:

    UserName,password,host,port and Test connection was successful(refer attachment)

     

    I have placed "initiatefnciscan" sh file at /root/codeinsight/ 

     

    Provided SSH command as

     

    ./initiatefnciscan --apiendpoint <Endpoint> --authorizationkey <Key> --yamllocation /root/codeinsight/ --checkoutdirectory /root/codeinsight --username <name> --password <password> --action upload

    On clicking Test SSH command it throws following error:

    bash: ./initiatefnciscan: No such file or directory

     

     

    NOTE: the initiatefnciscan file exists in the location specified /root/codeinsight/



  • 2.  Re: Unable to execute an executable from SSH step
    Best Answer

    Broadcom Employee
    Posted Oct 17, 2017 02:55 AM

    Hi,

     

    I think it is better to change the command line like:
    /root/codeinsight/initiatefnciscan --apiendpoint <Endpoint> --authorizationkey <Key> --yamllocation /root/codeinsight/ --checkoutdirectory /root/codeinsight --username <name> --password <password> --action upload
    or
    ./codeinsight/initiatefnciscan --apiendpoint <Endpoint> --authorizationkey <Key> --yamllocation /root/codeinsight/ --checkoutdirectory /root/codeinsight --username <name> --password <password> --action upload

     

    The error message is from the UNIX side and I think the home directory after logging in is "/root" not "/root/codeinsight".

     

    Cheers,