PowerShell script exchange
Post Reply
jasonede
Service Provider
Posts: 58
Liked: 10 times
Joined: Jan 04, 2018 4:51 pm
Contact:

Has Get-VBRJobScheduleOptions been deprecated? Not updating

Post by jasonede »

Last week we upgraded to version 10 of VBR. This week I noticed that via our monitoring scripts it was reporting that all our jobs hadn't been running even though they have been running fine.

Looked at the output from the scripts and I had been pulling the LatestRunLocal field out from Get-VBRJobScheduleOptions -Job "Job Name", but this value has not updated since the upgrade.

On Get-VBRJob though I can see all of the options that I had pulled out of Get-VBRJobScheduleOptions and so I've just used LatestRunLocal from there. So my question is has Get-VBRJobScheduleOptions been deprecated or retired? If not should those values be updating still in both places?

MaxKozlov
Influencer
Posts: 19
Liked: 5 times
Joined: Oct 26, 2017 12:52 pm
Full Name: Max Kozlov
Contact:

Re: Has Get-VBRJobScheduleOptions been deprecated? Not updating

Post by MaxKozlov »

seems LatestRunLocal updated only on copy jobs
I use .FindLastSession().EndTime

oleg.feoktistov
Veeam Software
Posts: 445
Liked: 137 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Has Get-VBRJobScheduleOptions been deprecated? Not updating

Post by oleg.feoktistov » 2 people like this post

So my question is has Get-VBRJobScheduleOptions been deprecated or retired? If not should those values be updating still in both places?
Fair point. It's not deprecated at all. It's just that values for LatestRun property in these objects are parsed from different places.
We are aware of this bug and planning to fix it in the next product release.
Meanwhile, use the workaround Max advised.
Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests