On Wed, May 14, 2014 at 03:33:08AM -0700, Dave Kirby wrote:
>
> 1) Are there any good tutorials on CQL? The only one I have found is a
> one-page overview at
http://www.wbemsolutions.com/tutorials/DMTF/wbem-cql.html
> but that does not go very deep. I also have the CQL Specification but that is
> very dense and confusing and leaves me with more questions than it answers.
This document might help:
http://www.dmtf.org/standards/search?keys=&title=&dsp=DSP0202&tid=All
> 2) My biggest question with CQL is how to traverse an association from one
> object to another. WQL has the "ASSOCIATORS OF..." query type but this is not
> supported in CQL.
Please use Associators() or AssociatorNames() call instead.
The "DMTF: CIM over HTTP" document might help:
http://www.dmtf.org/standards/search?keys=&title=&dsp=DSP0200&tid=All
If you are using Python pywbem:
http://sourceforge.net/apps/mediawiki/pywbem/index.php?title=Upcalls#Associators
>
> 3) is there a standard way to get from the WWPN of an HBA card to the storage
> volumes that are configured for that server? For IBM Storewiz I have found the
> class IBMTSSVC_HardwareIdStorageVolumeViewn which does exactly what I want -
> the description says "Represents a mapping between a StorageHardwareID (SVC
> host) to a Volume (SVC VDisk)". However this is obviously IBM specific - is
> there a standard way of getting this information across storage vendors? Or
> even vendor specific ways for non-IBM systems?
You can refer to SMI-S Block book:
"Masking and Mapping Subprofile"
There are two ways to get LUN masking information:
Method A, introduced by SMI-S 1.6:
CIM_StorageVolume # LUN
|
| CIM_ProtocolControllerForUnit # Associate class
v
CIM_SCSIProtocolController # You can treat this as a host
| # group or initiator group.
|
| CIM_AssociatedPrivilege # Associate class
v
CIM_StorageHardwareID # CIM_StorageHardwareID['Initiator'] is WWPN
Method B, defined in SMI-S 1.4, 1.5 and 1.6. (deprecated in 1.6):
# You'd better use the method B unless you checked the profile
# registration status of your SMI-S provider.
CIM_StorageVolume
|
| CIM_ProtocolControllerForUnit # Associate class
v
CIM_SCSIProtocolController #
|
| CIM_AuthorizedTarget
v
CIM_AuthorizedPrivilege
|
| CIM_AuthorizedSubject
v
CIM_StorageHardwareID # CIM_StorageHardwareID['Initiator'] is WWPN
There is also an experimental SMI-S profile: "Group Masking and Mapping
Profile". But I see no vendor implemented that profile.
>
> I have lots of other questions but that enough to be going on with.
> Any help will be greatly appreciated.
Yes. The whole DMTF/SNIA/CIM/WBEM/SMI-S things and SNIA SMI-S big PDFs
confused me too.
Feel free to ask any questions.
I have gained pretty a lot helps on SMI-S and willing to contribute back.
>
> Dave K
>
Hope that helps.
Best regards.
--
Gris Ge