PowerShell script exchange
Post Reply
stevewithington
Novice
Posts: 3
Liked: 1 time
Joined: Sep 19, 2017 7:58 am
Full Name: Steve Withington
Contact:

SOBR Azure Offload Status With Powershell

Post by stevewithington »

Hi all

Does anyone know if it's possible to view the last SOBR Azure Offload status with PowerShell in version 9.5? The capacity tier offload isn't a standard job and the status is only available in system history.

Many thanks in advance
oleg.feoktistov
Veeam Software
Posts: 1912
Liked: 635 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: SOBR Azure Offload Status With Powershell

Post by oleg.feoktistov » 2 people like this post

Hi Steve,

Currently there is no supported way to do that.
However, you may have a try calling .NET types directly in the following way:

Code: Select all

$sobrOffload = [Veeam.Backup.Model.EDbJobType]::ArchiveBackup #This type corresponds to SOBR Offload job
$job = [Veeam.Backup.Core.CBackupSession]::FindLastByJobType($sobrOffload)
I'm not sure if this method works for 9.5 though. Don't have previous version at my disposal to test it.

Best regards,
Oleg
stevewithington
Novice
Posts: 3
Liked: 1 time
Joined: Sep 19, 2017 7:58 am
Full Name: Steve Withington
Contact:

Re: SOBR Azure Offload Status With Powershell

Post by stevewithington »

That works perfectly, thank you Oleg :)
dave_lub
Novice
Posts: 9
Liked: never
Joined: Jun 14, 2012 10:36 am
Contact:

Re: SOBR Azure Offload Status With Powershell

Post by dave_lub »

any way to get all sobr tiering sessions from the last 24hours?
stevewithington
Novice
Posts: 3
Liked: 1 time
Joined: Sep 19, 2017 7:58 am
Full Name: Steve Withington
Contact:

Re: SOBR Azure Offload Status With Powershell

Post by stevewithington » 1 person likes this post

Hi

Try the following

Code: Select all

$sobrOffload = [Veeam.Backup.Model.EDbJobType]::ArchiveBackup #This type corresponds to SOBR Offload job
$jobs = [Veeam.Backup.Core.CBackupSession]::GetByTypeAndTimeInterval($sobrOffload,(Get-Date).adddays(-1), (Get-Date).adddays(1)) 
write $jobs
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests