Re: ASSOCIATORS OF queries in CMPI
Jim Marshall <[email protected]> Fri, 21 Feb 2014 09:49:15 -0500
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Organization | WBEM Solutions, Inc. |
| Message-ID | <[email protected]> |
C. Thomas Stover wrote: > > Thanks for responding. I think I understand how to make something like > that work (enumerate associations and enumerate references that is), but > is there such a thing outside of microsoft as something like > > cimcli xq 'ASSOCIATORS OF PG_RegisteredProfile.InstanceID="SNIA+Server > +1.1.0"' > > or more mysterious and relevent to my search are the talks of things like: > > SELECT a, b, c FROM ASSOCIATORS OF Class.Instance "ASSOCIATORS OF' is specific to Microsoft's WMI Query Language, it is not part of CQL (DSP0202) or FQL (DSP0212). DSP02xx standards can be found on the DMTF website - http://dmtf.org/standards/wbem > > Is that sort of thing real? Does anyone use queries like this? Do we > normally just use the enumeration operations with filters/keys/qualifiers? 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. Hope that helps > > > > -- mail Jim Marshall Sr. Software Engineer WS <http://ws-inc.com/>