Skip to main content

Hi Support,

I need to disable multiple clients ( ~100+) in Activity Control and looking for script or command Line to 

qlogin and run command .

Thanks

Kent

 

Hi @kent !  You can do that via REST API:

https://documentation.commvault.com/commvault/v11_sp16/article?p=45918.htm

Specifically:

enableActivityType

The option to enable or disable an activity for a client.

Valid values are:

  • 1
  • 0

activityControlOptions

clientActivityControl


Mike - I really want to use q command instead, 

something like this:  qdisable client -af "C:\DisabledClients.txt" 

is that possible ?

or if you have a completed sample.xml tag for this job,  that would be great !

 

Thanks

Kent


Let me see if I can find something :nerd:


Hi @kent 

May be you can try grouping your clients into a client group and control the activity at the client group level.

https://documentation.commvault.com/11.24/expert/4914_command_line_interface_client_computer_groups.html

 

Thanks,

Sunil-

 


@kent I agree with Sunil and Mike, you can do this via REST and also even easier via a Client Computer Group. Having said that, have you taken a look at the following?

https://documentation.commvault.com/11.24/expert/4870_updating_client_properties_for_multiple_clients_using_command_line_interface_01.html

using:

-activityType BACKUP (or 1 is also valid according to the docs)
-enableActivityType false

for example...

qoperation execute -af xml_path/update_multiple_clients_template.xml -entity/clientGroupName "tier1" -activityType 1 -enableActivityType false

I can’t see any dedicated qdisable style of option for this.