Solved

disable backup client batch command

  • 21 January 2022
  • 5 replies
  • 633 views

Badge +1

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

 

icon

Best answer by Graham Swift 23 January 2022, 21:34

View original

If you have a question or comment, please create a topic

5 replies

Userlevel 7
Badge +23

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

Badge +1

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

Userlevel 7
Badge +23

Let me see if I can find something :nerd:

Userlevel 5
Badge +12

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-

 

Userlevel 4
Badge +10

@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.