Symantec IGA

  • 1.  PX vApp issue cmd

    Posted Apr 11, 2018 03:47 PM

    Hi.

     

    Can't find doc about how to Execute Command Line in vApp.  Have done in Windows.  We want to generate a text file with parameters.  Multiple lines but expect to issue mulitple commands.  Have tried to use echo. But receive:

    Failed to execute ExecuteCommandLineEvent. ERROR MESSAGE: IOException:Cannot run program "sh /bin/echo test ": error=2, No such file or directory

     

    Is it possible to write to a windows share???

    Is there any documentation better than docops????

     

    Thanks in advance :-) - Jens



  • 2.  Re: PX vApp issue cmd

    Broadcom Employee
    Posted Apr 12, 2018 04:36 AM

    In the PX, you need to have an action rule such as:

     

    The command should be excutable by the wildfily user, and each parameter on separate line

    The command should be executable by the wildfly users, and files used as parameters readable by the wildfly user.



  • 3.  Re: PX vApp issue cmd

    Posted Apr 12, 2018 06:01 AM
      |   view attached

    Hi thanks a lot.

     

     

     

    Have tried this, but doesn’t get anything in my file.

     

     

     

    Thanks in advance

     

     

     

     

     

    Jens Gregersen

     

    GREGERS ApS

     

    Tel: +45 20 60 27 34

     

    Email:  <mailto:greje@os.dk> greje@os.dk

     

    CVR. Nr. 35411127



  • 4.  Re: PX vApp issue cmd

    Broadcom Employee
    Posted Apr 15, 2018 04:07 AM

    I assume /bin/echo is not a script. If so, the /bin/sh is redundant, and the command should be /bin/echo.

    Also /home/config is not writable by the wildfly user, which is the user context of the application. Try to write to /tmp and see if you get results.

     



  • 5.  Re: PX vApp issue cmd
    Best Answer

    Broadcom Employee
    Posted Apr 18, 2018 04:19 AM

    Hi Jens,

     

    Doing as following works fine in my vApp:

    1.

    create a script /tmp/px.sh
    #!/bin/sh
    date > /tmp/px.txt

    2.

    chmod ugo+rx /tmp/px.sh

    3.

    configure the action rule on your PX which will be triggered before Modify User Event for test purpose with
    Category: External Code
    Type: Execute Command Line
    Function: Execute Command Line
    Command: /tmp/px.sh

    Then, upon running your modify user admin task, the /tmp/px.txt is generated as well.

     

    Best Regards,

    Philippe.