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 »

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!
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: List Proxy wait time for a job

Post by veremin »

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 10 guests