Profile picture for user jordanjt95

Hi,

I'm looking for an ACC command that starts all the runnables automatically but I can't find it.

For example :

I'm restarting the server where Aris Server is installed. I don't want to open ACC and enter the command "startall", I need that all the runnables start automatically.

Thank you

by Runé Becker
Badge for 'Mastermind' achievement
Posted on Mon, 03/21/2022 - 17:19

Dear Jordan,

When your ARIS is in autostart mode, then you could use restart agent after stopping all runnables. That command restarts ARIS Agent (Windows service) which then looks up the autostart mode.

You can check the autostart mode via  the ACC command get autostart.mode. Gettign the response value "Off" would not start up the ARIS runnables when ARIS Agent restarts. But an "All" would restart your ARIS stack.

A few more ACC commands might useful for you, such as restart runnable loadbalancer_m. That stops a runnable and restarts it in one step. It replaces the following longer command sequence:
stop loadbalancer_m
wait for stopped loadbalancer_m
start loadbalancer_m

Another helpful ACC command is already used above wait for... which I am using quite often. It helps me to send a sequence of ACC commands which require a certain status of a runnable, e.g. either STOPPED or STARTED. The wait command waits for the runnable to reach the requested state, and only after that then next ACC command is processed.

The following example stops all runnables, waits until the last/first runnable (Zookeeper) has stopped, too, then restarts ARIS Agent, then waits for the last runnable being started which is loadbalancer_m, and then lists all runnables.
stopall
wait for stopped zoo_m
restart agent
wait for started loadbalancer_m
list

Cheers
Runè

0
by Martin Schröder
Badge for 'Contributor' achievement
Posted on Wed, 04/20/2022 - 19:38

Nice, restart agent was news to me. You can refine this procedure into a one click "Restart ARIS" link on Windows.

1. Create an ACC command list file ACC_commands.txt

# ACC command file, run with acc.bat -cf <path\filename>
stopall
# first started runnable is stopped last
wait for stopped zoo_m
# restart agent must wait for success, before next ACC command can be executed
restart agent wait
# Last starting runnable
wait for started loadbalancer_m
list

2. Create a link to acc.bat with the usual arguments and append "-cf PathTo\ACC_commands.txt"

Maybe this use case can be added to the Aris Cloud Controller reference.

Regards, Martin

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks
  • SS
  • MZ
  • Profile picture for user kbiront
  • Profile picture for user Tony Iliev
  • Profile picture for user amandeep.7.singh
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock