PowerShell script exchange
Post Reply
Balaji Desikachari
Novice
Posts: 3
Liked: never
Joined: Jun 14, 2014 5:09 pm
Full Name: Balaji Desikachari
Contact:

List Proxy wait time for a job

Post by Balaji Desikachari » Jun 20, 2014 1:01 am

Is there a way to get all the VMs from the jobs which wait for backup infrastructure availability and its duration of wait?
There are many replication jobs and many VMs in a job and I would need to analyze the wait time of all the VMs for backup infrastructure (proxy) availability.

Any help is much appriciated.

Thanks!

v.eremin
Product Manager
Posts: 16202
Liked: 1323 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: List Proxy wait time for a job

Post by v.eremin » Jun 20, 2014 9:39 am

You can get the VM pending session and the time the session has been queued via the following commandlet:

Code: Select all

$Job = Get-VBRJob -Name "Name of backup job"
$LastSession = $Job.FindLastSession()
$LastSession.GetTaskSessions() | where {$_.status -eq "Pending"} |Select name, {$_.Info.QueuedTime}
Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests