-
- Service Provider
- Posts: 2
- Liked: never
- Joined: Dec 05, 2019 10:12 am
- Full Name: Colm Simpson
- Contact:
Job NextRun is empty
HI there,
I am trying to get the NextRun for a job, I can see it in the GUI but powershell seems to return blank:
I was wondering if there was a way to get the next run time using powershell without having to calculate it from the schedule?
Many thanks
Colm
I am trying to get the NextRun for a job, I can see it in the GUI but powershell seems to return blank:
I was wondering if there was a way to get the next run time using powershell without having to calculate it from the schedule?
Many thanks
Colm
-
- Veeam Vanguard
- Posts: 282
- Liked: 113 times
- Joined: Apr 20, 2017 4:19 pm
- Full Name: Joe Houghes
- Location: Castle Rock, CO
- Contact:
Re: Job NextRun is empty
Check the 'StartDateTimeLocal' property.
This sample will give you the next run time, for all jobs with a schedule enabled:
Note, there may be inconsistencies if you are using period options (every 4 hours), as it will display the first run of the day without the periodic cycle.
This sample will give you the next run time, for all jobs with a schedule enabled:
Code: Select all
Get-VBRJob -WarningAction SilentlyContinue | Where-Object {$_.IsScheduleEnabled} | Select-Object Name, @{n='NextRunTime';e={$_.ScheduleOptions.StartDateTimeLocal}}
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
-
- Service Provider
- Posts: 2
- Liked: never
- Joined: Dec 05, 2019 10:12 am
- Full Name: Colm Simpson
- Contact:
Re: Job NextRun is empty
Hey Joe,
Thanks for the quick reply, It seems as though its getting the first time the Job was ran:
The top three follow the scheduled one and then each other so I'm not too worried about them but the last one seems to be referring to the first time the job was ran. This is set to run Daily-Everyday if that makes a difference?
Many thanks
Colm
Thanks for the quick reply, It seems as though its getting the first time the Job was ran:
The top three follow the scheduled one and then each other so I'm not too worried about them but the last one seems to be referring to the first time the job was ran. This is set to run Daily-Everyday if that makes a difference?
Many thanks
Colm
-
- Veeam Vanguard
- Posts: 282
- Liked: 113 times
- Joined: Apr 20, 2017 4:19 pm
- Full Name: Joe Houghes
- Location: Castle Rock, CO
- Contact:
Re: Job NextRun is empty
When you say follow, do you mean they are chained? If so, they would not have their own start time which gives your results.
As for the start time of the 4th job, I'm not sure why it is showing the original start time, as it should get updated for the next run time.
Here's a quick dump from one of my labs (the only job with periodic runs is titled 'AUSVCENTER-NoTag'):
As for the start time of the 4th job, I'm not sure why it is showing the original start time, as it should get updated for the next run time.
Here's a quick dump from one of my labs (the only job with periodic runs is titled 'AUSVCENTER-NoTag'):
Code: Select all
Get-VBRJob -WarningAction SilentlyContinue | Where-Object {$_.IsScheduleEnabled} | Select-Object Name, @{n='NextRunTime';e={$_.ScheduleOptions.StartDateTimeLocal}} | Sort-Object NextRunTime
Name NextRunTime
---- -----------
AUSVCENTER-NoTag 5/12/2020 04:05:00
DomainControllers 5/12/2020 12:25:00
AUSVCENTER-TagTest 5/12/2020 13:05:00
vCenterServers 5/12/2020 19:00:00
SOBRBackupTest 5/12/2020 22:00:00
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
-
- Enthusiast
- Posts: 33
- Liked: 1 time
- Joined: Jan 31, 2010 12:57 pm
- Contact:
Re: Job NextRun is empty
I have used ScheduleOptions.NextRun successfully for years, but after upgrading to Veeam 10 most of the jobs have this field empty... ScheduleOptions.StartDateTimeLocal does NOT give next scheduled run, just as OP describes...
This is a critical bug (lets hope it's a bug, an not a "feature" do deprecate this field without notice), and effectively prevent me from upgrading to Veeam 10.
This is a critical bug (lets hope it's a bug, an not a "feature" do deprecate this field without notice), and effectively prevent me from upgrading to Veeam 10.
-
- Enthusiast
- Posts: 33
- Liked: 1 time
- Joined: Jan 31, 2010 12:57 pm
- Contact:
Re: Job NextRun is empty
Besides - IsScheduleEnabled is always true in Veeam 10. What's going on?
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Job NextRun is empty
Yes, we are aware of NextRun bug. Should be fixed in one of the next product releases.
As for IsScheduleEnabled - there is the other property that renders this info correctly:
Thanks!
As for IsScheduleEnabled - there is the other property that renders this info correctly:
Code: Select all
$job = Get-VBRJob -Name 'BackupJob'
$job.Options.JobOptions.RunManually
-
- Enthusiast
- Posts: 33
- Liked: 1 time
- Joined: Jan 31, 2010 12:57 pm
- Contact:
Re: Job NextRun is empty
Thank you for the workaround oleg.feoktistov. But I have to say - this should not be happening. I see no reason whatsoever justifying abandoning IsScheduleEnabled without notice. I would expect such things for software developed and maintained by a single person worth $19.90 - not an enterprise product...
Sorry for the rant, it just feels like a worthless use of time rewriting scripts for 50+ customers because of this.
Sorry for the rant, it just feels like a worthless use of time rewriting scripts for 50+ customers because of this.
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Job NextRun is empty
Hi @bib_ak,
From which version you upgraded to v10?
I just tested it on v9.5 u4b (that's as old lab as I could get right away) and the problem is the same there.
Thanks!
Oleg
From which version you upgraded to v10?
Did you have IsScheduleEnabled updating normally in the version you upgraded your VBR from?Sorry for the rant, it just feels like a worthless use of time rewriting scripts for 50+ customers because of this.
I just tested it on v9.5 u4b (that's as old lab as I could get right away) and the problem is the same there.
Thanks!
Oleg
-
- Enthusiast
- Posts: 33
- Liked: 1 time
- Joined: Jan 31, 2010 12:57 pm
- Contact:
Re: Job NextRun is empty
Not sure - v9.5 <something>. Yes, IsScheduleEnabled was working just fine before the upgrade. But I have multiple installations of v9.5.4.2753 (I believe this is called 9.5 update 4a) where IsScheduleEnabled is working as expected.
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Job NextRun is empty
Hi @bib_ak,
I raised this question internally with QA and we agreed on investigating it as soon as v10a release rush settles down.
We will keep you posted.
Thanks,
Oleg
I raised this question internally with QA and we agreed on investigating it as soon as v10a release rush settles down.
We will keep you posted.
Thanks,
Oleg
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Job NextRun is empty
Hi @bib_ak,
Apologies for being off the radar for a while.
Discussed and tested with QA in both v 9.5 u4a and v10. Here is our conclusion, which is valid for both versions:
Nonetheless, it would be great if you could double check if you see the same behaviour across your VBR versions.
If something looks off, please, submit a case and let our support engineers handle that.
Thank you,
Oleg
Apologies for being off the radar for a while.
Discussed and tested with QA in both v 9.5 u4a and v10. Here is our conclusion, which is valid for both versions:
- IsScheduleEnabled - renders disabled/enabled state of a job. Works correctly on the corresponding actions.
- JobOptions.RunManually - shows if schedule is enabled. Also works correctly when ticking/unticking the corresponding checkbox in the UI.
Nonetheless, it would be great if you could double check if you see the same behaviour across your VBR versions.
If something looks off, please, submit a case and let our support engineers handle that.
Thank you,
Oleg
-
- Enthusiast
- Posts: 33
- Liked: 1 time
- Joined: Jan 31, 2010 12:57 pm
- Contact:
Re: Job NextRun is empty
What about the NextRun bug? Still not fixed?
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Job NextRun is empty
@bib_ak, fixed in v10a with the below:
Thanks!
Code: Select all
$job = Get-VBRJob -Name 'BackupJob'
$jobSchedule = Get-VBRJobScheduleOptions -Job $job
$jobSchedule.NextRun
-
- Enthusiast
- Posts: 33
- Liked: 1 time
- Joined: Jan 31, 2010 12:57 pm
- Contact:
Re: Job NextRun is empty
"10a" - do I need to upgrade from 10.0.0.4461, not working in this release... Can you please confirm this was fixed in 10.0.1.4854?
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Job NextRun is empty
Correct, fixed in 10.0.1.4854 (v10a) with the solution above. Thanks!
-
- Influencer
- Posts: 19
- Liked: never
- Joined: Jun 09, 2020 2:21 pm
- Full Name: Meelis Nigols
- Contact:
Re: Job NextRun is empty
What about older versions? 9.5 for example?
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Job NextRun is empty
Now I cannot tell for sure as I don't have a lab with 9.5 at my disposal, but as far as I remember, in 9.5 it was available with (Get-VBRJob).ScheduleOptions.NextRun
Thanks!
Thanks!
-
- Enthusiast
- Posts: 33
- Liked: 1 time
- Joined: Jan 31, 2010 12:57 pm
- Contact:
-
- Lurker
- Posts: 2
- Liked: 1 time
- Joined: Nov 04, 2020 1:13 pm
- Contact:
Job NextRun is empty
Hi,
I have an issue since I upgraded Veeam from 9 to 10.
I have a PowerShell script that generate me a report for the last week backups. In this report, I have for each backup jobs a NextRun date and time.
But since I upgraded to version 10, the script tell me the job is not scheduled. After analysis, the property NextRun is empty, but in the Veeam console I am able to see the next run date and time.
I use the Get-VBRJob to get information about job. And after $job.ScheduleOptions.NextRun to get the date.
Is somebody already had this issue? How do you fixed it?
Thank you
I have an issue since I upgraded Veeam from 9 to 10.
I have a PowerShell script that generate me a report for the last week backups. In this report, I have for each backup jobs a NextRun date and time.
But since I upgraded to version 10, the script tell me the job is not scheduled. After analysis, the property NextRun is empty, but in the Veeam console I am able to see the next run date and time.
I use the Get-VBRJob to get information about job. And after $job.ScheduleOptions.NextRun to get the date.
Is somebody already had this issue? How do you fixed it?
Thank you
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Job NextRun is empty
Hi @PalalHotline,
Merged your post with the existing thread.
Please, check the answers above.
Thanks,
Oleg
Merged your post with the existing thread.
Please, check the answers above.
Thanks,
Oleg
-
- Lurker
- Posts: 2
- Liked: 1 time
- Joined: Nov 04, 2020 1:13 pm
- Contact:
Re: Job NextRun is empty
Hi @oleg.feokistov,
Thank you.
I fixed my issue with upgrade to 10a and follow your code.
Thanks again.
Regards
Thank you.
I fixed my issue with upgrade to 10a and follow your code.
Thanks again.
Regards
Who is online
Users browsing this forum: No registered users and 11 guests