Skip to main content
Solved

Cli or script to Stop and start Commserve and MA Services


palcode
Bit
Forum|alt.badge.img+2

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. 

Best answer by Tomas

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

 

View original
Did this answer your question?

6 replies

Forum|alt.badge.img+15

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


Forum|alt.badge.img+1
  • Byte
  • 1 reply
  • Answer
  • March 24, 2021

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

 


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

Moved new question to its own thread:

 


Surendra Nadh Arla
Vaulter
Forum|alt.badge.img+1

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.


Surendra Nadh Arla
Vaulter
Forum|alt.badge.img+1

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


Surendra Nadh Arla
Vaulter
Forum|alt.badge.img+1

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


Reply


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