Feature request - LatestStatus not Null if Job is created

PowerShell script exchange

Feature request - LatestStatus not Null if Job is created

Veeam Logoby Andreas Neufert » Wed Oct 31, 2012 7:54 am

Hi Veeam Dev Team,

on behalf of a customer, I would love to ask you for a small enhancement.


Normally you can monitor if a Job (Backup/Replication) runs by .Info.LatestStatus .
If the Job runs actually this Status is Null.

But if you create a new Job (backup/replication) this status is also Null.

So if you try to build a script that Monitors if Job runs actually and then start the Job only if .Info.LatestStatus is Null the fresh created Job will never run.

A) Are there any readable Information that can be used to Monitor if a Job didnĀ“t run for the first time?
B) If not can you please add .Info.LatestStatus = "Never started" or something similar to .Info.LatestStatus

CU Andy
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Feature request - LatestStatus not Null if Job is create

Veeam Logoby Vitaliy S. » Wed Oct 31, 2012 11:58 am

Hi Andy,

Not sure how useful it will be for you, but you can use Veeam ONE v6.5 to check current job status (running/failed/warning/never triggered).

Thanks!
Vitaliy S.
Veeam Software
 
Posts: 19546
Liked: 1100 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Feature request - LatestStatus not Null if Job is create

Veeam Logoby Andreas Neufert » Wed Oct 31, 2012 12:28 pm

Hi Vitaliy,

I think still now there is no powershell Integration for ONE. Am I right?
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Feature request - LatestStatus not Null if Job is create

Veeam Logoby pizzim13 » Wed Oct 31, 2012 2:45 pm

Have you tried (get-vbrjob -name X).FindLastSession()? New jobs return null but jobs that have run or are running return a Veeam.Backup.Core.CBackupSession object.
pizzim13
Enthusiast
 
Posts: 86
Liked: 6 times
Joined: Thu Apr 21, 2011 7:37 pm

Re: Feature request - LatestStatus not Null if Job is create

Veeam Logoby Andreas Neufert » Wed Oct 31, 2012 2:49 pm

Thank you... good idea... will try that. :D
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Feature request - LatestStatus not Null if Job is create

Veeam Logoby Vitaliy S. » Wed Oct 31, 2012 2:56 pm

Andreas Neufert wrote:I think still now there is no powershell Integration for ONE. Am I right?

Correct.
Vitaliy S.
Veeam Software
 
Posts: 19546
Liked: 1100 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests