Detailed job status ?

PowerShell script exchange

Detailed job status ?

Veeam Logoby Tobias_Elfstrom » Mon Mar 17, 2014 2:33 pm

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?
Tobias_Elfstrom
Enthusiast
 
Posts: 84
Liked: 8 times
Joined: Wed Jul 04, 2012 6:32 am
Full Name: Tobias Elfstrom

Re: Detailed job status ?

Veeam Logoby v.Eremin » Mon Mar 17, 2014 3:02 pm 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Detailed job status ?

Veeam Logoby Tobias_Elfstrom » Mon Mar 17, 2014 3:06 pm

I had not but now I have. Thanks.
Tobias_Elfstrom
Enthusiast
 
Posts: 84
Liked: 8 times
Joined: Wed Jul 04, 2012 6:32 am
Full Name: Tobias Elfstrom

Re: Detailed job status ?

Veeam Logoby v.Eremin » Mon Mar 17, 2014 3:08 pm

Let me know if this is the information you're looking for, or you need something different. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] : Job Progress

Veeam Logoby Pablo Roennebarth » Tue Jan 20, 2015 8:58 am

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!
Pablo Roennebarth
Novice
 
Posts: 3
Liked: 1 time
Joined: Tue Jan 20, 2015 8:27 am
Full Name: Pablo Roennebarth

Re: Detailed job status ?

Veeam Logoby v.Eremin » Tue Jan 20, 2015 9:10 am

Hi, Pablo,

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

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Detailed job status ?

Veeam Logoby Pablo Roennebarth » Tue Jan 20, 2015 1:09 pm 1 person likes this post

Thank you, that is exactly the info I was looking for.
Pablo Roennebarth
Novice
 
Posts: 3
Liked: 1 time
Joined: Tue Jan 20, 2015 8:27 am
Full Name: Pablo Roennebarth

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

Veeam Logoby vmm » Mon Nov 30, 2015 5:04 pm

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
vmm
Service Provider
 
Posts: 15
Liked: never
Joined: Mon Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests