Get-VBRRestoreSession more info

PowerShell script exchange

Get-VBRRestoreSession more info

Veeam Logoby efd121 » Thu Jan 19, 2017 2:50 am

I'm running a large DR restore test to determine how quickly I can recover all my VM's and I'm using Get-VBRRestoreSession to collect the start time, end time and other various information for each restore. I can get the size of the VM from vCenter but this is the full size of the VM and doesnt include the free space which throws off my restore speed calculations. I can see the information I need from the history log that shows the true space restored vs the size of each disk.

Is there a way in PS to get this information?
Dave
efd121
Enthusiast
 
Posts: 25
Liked: never
Joined: Fri Aug 07, 2015 8:45 pm
Full Name: David Engler

Re: Get-VBRRestoreSession more info

Veeam Logoby tdewin » Thu Jan 19, 2017 9:41 am

You can get the logs statements from the logger. Notice that this is an unsupported way of getting it (in other words, subject to change)
Code: Select all
$session = Get-VBRRestoreSession
$logs = $session.logger.GetLog().GetRecordsSortedByOrdinalId()
foreach ($log in $logs) { write-host $log.Title }
tdewin
Veeam Software
 
Posts: 1043
Liked: 361 times
Joined: Fri Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin

Re: Get-VBRRestoreSession more info

Veeam Logoby efd121 » Thu Jan 19, 2017 12:05 pm

Thanks for the information, i would prefer a supported option but this will work for me at this time.
Dave
efd121
Enthusiast
 
Posts: 25
Liked: never
Joined: Fri Aug 07, 2015 8:45 pm
Full Name: David Engler


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests