Sample Code Sample Code: Connect to External Client Provider


ToolInfrastructure tinf;  // Set by SMC console

// Get external client proxy reference for WBEM.
// We pass the target host in the name space parameter.
CIMNameSpace cns = new CIMNameSpace(hostname, "root/cimv2");
Integer protocol = new Integer(CIMClient.RMI);
Object [] params = {cns, protocol};
CIMClient cc = (CIMClient)tinf.getExternalClient("CIMWBEM", params);
// Access providers through this CIMClient
...