Automic Workload Automation

Expand all | Collapse all

Syntax of the command for Call API on Linux

Anon Anon

Anon AnonJun 30, 2017 09:19 AM

Legacy User

Legacy UserJun 30, 2017 09:34 AM

Anon Anon

Anon AnonFeb 15, 2018 06:49 AM

Legacy User

Legacy UserFeb 21, 2018 10:29 AM

Anon Anon

Anon AnonFeb 21, 2018 10:32 AM

  • 1.  Syntax of the command for Call API on Linux

    Posted Jun 30, 2017 05:00 AM
    Good Morning,

    When I'm trying to use the Call API command for Linux (AE v12), I always have an access denied if I put the number of my client and the user with department in the command.
    But if I enter this information in the ucblx6c.ini file, I can connect to the system.

    I'm using this command, without informations for user and client number in the .ini file :
    PATHCALLAPI/bin/ucxblx6c SCRIPT=PATHSCRIPTCALLAPI/scriptoa LOGON=0100, CALLAPI, UC INI=PATHCALLAPI/bin/ucxblx6c.ini

    If I use this command (without the LOGON part in the command) I can connect to the system if the Client Number and Login are in the .ini file :
    PATHCALLAPI/bin/ucxblx6c SCRIPT=PATHSCRIPTCALLAPI/scriptoa INI=PATHCALLAPI/bin/ucxblx6c.ini

    I also changed the UC_USER_LOGON to allow connections without a password...

    Does anyone have the solution? Thank you for your help







  • 2.  Syntax of the command for Call API on Linux

    Posted Jun 30, 2017 05:48 AM
    Just tested it on my system out of the BIN directory of my CALL API:

    ./ucxblx6c SCRIPT=script.txt LOGON=0001,BRW,SUP,[password]

    BRW is my user and SUP the department


    20170630/124433.326 - U03000000 Program 'UC4 Call Interface', version '11.2.5+build.321', change list '1497346055' started.
    20170630/124433.326 - U03000017 Build Date: '2017-06-13', '11:32:35'
    20170630/124433.810 - U03000004 RunID '1454058'
    20170630/124433.811 - U03000001 Program 'UC4 Call Interface' version '11.2.5+build.321' ended normally.

    hope this helps.


  • 3.  Syntax of the command for Call API on Linux

    Posted Jun 30, 2017 05:51 AM
    Hello Willem,

    1 - Does the user have the privilege "Logon via CallAPI"?

    2 - Correct syntax is as follows :
    CallAPI file SCRIPT=script file [LOGON=client, user, [department [, password]]] [INI=INI file]
    Your start command looks like this:
    PATHCALLAPI/bin/ucxblx6c SCRIPT=PATHSCRIPTCALLAPI/scriptoa LOGON=0100, CALLAPI, UC INI=PATHCALLAPI/bin/ucxblx6c.ini
    The LOGON part may be missing a parameter, or may be misconfigured - :

    Client = 100
    User = CALLAPI
    Department = UC
    Password = no entry

    Please adjust the parameters if needed. You mentioned UC_USER_LOGON has been set to 'no' so a missing password should not be the problem. I'd just suggest to check to be on the safe side.

    Best regards,
    Antoine





  • 4.  Syntax of the command for Call API on Linux

    Posted Jun 30, 2017 08:52 AM
    Thank you gentlemen for your answers.

    I picked up FrankMuffke's answer :

    Just tested it on my system out of the BIN directory of my CALL API:

    ./ucxblx6c SCRIPT=script.txt LOGON=0001,BRW,SUP,[password]
    Without spaces between the comma and the user, and between the comma and the department, It works ! :wink:

    I have always tried with these spaces precisely as marked in the documentation. That's why it did not work.

    Thank you Antoine_Sauteron and @
    "Wolfgang Brueckler" for your help.

    Best Regards,
    Willem




  • 5.  Syntax of the command for Call API on Linux

    Posted Jun 30, 2017 09:11 AM
    WillemBERROUBACHE611464
    You are welcome :-)

    Indeed Docu is a bit unclear in this case - I added a comment to documentation.

    https://docs.automic.com/documentation/WEBHELP/English/AWA/11.2/AE/11.2/All%20Guides/help.htm#ucacif.htm?Highlight=callapi


    Antoine_Sauteron
    Possibly you cold ask (or create a PRB :-)  ) the DOCU collegues to add an example for Linux



  • 6.  Syntax of the command for Call API on Linux

    Posted Jun 30, 2017 09:16 AM
    Hi,

    WillemBERROUBACHE611464 : thanks for the good feedback!

    FrankMuffke : Sure I can ask for a docu fix. I'll go ahead and create an PRB to let our documentation team know.

    Best regards,
    Antoine



  • 7.  Syntax of the command for Call API on Linux

    Posted Jun 30, 2017 09:19 AM
    THX man!


  • 8.  Syntax of the command for Call API on Linux

    Posted Jun 30, 2017 09:34 AM
    You're welcome :)


  • 9.  Syntax of the command for Call API on Linux

    Posted Jun 30, 2017 09:59 AM
    Hi again,

    PRB00135290 was created for this issue.
    I also tested on Windows, and it also fails if LOGON= contains spaces between its parameters.

    Best regards,
    Antoine


  • 10.  Syntax of the command for Call API on Linux

    Posted Feb 15, 2018 03:33 AM
    Hi Antoine_Sauteron  my old friend,

    Do you have any news for PRB00135290 ?

    I am just courious because I stumbled over the space issue once again :-)

    cheers, Wolfgang


  • 11.  Syntax of the command for Call API on Linux

    Posted Feb 15, 2018 04:29 AM
    Hi FrankMuffke

    Thanks for the follow-up. The PRB was closed some time ago, after a documentation fix.

    I checked again, and... the docu is still invalid :(

    The CallAPI only works if you don't use spaces between the different parameters.

    This works :
    LOGON=client,user,department,password

    This doesn't :
    LOGON=client, user, department, password

    Looks like it was fixed for some time, then replaced with an invalid version (overwritten?). I guess I'll create another PRB with the same description...

    Best regards,
    Antoine


  • 12.  Syntax of the command for Call API on Linux

    Posted Feb 15, 2018 05:18 AM
    Hi Antoine_Sauteron

    THX for the quick reply!

    I crosschecked with V12.1 - here its correct.

    Possibly some [enter characterization here] did only fix the V12.1 docu and ignored V11.2

    => Yes, could you please create a new PRB for that?

    THX & have a great day!

    Wolfgang


  • 13.  Syntax of the command for Call API on Linux

    Posted Feb 15, 2018 05:39 AM
    Hi FrankMuffke

    Thanks for the additional information about 12.1 - however it still contains an unneeded extra space:
    CallAPI file SCRIPT=script file [LOGON=client,user,[department[ ,password]]] [INI=INI file]

    PRB has already been created : PRB00220219

    I entered you as the main contact so you can follow its progression :)

    Best regards,
    Antoine


  • 14.  Syntax of the command for Call API on Linux

    Posted Feb 15, 2018 05:54 AM
    ahhhh thx! this one left was out of my sight....

    Yeah I love collecting PRBs ....
    : SET &PRB_COUNTER_ARR[99216] = "PRB00220219"

    ;-)

    cheers, Wolfgang



  • 15.  Syntax of the command for Call API on Linux

    Posted Feb 15, 2018 05:56 AM
    Better store the Ticket numbers in a static variable, it's safer :)

    Best regards,
    Antoine


  • 16.  Syntax of the command for Call API on Linux

    Posted Feb 15, 2018 06:49 AM
    Sure that you want me to do that?

    >:)


  • 17.  Syntax of the command for Call API on Linux

    Posted Feb 15, 2018 09:02 AM
    ****, that was quick....

    The engineering team has confirmed the issue, and it is planned to be fixed in these upcoming versions :

    • Automation Engine 12.2.0  -      Planned release date: 2018-06-19
    • Automation Engine 12.1.2  -      Planned release date: 2018-05-21
    • Automation Engine 12.0.5  -      Planned release date: 2018-05-07
    • Automation Engine 11.2.8  -      Planned release date: 2018-06-05
    THX Antoine_Sauteron

    cheers, Wolfgang





  • 18.  Syntax of the command for Call API on Linux

    Posted Feb 21, 2018 10:17 AM
    Hi FrankMuffke

    The documentation has been fixed.
    :DELETE_VAR "PRB_TICKETS", "PRB00220219"

    Cheers,

    Antoine






  • 19.  Syntax of the command for Call API on Linux

    Posted Feb 21, 2018 10:26 AM


  • 20.  Syntax of the command for Call API on Linux

    Posted Feb 21, 2018 10:29 AM
    ...sorry I forgot...

    : MOVE_OBJECT ("PRB00220219","PRB_TICKETS")

    cheers, Wolfgang







  • 21.  Syntax of the command for Call API on Linux

    Posted Feb 21, 2018 10:29 AM
    OK... Will check again, thanks :)


  • 22.  Syntax of the command for Call API on Linux

    Posted Feb 21, 2018 10:32 AM
    THX!

    cheers, Wolfgang


  • 23.  Syntax of the command for Call API on Linux

    Posted Feb 21, 2018 10:43 AM
    Hi FrankMuffke

    Just got the answer from the documentation team :
    documentation for v11.2 is not changed anymore. It cannot be built anymore because of tool changes that were made.

    Best regards,
    Antoine


  • 24.  Syntax of the command for Call API on Linux

    Posted Feb 21, 2018 02:27 PM
    Hi Antoine_Sauteron
    THX for the quick info!

    and @docu team: seems that you forgot that a fix for V11.2 was planned for V11.2 - see below:

    The engineering team has confirmed the issue, and it is planned to be fixed in these upcoming versions :

    • Automation Engine 12.2.0  -      Planned release date: 2018-06-19
    • Automation Engine 12.1.2  -      Planned release date: 2018-05-21
    • Automation Engine 12.0.5  -      Planned release date: 2018-05-07
    • Automation Engine 11.2.8  -      Planned release date: 2018-06-05

    cheers, Wolfgang


  • 25.  Re: Syntax of the command for Call API on Linux

    Posted May 02, 2018 04:50 PM

    Any z/OS (platform MVS, SW OS/390) users getting this same error??? I am. I'm actually testing v11.2 load lib and binary files with v12.1 AE.

    This is the same files we're using in our 11.2 AE and it works (i.e. the CALLAPI).

    Error MSG:

    U03000000 Program 'UC4 Call Interface', version '11.2.2+build.622', change list '7627775' started..

    U00003413 Socket call '0' returned error code '0'..................................................................

    U03000002 Program 'UC4 Call Interface' version '11.2.2+build.622' ended abnormal..............................

     

    I found the solution ---   

     

    z/OS CallAPI Interface fails after Automation Engi - CA Knowledge