PowerShell script exchange
Tobias_Elfstrom
Enthusiast
Posts: 84 Liked: 8 times
Joined: Jul 04, 2012 6:32 am
Full Name: Tobias Elfstrom
Contact:
Post
by Tobias_Elfstrom » Mar 17, 2014 2:33 pm
this post
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: 20400 Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » 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.
Tobias_Elfstrom
Enthusiast
Posts: 84 Liked: 8 times
Joined: Jul 04, 2012 6:32 am
Full Name: Tobias Elfstrom
Contact:
Post
by Tobias_Elfstrom » Mar 17, 2014 3:06 pm
this post
I had not but now I have. Thanks.
veremin
Product Manager
Posts: 20400 Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » Mar 17, 2014 3:08 pm
this post
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:
Post
by Pablo Roennebarth » Jan 20, 2015 8:58 am
this post
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: 20400 Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » Jan 20, 2015 9:10 am
this post
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:
Post
by Pablo Roennebarth » Jan 20, 2015 1:09 pm
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:
Post
by vmm » Nov 30, 2015 5:04 pm
this post
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
Users browsing this forum: Google [Bot] and 14 guests