IT Process Automation

  • 1.  Problem using utilities "caitpamwscli.cmd" - Error "Files was unexpected at this time"

    Posted Jan 07, 2016 07:12 AM

    Hello, Good morning all

     

    we need to call/start a PAM process via cmd (included on a perl script), and we are trying to use the utilities caitpamwscli.cmd ...
    although, the output of this command is:

     

    "Files was unexpected at this time".

     

    The command structure we are using is:

     

    caitpamwscli.cmd" /i user=xxxx password=xxxx uri=https://<pam_machine_url>:443/itpam/soap version=3.0 action=startProcess processName="/Testing/Interfaz_EPI"

     

    NOTE: this PAM is configured with HTTPS, and we already did the keystore import ...

     

    any idea?



  • 2.  Re: Problem using utilities "caitpamwscli.cmd" - Error "Files was unexpected at this time"

    Broadcom Employee
    Posted Jan 07, 2016 09:23 AM

    It looks like you have an extra quote(s) in there that isn't being closed, and I do not believe you need quotes around the processName.

    Additionally, the Web Service Utilities documentation Remote Integration with PAM through the Web Service Utilities (page 31) indicates that you need to point to the truststore and provide the truststore password.

     

    Here is the example from the utility users guide, page 31:

     

     

    C:\>caitpamwscli.cmd /i user=pamadmin password=pamadmin uri=https://server01:8443/itpam/soap action=start Process processName=/Process_2 truststore="C:\mykeystore.jks"

    truststorepassword="pamadmin"

     

    Thank you,

    Michael



  • 3.  Re: Problem using utilities "caitpamwscli.cmd" - Error "Files was unexpected at this time"

    Posted Jan 07, 2016 09:57 AM

    Hello Michael

    Thanks a lot for your time!

    In fact my command doesn't have that extra quotes next to the command, in this case was my mistake during the paste action.

     

    Although, i'm not getting the correct result.still having the same output according to my print screen

     

    2016_01_07_14_54_51_V12KSDTIF.grupo.cm.es_Remote_Desktop.jpg

     

    any idea?

     

    (PS: some values were intentionally ommited)



  • 4.  Re: Problem using utilities "caitpamwscli.cmd" - Error "Files was unexpected at this time"

    Posted Jan 11, 2016 06:09 AM

    Hello, Good morning!

     

    About the error " Files was unexpected at this time", is this known ?

     

    Greetings,

    Ivo



  • 5.  Re: Problem using utilities "caitpamwscli.cmd" - Error "Files was unexpected at this time"
    Best Answer

    Broadcom Employee
    Posted Jan 11, 2016 10:16 AM

    Ivo,

    Files was unexpected at this time is not a Process Automation error specifically, it is a Java error. 

    For example this link shows someone getting this error due to not having encoded quotes:

    http://stackoverflow.com/questions/21602348/batch-file-error-files-was-unexpected-at-this-time