Hello and thanks in advance!
Im hitting a strange issue with vRanger 6.0.1 and 6.0.2 trying to run Get-InventoryEntity.
I'm trying to extract all the active backup job VM names to combine with a script to clean out our repo's. Im working through piece by piece to understand vRanger's structure and data model. I'm trying to follow https://support.quest.com/SolutionDetail.aspx?id=SOL102603 to get the VM names, but everytime I run this line (with a foreach loop passing the uuid in):
get-inventoryentity -type virtualmachine | where {$_.UUID -eq "**UUID HERE**"} | ForEach-Object {write $_.Name}
I get this error:
Get-InventoryEntity : The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:GetInventoryEntitiesByTypeResult. The Inne
rException message was 'Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota. '. Please see InnerExceptio
n for more details.
At line:1 char:20
+ Get-InventoryEntity <<<< -type VirtualMachine | where {$_.UUID -eq "**UUID**"} | ForEach-Object {write $_.Name}
+ CategoryInfo : InvalidOperation: (vRanger.API.Pow...ventoryEntities:GetInventoryEntities) [Get-InventoryEntity], NetDispatcherFaultException
+ FullyQualifiedErrorId : 1,vRanger.API.PowerShell.InventoryShell.GetInventoryEntities
I get this just running get-inventoryentity as well.
Anyone seen this before? workarounds?