Skip to main content
Solved

what does timeout 60 indicate in workflows?

  • January 26, 2022
  • 7 replies
  • 511 views

Forum|alt.badge.img+9

Hi I would like to stop services through workflow ; how do i confirm that all the services are stopped 

what does timeout 60 indicate?

 

My workflow gets stuck at this step when i tried to stop services using :

GxAdmin.exe -consoleMode -stopsvcgrp All -stop

, with “waiting for response from workflow”

Best answer by alligator

 

View original
Did this answer your question?
If you have a question or comment, please create a topic

7 replies

Mike Struening
Vaulter
Forum|alt.badge.img+23

The timeout 60 means will make this attempt for 60 seconds before it stops trying to do the shutdown.

Can you add in the timeout and retry?  Can you share your workflow details as well?  

You could run a status check on the services after your stoppage to confirm it works well:

https://documentation.commvault.com/11.24/expert/7580_verifying_status_of_commvault_services_using_network_test_tool_in_command_line.html


Forum|alt.badge.img+9
  • Author
  • Byte
  • 62 replies
  • February 2, 2022

Thank you Mike, 

 

so i tried without the timeout , and gave waitforProcesscompletion as false for that executescript activity in the workflow, so that workflow would move to next step.


Forum|alt.badge.img+9
  • Author
  • Byte
  • 62 replies
  • Answer
  • February 2, 2022

 


Mike Struening
Vaulter
Forum|alt.badge.img+23

@alligator , apologies for the delayed reply (just got back from vacation).

Did the change to waitForProcesscompletion work for you, or is it still not working right?

Thanks!!


Forum|alt.badge.img+9
  • Author
  • Byte
  • 62 replies
  • February 8, 2022

yes it worked :) thanks Mike

i guess the workflow cannot wait for an update for that step as I’m stopping the services on that client, and hence its getting stuck.

 

 


Mike Struening
Vaulter
Forum|alt.badge.img+23

Awesome!  I’m going to split this into its own thread, so we can properly credit your solution to this issue.


Forum|alt.badge.img+9
  • Author
  • Byte
  • 62 replies
  • February 14, 2022

Here is the workflow details, 

Open for suggestions/feedback :)

 

Workflow Inputs:

Input variable1 : <amazon_virtualization_client>

Input variable 2 : <proxy_name> #VSA proxy that needs to be rebooted


1: Using job module, looks for active jobs for the given <amazon_virtualization_client>
2: If there are active jobs, it will wait in a loop for each job to complete and checks for active backups again.
3: When there are no jobs, it would execute a .bat script on the <proxy_name> and immediately goes to Step 4 without waiting for this step to complete

.bat script contains the following commands.

GxAdmin.exe -consoleMode -stopsvcgrp All -stop
TIMEOUT 80
shutdown -r

4: Delay counter for 10 minutes  (workflow would wait at this step, this is the time for the reboot to finish and server to be online)
5: Performs a check-readiness on the <proxy_name>
6: Emails the user with the output of check-readiness on <proxy_name>

 

Schedule this workflow to run during a non-backup window monthly once according to the patching schedule.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings