Skip to main content

Hi, have anyone made a script or used cli commands to control the procedure of shutting down an entire commserve environment in windows.

I suppose you can do most of the stopping services with windows powershell , but how to disable all activity in commserve. 

Hi @palcode 

Thanks for the question, we have lots of command line capability in Documentation:

Command Line

Specifically, to disable activities at Commcell level, you need this command:

Disabling Activities at the CommCell Level Using the Command Line Interface

Thanks,

Stuart


for stopping and disabling services you can use:

GxAdmin.exe -consoleMode -stopsvcgrp All -disable -timeout 60

but before doing this on MAs, I would recommend to disable MAs on Commvault level before, and ensure no jobs using these MAs are running:

qoperation execscript -sn setMediaAgentProperty -si sample_ma -si 9 -si 0

 


Moved new question to its own thread:

 


I could not find the timeout value anywhere in our documentation, all our console timeouts are defined in seconds, It might be the same here.


Hi Palcode, 

 

You can find the CLI command for disable/enable activity in the below link.

 

https://documentation.commvault.com/11.21/expert/133379_disabling_activities_at_commcell_level_using_command_line_interface.html


You can automate both the tasks in workflow automation as well if you have basic knowledge on Workflows


Reply