PowerShell script exchange
Post Reply
notrootbeer
Novice
Posts: 8
Liked: never
Joined: Jan 04, 2019 5:18 pm
Contact:

9.5 Update4 - New cmdlets?

Post by notrootbeer »

We're currently testing the RTM (update4) for our tape backup jobs and we're wondering if you could share with us the new cmdlet to set the Tape Library Roles to either 'Active' or 'Passive'. Is this something you can provide before the GA?
Dima P.
Product Manager
Posts: 14726
Liked: 1706 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: 9.5 Update4 - New cmdlets?

Post by Dima P. »

Hello notrootbeer,

If I am not mistaken we do not have cmdlets for this option. The setup of your tape library in the media pool is a one-time operation, so can you please elaborate why you want to script it? Thank you in advance!
notrootbeer
Novice
Posts: 8
Liked: never
Joined: Jan 04, 2019 5:18 pm
Contact:

Re: 9.5 Update4 - New cmdlets?

Post by notrootbeer »

Hi Dima,

We have a script that runs before our tape jobs. It does a calculation of data to be backed up and then limits the number of tape drives per media pool so that job(s) don't use more tapes/drives than necessary. Here's a snippet of our script:
elseif (($UsedSpace -ge 6.0) -and ($UsedSpace -lt 8.0)) {
Write-host "4 drives"
Set-VBRTapeMediaPool -MediaPool DailyBackup -Library Library1,Library2,Library3,Library4 -EnableMultiStreaming:$true -NumberOfStreams 4 -SplitJobFilesBetweenDrives:$true
While we have manually set all of our tape libraries to be ACTIVE, this script would override that setting and set just Library1 as Active and then the other three will be Passive. We want to keep them all Active. Since the Active/Passive option is new in update4, we would like to know if there's a working cmdlet to set this.
Dima P.
Product Manager
Posts: 14726
Liked: 1706 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: 9.5 Update4 - New cmdlets?

Post by Dima P. »

notrootbeer,

Thanks for the clarification. I've noted the improvement request for the next version (or patch). We will also discuss your script issue with the tape team. Stay tuned.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests