PowerShell script exchange
Post Reply
jcolonfzenpr
Veeam Vanguard
Posts: 44
Liked: 31 times
Joined: Dec 30, 2021 1:16 am
Full Name: Jonathan Colon
Location: Puerto Rico
Contact:

VCC Replica Resource Tenant utilization

Post by jcolonfzenpr »

Good day | Buenos días | bom Dia :D

I have been working on adding support for Veeam Cloud Connect into the AsbuiltReport.Veeam.VBR report.

This is the report I have so far
https://github.com/rebelinux/IMG/raw/ma ... Report.pdf

Currently I would like to report hardware resource utilization specifically in the Replica Resources area.

Image

Is there any way to extract this information with powershell?

Any help would be appreciated.

Kind regards,
Jonathan Colon
https://techmyth.blog/
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: VCC Replica Resource Tenant utilization

Post by oleg.feoktistov »

Hi Jonathan,

You can get it with Get-VBRCloudTenant cmdlet. Example with one hardware plan with single datastore assigned to a tenant:

Code: Select all

$tenant = Get-VBRCloudTenant
$planOptions = $tenant.ReplicationResources.HardwarePlanOptions
$tenant | select Name, @{n='CPU Usage';e={$planOptions.UsedCPU}}, `
@{n='Memory Usage';e={$planOptions.UsedMemory}}, `
@{n='Storage Usage';e={$planOptions.DatastoreQuota.UsedSpace}}, Description
Best regards,
Oleg
jcolonfzenpr
Veeam Vanguard
Posts: 44
Liked: 31 times
Joined: Dec 30, 2021 1:16 am
Full Name: Jonathan Colon
Location: Puerto Rico
Contact:

Re: VCC Replica Resource Tenant utilization

Post by jcolonfzenpr »

Thanks for the quick response,

Another question:

What is the value type of the UsedCPU and UsedMemory properties? The documentation indicates "int" as the value type, but it is not clear.

UsedCPU is in MHz or in Percent?
UsedMemory is in Byte, MB, GB or Percent?

https://helpcenter.veeam.com/docs/backu ... ml?ver=110

Best regards,
Jonathan Colon
https://techmyth.blog/
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: VCC Replica Resource Tenant utilization

Post by oleg.feoktistov »

Source code for VBRCloudTenantHwPlanOptions class suggests that UsedCPU is a CPU count and UsedMemory is in MB. I asked our technical writers team to add this info to the guide you mentioned. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests