PowerShell script exchange
Post Reply
StevenMeier
Enthusiast
Posts: 91
Liked: 32 times
Joined: Apr 22, 2016 1:06 am
Full Name: Steven Meier
Contact:

Powershell for SOBR's

Post by StevenMeier »

In Version 13 of B&R and the new Powershell updates.
I cannot find a way to grab via powershell the usage of Disk Space in Performance and capacity and Archive Tiers of the SOBR. (capacity and Archive Tiers are at AWS)

I just want to be able to grab the details. Thats it.

Any Help or re direct to a post or someone that has done that would be great
david.domask
Product Manager
Posts: 3732
Liked: 909 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Powershell for SOBR's

Post by david.domask »

Hi StevenMaier,

Unfortunately we need to use unsupported methods for this; the following works on v13, but unsupported methods change between releases, so if you're on earlier version, review this topic, I believe these still work (I don't have a v12 server with SOBR handy to test on at the moment)

Please note that unsupported methods are just that, unsupported, and these may break from release to release; ask on the forums if it stops working, but ultimately be prepared that these methods do not receive official support and may not work in future versions. (It's noted on the need for accurate reporting in PowerShell for this)

Code: Select all

$sobr = Get-VBRBackupRepository -Scaleout -Name "Name of your Scale-out Backup Repository"
$arcExt = $sobr.ArchiveExtent
$capExt = $sobt.CapacityExtent
$perfExt = $sobr.Extent #Will most likely be an array as usually there are multiple performance tier extents
[Veeam.Backup.Core.CArchiveRepository]::GetTotalUsedSize($arcExt.id) #Get used space on Archive Extent
[Veeam.Backup.Core.CArchiveRepository]::GetTotalUsedSize($capExt.id) #Get used space on Capacity Extent
[Veeam.Backup.Core.CBackupRepository]::Find($perfExt.id).GetContainer().Info
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 56 guests