RE: ASSOCIATORS OF queries in CMPI
Johnny Hwang <[email protected]> Thu, 20 Feb 2014 20:43:41 +0000
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <D4807E0100045243873A9B26E6510FAC10E379E8@mbx025-w1-ca-2.exch025.domain.local> |
ExecuteQuery would depend upon whether or not the specified SMI-S provider supports it. For what it's worth, OpenPegasus should support it, but some vendors compile it without ExecuteQuery support, and the xq queries would fail against those providers. In SMI-S land, providers normally just support enumeration operations with filters/keys/qualifiers, with xq queries being very rare. Hope this helps, Johnny Hwang -----Original Message----- From: C. Thomas Stover [mailto:[email protected]] Sent: Thursday, February 20, 2014 11:47 AM To: [email protected] Subject: Re: ASSOCIATORS OF queries in CMPI On Thu, 20 Feb 2014 18:37:40 +0000, Johnny Hwang wrote: > It's not just a Microsoft specific thing, if that's what you're > wondering. > > Here's an example with cimcli: > > cimcli -n interop a > 'PG_RegisteredProfile.InstanceID="SNIA+Server+1.1.0"' [-ac > <AssociatorClassName>] [-rc <ResultClassName] > 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 Is that sort of thing real? Does anyone use queries like this? Do we normally just use the enumeration operations with filters/keys/qualifiers?