Hello forum
I am trying to export a list (or rather a json) of our jobs with their corresponding vms and their individual vss options.
We are using tags from our vmware vi to assign vms to the backup jobs. In the job, under "AA Processing Options" we've set different settings for different machines.
I tried a few things along the way. For example, to first get the tag using Get-VbrJobObject and then getting the machines with Get-VbrViObject, but i sadly hit a wall finding out, how to get the corresponding job options for the vm, since Get-VbrJobObjectVssOptions doesnt work with that specific input. I'm not sure where to continue. Maybe i am mixing things up, im not sure.
I'd be glad for any input.
BR
Marcel
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Jul 26, 2022 2:30 pm
- Full Name: marcel schubert
- Contact:
-
- Veeam Software
- Posts: 2245
- Liked: 544 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Tag Driven Jobs Query Individual VSS Options
Hi @schubi,
Not mixing things up, this is a tricky one.
In your output for Get-VBRJobObjects, you should see something like this (excuse me if the formatting breaks...):
VssChild and GuestCredsChild are the custom VSS settings and the custom VSS credentials respectively, while Include is anything added to be backed up (in my case, it's a ResourcePool but in your case it will be tags).
So you'll need to filter the output of Get-VBRJobObject | Where-Object {$_.Type -eq VssChild} (you of course can add an -or and include GuestCredentials also)
Unfortunately there's not a way to expand a hierarchy object or container like Tags from the Get-VBRJobObject, but you can use Find-VBRViEntity or even just PowerCLI and find all machines associated with the relevant tag, and then do name matching on the VssChild objects returned by Get-VBRJobObject.
The CObjectInJob objects returned by Get-VBRJobObject have an Info property which has the further details you want on the VSS settings.
Let me know if this helps!
Not mixing things up, this is a tricky one.
In your output for Get-VBRJobObjects, you should see something like this (excuse me if the formatting breaks...):
Code: Select all
PS C:\Users\Administrator> Get-VBRJobObject -Job $job
Name Type ApproxSize Location
---- ---- ---------- --------
ex2013dc... GuestCr... 0 B somevc01
_Shared Resources Include 2.7 TB somevc01
ex2013dc... VssChild 0 B somevc01
So you'll need to filter the output of Get-VBRJobObject | Where-Object {$_.Type -eq VssChild} (you of course can add an -or and include GuestCredentials also)
Unfortunately there's not a way to expand a hierarchy object or container like Tags from the Get-VBRJobObject, but you can use Find-VBRViEntity or even just PowerCLI and find all machines associated with the relevant tag, and then do name matching on the VssChild objects returned by Get-VBRJobObject.
The CObjectInJob objects returned by Get-VBRJobObject have an Info property which has the further details you want on the VSS settings.
Let me know if this helps!
David Domask | Product Management: Principal Analyst
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Jul 26, 2022 2:30 pm
- Full Name: marcel schubert
- Contact:
Re: Tag Driven Jobs Query Individual VSS Options
Hello david.domask
That will do the trick. Thank you so much and have a great day.
br
Marcel
That will do the trick. Thank you so much and have a great day.
br
Marcel
-
- Veeam Software
- Posts: 2245
- Liked: 544 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Tag Driven Jobs Query Individual VSS Options
Glad to hear it'll work!
Always welcome, good luck!
Always welcome, good luck!
David Domask | Product Management: Principal Analyst
Who is online
Users browsing this forum: No registered users and 8 guests