-
- Novice
- Posts: 6
- Liked: 1 time
- Joined: May 02, 2019 6:52 pm
- Contact:
Get-VBRJob doesnt see oVirt KVM Backup job types?
We have a few new test jobs setup for testing oVirt. I dont think we can see any of these jobs when trying to locate them using get-vbrjob. I can find the backup using get-vbrbackup
-
- Veeam Software
- Posts: 2573
- Liked: 603 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Get-VBRJob doesnt see oVirt KVM Backup job types?
Hi gillagorilla,
As best I can tell we don't have a supported means for retrieving these with Powershell yet, so hopefully we'll see them soon.
As an unsupported workaround, you can use the following .NET Reflection. Please note that such workarounds do not receive support and said workarounds may stop working from release to release.
It's not the cleanest but it should be pretty fast and you can use it for your reporting needs. But please note this is unsupported so I would only use it for reporting purposes and not try to manage the jobs/backups or try to use this to perform restores via Powershell while using the .NET reflection.
1 - Needed to hot-load DLLs so we can use .NET Reflection. Any cmdlet will work but you must run at least one normal Veeam cmdlet before using .NET Reflection
As best I can tell we don't have a supported means for retrieving these with Powershell yet, so hopefully we'll see them soon.
As an unsupported workaround, you can use the following .NET Reflection. Please note that such workarounds do not receive support and said workarounds may stop working from release to release.
Code: Select all
Get-VBRLicenseAutoUpdateStatus| Out-Null #See Note 1
[Veeam.Backup.Core.CBackupJob]::GetByType("14000") #Find oVirt jobs
[Veeam.Backup.Core.CBackup]::GetAll() | Where-Object {$_.JobId -eq "[b]insert job Id you got from previous command[/b]"}
1 - Needed to hot-load DLLs so we can use .NET Reflection. Any cmdlet will work but you must run at least one normal Veeam cmdlet before using .NET Reflection
David Domask | Product Management: Principal Analyst
-
- Novice
- Posts: 6
- Liked: 1 time
- Joined: May 02, 2019 6:52 pm
- Contact:
Re: Get-VBRJob doesnt see oVirt KVM Backup job types?
Hi, thanks for the reply and confirmation that it wasn't just something I was missing. Our use case is indeed to look at managing the job rather than reporting so we may just sit tight until an update comes out. In our scenario, it looks like new vms added to an olvm system dont automatically get added to the backup job so we were going to look to programmatically recreate the job.
Who is online
Users browsing this forum: No registered users and 9 guests