HP WBEM Services Software Developer's Kit for HP-UX Provider and Client Developer's Guide A.01
Client Implementation
Discovery
Chapter 5 91
Discovery
Discovering Platforms
HP WBEM Services for HP-UX listens for HTTP communication on port
5989 (for encrypted communication, the default behavior) or 5988 (for
unencrypted communication). A client can attempt to connect to either of
these ports to determine if a CIM Server is running.
Discovering namespaces
When a client can successfully issue requests to a system on which HP
WBEM Services for HP-UX is running, it can determine what
namespaces exist by performing an enumerateInstanceNames operation
on a special class named __namespace (not case sensitive), specifying the
root namespace in the operation. (Note that this functionality is
deprecated by the DMTF, to be replaced by another mechanism, and
support may be discontinued at some future date.) The following code
fragment shows an example:
#include <Pegasus/Client/CIMClient.h>
int main()
{
CIMClient c;
Array<CIMObjectPath> namespaces;
...namespaces =
c.enumerateInstanceNames("root","__namespace");
}
Discovering Classes
Once a namespace of interest has been identiļ¬ed, the process of
discovering classes is straightforward. One can use the
enumerateClassNames and enumerateClasses operations to retrieve
subclasses of any class in the namespace. Specifying NULL for the class