PowerShell script exchange
Post Reply
Tobias_Elfstrom
Enthusiast
Posts: 84
Liked: 8 times
Joined: Jul 04, 2012 6:32 am
Full Name: Tobias Elfstrom
Contact:

Detailed job status ?

Post by Tobias_Elfstrom »

Is there a way to get job status in more detail with powershell?

If i do:

Code: Select all

Get-VBRJob -name Foo | $_.GetLastState()
I can get information about if the job is stopped or running (working) but how got i get information if a job is for example waiting on the repository or proxy or if its 50% done etc. That information is in the GUI but how would I go about to get it with powershell?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Detailed job status ?

Post by veremin » 1 person likes this post

Hi, Tobias, have you tried to drill to the session, using FindLastSession() parameter? Detailed information regarding session progress should be available there:

Code: Select all

$Job = Get-VBRJob -name "Name of your backup Job"
$Session = $Job.FindLastSession()
$Session.Progress
Thanks.
Tobias_Elfstrom
Enthusiast
Posts: 84
Liked: 8 times
Joined: Jul 04, 2012 6:32 am
Full Name: Tobias Elfstrom
Contact:

Re: Detailed job status ?

Post by Tobias_Elfstrom »

I had not but now I have. Thanks.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Detailed job status ?

Post by veremin »

Let me know if this is the information you're looking for, or you need something different. Thanks.
Pablo Roennebarth
Novice
Posts: 3
Liked: 1 time
Joined: Jan 20, 2015 8:27 am
Full Name: Pablo Roennebarth
Contact:

[MERGED] : Job Progress

Post by Pablo Roennebarth »

Hi.
I use a host monitoring program where i use a SQL query like

Code: Select all

SELECT[name],[latest_result] FROM [VeeamBackup].[dbo].[BJobs]
to get the job status.
Is there a way to get the percentage completed?
I don't care if it is a SQL query or a PowerShell command.
Thanks!
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Detailed job status ?

Post by veremin »

Hi, Pablo,

Kindly, take a look at the script provided above and see whether it's something you're looking for.

Thanks.
Pablo Roennebarth
Novice
Posts: 3
Liked: 1 time
Joined: Jan 20, 2015 8:27 am
Full Name: Pablo Roennebarth
Contact:

Re: Detailed job status ?

Post by Pablo Roennebarth » 1 person likes this post

Thank you, that is exactly the info I was looking for.
vmm
Service Provider
Posts: 15
Liked: never
Joined: Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov
Contact:

[MERGED] : Get a status and progress of backup job

Post by vmm »

Hi!

How can we and what can we use to get a status and progress of backup job using powershell and somehow parse it without a lot of information on the screen. Also for restore
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests