PowerShell script exchange
Post Reply
apackard
Novice
Posts: 3
Liked: never
Joined: Mar 11, 2022 2:24 pm
Full Name: Almon Packard
Contact:

How to Get Max Concurrent Tasks from Object Storage Repository

Post by apackard »

The Object Storage Repository is different than other repositories and requires different PowerShell commands.

Get-VBRObjectStorageRepository is the PowerShell command for this type of repository that provides good information, but it does not provide the value for Limit Concurrent Tasks that is available in the GUI shown below.

I used [Veeam.Backup.Core.CBackupRepository] to get the used capacity for this type of repository. Can this be used to get the max concurrent tasks?

Image
david.domask
Veeam Software
Posts: 2123
Liked: 513 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: How to Get Max Concurrent Tasks from Object Storage Repository

Post by david.domask »

It doesn't look like there's a supported way (though Oleg can correct me if I'm wrong), but you can use this unsupported method below. Note that this may change in future releases, and no support is offered for using this method:

Code: Select all

[Veeam.Backup.Core.CArchiveRepository]::Get(uniqueidentifier repositoryID)
Example:

Code: Select all

$ObjStgRepo = Get-VBRObjectStorageRepository -Name 'some repo'
$ObjStgRepoStats = [Veeam.Backup.Core.CArchiveRepository]::Get($repo.id)
$ObjStgRepoStats.Options
Example output:

Code: Select all

PS C:\Users\Administrator> [Veeam.Backup.Core.CArchiveRepository]::Get($stuff[0].id).Options


ServicePoint         : https://s3.the-moon.someprovider.com
BucketName           : vbackup
RegionId             : the-moon
FolderName           : David_success
CertificateId        : 2afe7ac2-7396-4f7c-8cf2-2946f5bdf176
VersioningEnabled    : False
UrlStyle             : PathStyle, VirtualHostedStyle
ServiceType          : Generic
IsSmartObjectStorage : False
MaxTasksCount        : -1
David Domask | Product Management: Principal Analyst
apackard
Novice
Posts: 3
Liked: never
Joined: Mar 11, 2022 2:24 pm
Full Name: Almon Packard
Contact:

Re: How to Get Max Concurrent Tasks from Object Storage Repository

Post by apackard »

David, that's an excellent response, thank you. I appreciate the help.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to Get Max Concurrent Tasks from Object Storage Repository

Post by oleg.feoktistov » 1 person likes this post

Hi guys,

It is, indeed, not supported yet as of v11a. So, the only way to get tasks count is the one David showed.
Good news though - in v12 we are planning to add MaxTaskCount property to VBRObjectStorageRepository class.

Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 6 guests