Skip to main content
Question

Take a library offline for Maintenance with powershell or script

  • August 8, 2023
  • 4 replies
  • 97 views

Forum|alt.badge.img

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

Forum|alt.badge.img+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


Forum|alt.badge.img

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.


Rajiv
Vaulter
Forum|alt.badge.img+12
  • Vaulter
  • August 8, 2023

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


Forum|alt.badge.img+7
  • Novice
  • August 9, 2023

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