Hi,
I have a 2 node IBM SVC storage array. I am trying to discover all hosts name using SMIS class and WBEMClient like below
public static CIMInstance getHostname(WBEMClient client, String arrayID, CIMInstance host) throws WBEMException
{
String hostObjectPath = namespace + ":IBMTSSVC_ProtocolController.CreationClassName=\"IBMTSSVC_ProtocolController\",DeviceID=\""+arrayID+":"+host.getProperty(SVCApiConstants.SVC_STOR_HDWR_PROP_HOSTID).getValue().toString()+ "\",SystemCreationClassName=\""+SVCApiConstants.SVC_CLASSES_IBMTSDS_STORAGESYSTEM+"\",SystemName=\""+arrayID+":"+arrayID+"\"";
CIMInstance spcHostInstance = null;
try {
spcHostInstance = client.getInstance(new CIMObjectPath(hostObjectPath), false, true, null);
} catch (WBEMException e) {
logger.logError("Could not fetch the host info for the host "+host,e);
throw e;
}
return spcHostInstance;
}
for one node I get payload as
[instance of IBMTSSVC_ProtocolController {
AccessGranted = true;
ClientType = 0;
ConnectionRole = {2};
CreationClassName = "IBMTSSVC_ProtocolController";
Description = "Logical controller used for modeling the authorization path from host ports to volumes.";
DeviceID = "0000020320018336:1";
ElementName = "ESXi6.5_HOST_173";
EnabledDefault = 2;
EnabledState = 5;
HostClusterId = "";
HostClusterName = "";
MaxUnitsControlled = 1;
Name = "ESXi6.5_HOST_173";
NameFormat = 0;
OperationalStatus = {0};
RequestedState = 5;
SiteId = "";
SiteName = "";
StatusDescriptions = {"Unknown"};
SystemCreationClassName = "IBMTSSVC_Cluster";
SystemName = "0000020320018336:0000020320418336";
TransitioningToState = 12;
};]
for the other node , payload is different
instance of IBMTSSVC_ProtocolController {
AccessGranted = true;
ConnectionRole = {2};
CreationClassName = "IBMTSSVC_ProtocolController";
Description = "Logical controller used for modeling the authorization path from host ports to volumes.";
DeviceID = "0000020320418336:0";
EnabledDefault = 2;
EnabledState = 5;
MaxUnitsControlled = 1;
NameFormat = 0;
OperationalStatus = {0};
RequestedState = 5;
StatusDescriptions = {"Unknown"};
SystemCreationClassName = "IBMTSSVC_Cluster";
SystemName = "0000020320418336:0000020320418336";
TransitioningToState = 12;
};
So, ElementName ,Name are missing in 2nd payload.
Any Idea, what could be problem here?