AutoSys Workload Automation

 View Only

Expand all | Collapse all

The Enterprise Command Line and autocal_asc

  • 1.  The Enterprise Command Line and autocal_asc

    Posted Mar 25, 2025 11:58 AM

     I would like to set multiple calendar dates using the Enterprise Command Line tab and a text file. Using this command, autocal_asc < /home/cakantow/Test.txt, the output I get is as follows:

    AutoSys Calendar Utility


    Please select from the following options:
    [1] Administer Standard Calendar.
    [2] Administer Extended Calendar.
    [3] Administer Cycle.
    [4] List all Calendars.
    [5] List all Cycles.
    [0] Exit AutoSys Calendar Utility.
    >  Invalid response, please try again.


    Please select from the following options:
    [1] Administer Standard Calendar.
    [2] Administer Extended Calendar.
    [3] Administer Cycle.
    [4] List all Calendars.
    [5] List all Cycles.
    [0] Exit AutoSys Calendar Utility.
    >  Invalid response, please try again.


    Please select from the following options:
    [1] Administer Standard Calendar.
    [2] Administer Extended Calendar.
    [3] Administer Cycle.
    [4] List all Calendars.
    [5] List all Cycles.
    [0] Exit AutoSys Calendar Utility.
    >  Invalid response, please try again.


    Please select from the following options:
    [1] Administer Standard Calendar.
    [2] Administer Extended Calendar.
    [3] Administer Cycle.
    [4] List all Calendars.
    [5] List all Cycles.
    [0] Exit AutoSys Calendar Utility.
    >  

    The contents of Test.txt are:

    test_run_calendar_corrie
    A
    03/10/2025

    Is there anyway to go about this without AutoSys requiring keyboard input? OR is there anyway to provide the additional input requested by the output? I do not have access to the server's command prompt.

    Thank you!



  • 2.  RE: The Enterprise Command Line and autocal_asc

    Broadcom Employee
    Posted Mar 26, 2025 01:22 AM
    Hi Corrie,

    This should work, what version of AutoSys are you using, did you open
    ticket on this?

    Regards,
    *Venkat*

    --
    This electronic communication and the information and any files transmitted
    with it, or attached to it, are confidential and are intended solely for
    the use of the individual or entity to whom it is addressed and may contain
    information that is confidential, legally privileged, protected by privacy
    laws, or otherwise restricted from disclosure to anyone else. If you are
    not the intended recipient or the person responsible for delivering the
    e-mail to the intended recipient, you are hereby notified that any use,
    copying, distributing, dissemination, forwarding, printing, or copying of
    this e-mail is strictly prohibited. If you received this e-mail in error,
    please return the e-mail to the sender, delete it from your computer, and
    destroy any printed copy of it.




  • 3.  RE: The Enterprise Command Line and autocal_asc

    Posted Mar 26, 2025 09:01 AM

    We are using version 12.0.01. I have not open a ticket yet.




  • 4.  RE: The Enterprise Command Line and autocal_asc

    Posted Mar 27, 2025 09:54 AM

    I opened a ticket with Broadcom, and the response was "there does not appear to be a way to go about this without keyboard input".




  • 5.  RE: The Enterprise Command Line and autocal_asc

    Broadcom Employee
    Posted Mar 28, 2025 12:21 PM

    Hi Corrie, 

    Please share the case number so I can follow up on this for you. I appreciate @Pothen Verghese's response.

    Thank you,

    -Shannon



    ------------------------------
    _______________________________________
    Shannon Hebert
    Head of AOD Automation Support
    Broadcom Software | Agile Operations Division
    _______________________________________
    ------------------------------



  • 6.  RE: The Enterprise Command Line and autocal_asc

    Posted Sep 02, 2025 03:02 PM
    Edited by Corrie Kantowski Sep 02, 2025 03:28 PM

    The case number is 160007294 and we are using Version: 12.0.01.  I would really appreciate if you could followup. 

    -------------------------------------------



  • 7.  RE: The Enterprise Command Line and autocal_asc

    Broadcom Employee
    Posted Sep 04, 2025 10:30 AM

    Hi Corrie, 

    We are moving ahead with this investigation and will be in touch with you through the Support case 160013370.

    Thank you,

    -Shannon



    ------------------------------
    _______________________________________
    Shannon Hebert
    Head of AOD Automation Support
    Broadcom Software | Agile Operations Division
    _______________________________________
    ------------------------------



  • 8.  RE: The Enterprise Command Line and autocal_asc

    Posted Mar 28, 2025 02:21 PM

    I'm doing something similar with an expect script.  There is no command-line option to regenerate dates for extended calendars (r11.3.6 SP8) so I'm using expect to provide stdin when text in stdout matches provided string.  You can potentially do something similar.

    #!/usr/bin/expect -f

    ## -- Load list of calendars --
    set fildes [open "/path/cals.list" r]

    ## -- Spawn/Setup --
    set timeout -1
    spawn autocal_asc
    expect ">"
    send -- "2\n"

    # -- Loop over calendar names --
    while {[gets $fildes cal] != -1} {
      expect ">"
      send -- "6\n"
      expect "Enter Calendar Name:"
      send -- "${cal}\n"
    }

    # -- Close --
    expect ">"
    send -- "0\n"

    close $fildes

    Best of luck!

    Scott




  • 9.  RE: The Enterprise Command Line and autocal_asc

    Posted Mar 26, 2025 01:32 AM
    Edited by Pothen Verghese Mar 26, 2025 02:11 AM

    Hi,

    The command option to import calendar defin is

    autocal_asc -I <cal_defn_file>

    To modify an existing calendar object use -F as below:

    autocal_asc -F -I <cal_defn_file> 

    Alternatively to import calendars definitions using ECLI, you may use the import option under Export/Import section. Just fetch the file with your calendar definitions first and then use the import option to import the new calendar. To update existing objects check the overwrite checkbox while importing.

    Regards

    Pothen




  • 10.  RE: The Enterprise Command Line and autocal_asc

    Posted Mar 27, 2025 11:04 AM

    Thank you - this information was very helpful!