PowerShell script exchange
Post Reply
Andreas Neufert
VP, Product Management
Posts: 7077
Liked: 1510 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Feature request - LatestStatus not Null if Job is created

Post by Andreas Neufert »

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
Vitaliy S.
VP, Product Management
Posts: 27371
Liked: 2799 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

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

Post by Vitaliy S. »

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!
Andreas Neufert
VP, Product Management
Posts: 7077
Liked: 1510 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

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

Post by Andreas Neufert »

Hi Vitaliy,

I think still now there is no powershell Integration for ONE. Am I right?
pizzim13
Enthusiast
Posts: 94
Liked: 6 times
Joined: Apr 21, 2011 7:37 pm
Contact:

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

Post by pizzim13 »

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.
Andreas Neufert
VP, Product Management
Posts: 7077
Liked: 1510 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

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

Post by Andreas Neufert »

Thank you... good idea... will try that. :D
Vitaliy S.
VP, Product Management
Posts: 27371
Liked: 2799 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

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

Post by Vitaliy S. »

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

Who is online

Users browsing this forum: No registered users and 17 guests