Monthly report of tenants disk usage and protected VMs

PowerShell script exchange

Monthly report of tenants disk usage and protected VMs

Veeam Logoby raiciks » Tue May 09, 2017 10:31 am 1 person likes this post

Hello!
We are service providers and the end of every month we need to calculate disk space usage and protected VMs for each tenant.
In tenant each backup job name I added prefix - customer company name, for example, CustomerABC_FileServer, CustomerABC_Exchange, CustomerDEF_MSSQL, CustomerDEF_DNS etc.

In Veeam forum I fond following PowerShell Script:
asnp VeeamPSSnapin Get-VBRBackup | Select @{N="Job Name";E={$_.Name}}, @{N="Size (GB)";E={[math]::Round(($_.GetAllStorages().Stats.BackupSize | Measure-Object -Sum).Sum/1GB,1)}} | Format-Table -AutoSiz | Out-File E:\Scripts\report.txt

Can you please help me with powershell script which can calculate total disksapce usage and total protected VMs for each tenant?
Report example which we need:

Job Name Size (GB) Server
-------- --------- --------
CustomerABC_FileServer 200 1
CustomerABC_Exchange 400 1
--------------------------------------------------------------------
600 2

CustomerDEF_MSSQL 100 1
CustomerDEF_DNS 20 1
-------------------------------------------------------------------
120 2
raiciks
Novice
 
Posts: 7
Liked: 2 times
Joined: Sun Nov 16, 2014 3:11 pm

Re: Monthly report of tenants disk usage and protected VMs

Veeam Logoby raiciks » Tue May 09, 2017 10:36 am 1 person likes this post

Also, I would be very happy if there were such scripts for CloudConnect...

Thnak you!
raiciks
Novice
 
Posts: 7
Liked: 2 times
Joined: Sun Nov 16, 2014 3:11 pm


Return to PowerShell



Who is online

Users browsing this forum: Bing [Bot] and 4 guests