VMware Cloud Community
fc989
Contributor
Contributor

How to create a TraversalSpec object based on Custom Group

Hi,

I am trying to generate a report from PowerShell.  To do this, I need to create a TraversalSpec object.  When I downloaded the TraversalSpecs via: $vrops.ExtensionData.GetTraversalSpecs().TraversalSpec, I can see custom groups but how do I specify the actual group I want. 

Name : Custom Groups
Description : Enables view of custom groups and resources under them
RootAdapterKindKey : ?
RootResourceKindKey : ?
Any :
AdapterInstanceAssociation : False
AnyAttr :

Here's what I have so far:

$vrops = Connect-OMServer vrops.mcis.washington.edu -user user1 -password xxxxx$report = $vrops.ExtensionData.GetReportDefinitions($null, $null, "_test_Datastores").ReportDefinition

$vrops.ExtensionData.GetTraversalSpecs().TraversalSpec

thanks in advance,

 

Reply
0 Kudos
5 Replies
scott28tt
VMware Employee
VMware Employee

@fc989 

Moderator: Rather than sitting in a generic {code} area I suspect this thread would be better placed in this vROps area: https://communities.vmware.com/t5/vRealize-Operations-Manager/bd-p/13003

But then you are better placed to understand the technology and what you’re trying to do.

Should I move the thread or leave it here?

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
fc989
Contributor
Contributor

Please move it.  I apologize for the misplacement.

thanks,

-fc

 

Reply
0 Kudos
scott28tt
VMware Employee
VMware Employee

@fc989 

Not sure it is a misplacement, but the right sorts of eyes are more likely to see it in the vROps area.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
scott28tt
VMware Employee
VMware Employee

@fc989 

Moderator: Moved to vROps Discussions


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
KabirAli82
Expert
Expert

Hi,

This link should help you out:

https://ryanjan.uk/2018/05/16/running-vrops-reports-using-powercli/

 


Was I helpful? Give a kudo for appreciation!
Braindumping @ http://kablog.nl/
Tweeting @ https://twitter.com/_Kabir_Ali_
Reply
0 Kudos