PowerShell script exchange
Post Reply
sotea-np
Novice
Posts: 5
Liked: never
Joined: Jun 21, 2022 11:12 am
Full Name: Nicki
Contact:

Generate-VBRLicenseUsageReport without VMs

Post by sotea-np »

I couldnt find it in the documentation. Is it possible to run Generate-VBRLicenseUsageReport without the Virtual Machines list?
Or are some other command better suited?
I just want to send the summary (VM count, multiplier and points) to an email
david.domask
Veeam Software
Posts: 2786
Liked: 637 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Generate-VBRLicenseUsageReport without VMs

Post by david.domask » 1 person likes this post

Hi Nicki,

To confirm, you just want the raw counts without the machine names, correct?

Try outputting it as JSON with the -Type parameter, and parse out the values you want to report on. Some quick sample code and one of the outputs:

Code: Select all

PS C:\Users\david.LAB> Generate-VBRLicenseUsageReport -Path C:\temp\report -Type JSON
PS C:\Users\david.LAB> $data = Get-Content C:\temp\report.json | ConvertFrom-Json
PS C:\Users\david.LAB> $data.products.data.instances.Counters


counterType            : VBR-VBR-APPLICATION-PLUGIN
multiplier             : 11
instancesInGrace       : 0
numberOfObjects        : 4
numberOfNewObjects     : 0
numberOfRentalObjects  : 0
numberOfRemovedObjects : 0
consumedInstances      : 44
newInstances           : 0
rentalInstances        : 0
removedInstances       : 0
reasonForRemoval       :
From there you can write the data to a fairly simple HTML page or just plain text in an email.
David Domask | Product Management: Principal Analyst
sotea-np
Novice
Posts: 5
Liked: never
Joined: Jun 21, 2022 11:12 am
Full Name: Nicki
Contact:

Re: Generate-VBRLicenseUsageReport without VMs

Post by sotea-np »

Thank you very much, this was what I needed. Now I could output it to a readable table.
david.domask
Veeam Software
Posts: 2786
Liked: 637 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Generate-VBRLicenseUsageReport without VMs

Post by david.domask »

Glad to assist and glad it works :) Always welcome and good luck scripting.
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests