PowerShell script exchange
Post Reply
andyg
Enthusiast
Posts: 58
Liked: 5 times
Joined: Apr 23, 2014 9:51 am
Full Name: Andy Goldschmidt
Contact:

Request - PS to extract "merge time" from job

Post by andyg »

We are seeing high merge time due to using Forever Forward and I want to view it for a job over a few weeks.

Is there an easy way to view how long the merge time is for a specific job over time?

Does merge time show per VM in a job if you are using per-vm backup files on the repo?
-= VMCE v9 certified =-
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Request - PS to extract "merge time" from job

Post by veremin » 1 person likes this post

If I'm not mistaken, it should be reflected in Backup Session entity. You can query its GetLog() method and get bunch of string entities. Then, you should filter them out to get the one related to merge process.

The code should look similar to the following one:

Code: Select all

$LastSession = (Get-VBRJob -Name "Backup Job 1").FindLastSession()
$LastSession.Logger.GetLog().UpdatedRecords | where {$_.Title -eq "*Merg"} | select Title, StartTime, UpdateTime, Status
Otherwise, parse actual log file and get information directly from it.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests