PowerShell script exchange
Post Reply
efd121
Enthusiast
Posts: 67
Liked: 6 times
Joined: Aug 07, 2015 8:45 pm
Full Name: David Engler
Contact:

Get-VBRRestoreSession more info

Post by efd121 »

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
tdewin
Veeam Software
Posts: 1818
Liked: 655 times
Joined: Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin
Contact:

Re: Get-VBRRestoreSession more info

Post by tdewin »

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 }
efd121
Enthusiast
Posts: 67
Liked: 6 times
Joined: Aug 07, 2015 8:45 pm
Full Name: David Engler
Contact:

Re: Get-VBRRestoreSession more info

Post by efd121 »

Thanks for the information, i would prefer a supported option but this will work for me at this time.
Dave
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests