AutoSys Workload Automation

 View Only
  • 1.  The Enterprise Command Line and autocal_asc

    Posted 23 days ago

     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 23 days ago
    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 23 days ago

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




  • 4.  RE: The Enterprise Command Line and autocal_asc

    Posted 22 days ago

    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 20 days ago

    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 20 days ago

    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




  • 7.  RE: The Enterprise Command Line and autocal_asc

    Posted 23 days ago
    Edited by Pothen Verghese 23 days ago

    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




  • 8.  RE: The Enterprise Command Line and autocal_asc

    Posted 21 days ago

    Thank you - this information was very helpful!