Troubleshooting HP 3PAR Storage server using cim_query2Description<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Description Linux server which Discovered successfully doesn't show associated Storage Device & Storage Server in the Dependency View. Troubleshooting Steps 1. ServiceNow has built a tool named "cim_query2" using a query language. 2. This cim_query2 tool is the latest version which is modified from its previous version "cim_query". 3. To initiate this query builder you must call "cim_query2.do" from the filter navigator, and the page opens as below, 4. Proceed further querying storage server by filling on the required fields, IP Address: IP address where SMI-S server hostedNamespace: root/tpdMID Server: MID server which could validate the target serverCurrent Object: TPD_StorageSystem{Name='GenericSystem'} (which should be replaced by the identifier of the storage arrayQuery: CIM_ManagedElement{CreationClassName='TPD_StorageSystem',Name='0123456789ABCDEF'} 5. Once upon querying, it should return respective volumes attached to it. 6. If it doesn't return any Volumes, then the issue is related to SMI-S server which doesn't respond to cim query. 7. In this situation, the target SMI-S server should be restarted in order to gather the required volume information. 8. A sample query builder which was executed multiple times has returned volumes associated with the Storage server is as shown below, In the above query, cyan background shows the query which was executed, "CIM_ManagedElement{CreationClassName=‘TPD_StorageSystem’,Name=‘2FF70002AC018A7D’}.CIM_SystemDevice{ResultClass=CIM_StorageVolume}" where, CIM_ManagedElement{CreationClassName=‘TPD_StorageSystem’,Name=‘2FF70002AC018A7D’} - executes a CIM "GetInstance" call for the named Object.The "." indicates a CIM "Associators" callCIM_SystemDevice{ResultClass=CIM_StorageVolume} - means to get SystemDevice associations to StorageVolumes. --> This query which I executed gets all Storage Volumes for the Storage Server. Alternate ways to query SMI-S server 1. Use curl (Linux) or Invoke-WebRequest to post the correct XML to the SMI-S server--> Check “XML Request” in cim_query2 to get the correct XML to send. 2. Use WBEMTest. Docs: https://technet.microsoft.com/en-us/library/cc785775(v=ws.10).aspx Executable: https://technet.microsoft.com/en-us/library/cc180684.aspx 3. Use CimNavigator from http://cimnavigator.com/--> CimNavigator focuses on CIM, not SMI-S. It has trouble with SMI-S. I got some info from it by: > In 'Configure Host Connection' choose CIMOM Type "WBEMServices" or "OpenPegasus".> After connecting choose namespace "root" under Edit/Namespaces.> Go to Edit/Preferences/Associations, change Traverse (depth) to 1.> Go to Tools/EnumerateInstances. Enumerate "CIM_ManagedElement".> Drag the 1st element onto the Associations Graph.> Double click on any element to get it into the tree view.> Select it in the tree view, switch to the "Properties" view. Additional Reference Below are some useful references on, 1. GetInstance: https://www.dmtf.org/sites/default/files/standards/documents/DSP200.html#2.3.2.22. Associators: https://www.dmtf.org/sites/default/files/standards/documents/DSP200.html#2.3.2.143. SMI-S ComputerSystem & Volume definition: https://www.snia.org/sites/default/files/SMI-Sv1.3r6_Block.book_.pdf (page 109)4. Definition of StorageVolume: http://schemas.dmtf.org/wbem/cim-html/2.34.0/CIM_StorageVolume.html