Re: ASSOCIATORS OF queries in CMPI

Thomas Stover <[email protected]> Fri, 21 Feb 2014 10:03:36 -0600
Newsgroups gmane.network.open-pegasus.general
Message-ID <[email protected]>
On Fri, 21 Feb 2014 08:49:15 -0600
Jim Marshall wrote:

 
> As someone else stated execquery support is dependent on the
> particular provider (e.g. the PG_RegisteredProfile provider). That
> being said there is a completely standard way to get the data you
> want from any server that supports generic operations (DSP0223). For
> example you could call the associatiors function providing a list of
> properties to return and even filter down what kind of instance data
> you want back
> 
> wbemop PG_RegisteredProfile.InstanceID="SNIA+Server+1.1.0" ai -pl
> a,b,c -rc CIM_ComputerSystem
> 
> Sorry to use our tool as an example, but I am not familar enough with
> the Pegasus cimcli. Essentially the above will ask the local server
> to return all instances of CIM_ComputerSystem (the result class) with
> only properties a, b & c that are associated to the specified
> PG_RegisteredProfile instance.
> 

Yes that does help. 

-- 
C. Thomas Stover
Sr. Software Engineer
Alert Logic, Inc.