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

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.


Product Manager
Posts: 17145
Liked: 1485 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: List Proxy wait time for a job

Post by veremin » 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}

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests