Question

Take a library offline for Maintenance with powershell or script

  • 8 August 2023
  • 4 replies
  • 68 views

Badge +1

Hello, it is possible with a powershell script a library set to maintenance. Background is we have 2 NAS-Systeme and we want only 1 online is to become a typ of AirGap solution.


4 replies

Userlevel 3
Badge +10

@IKS-IT-Systeme 

We have qscript to do this operation. Please try with the below qscript to mark them offline.

qoperation execscript -sn setLibraryProperty -si LibName -si MarkLibraryOfflineForMaintenance -si 1

https://documentation.commvault.com/v11/expert/expert/setLibraryProperty.html

Badge +1

Thanks for the fast reply, but i have an error output:

Our NAS-Systems have normal SSD Disks, with our Tape Library is the script going.

Userlevel 4
Badge +11

Hello @IKS-IT-Systeme 

The provided qscript will only work for Tape, StandAlone and PnP libraries as the same has been mentioned in the document as well.

If you would like any other customized script as per your requirement and that’s not mentioned in our available qscripts (https://documentation.commvault.com/2022e/expert/123654_available_qscripts.html), you would have to contact our Professional Services team via your Account Manager. 

Best,

Rajiv Singal

Userlevel 3
Badge +6

Hi @IKS-IT-Systeme,

 

A better option is to open a support request to ask if Commvault can document the API call Command Center makes to mark a library for maintenance.


Regards,

Mike

Reply