HP WBEM Services Software Developer's Kit for HP-UX Provider and Client Developer's Guide A.01
Provider Implementation
Testing and Debugging Providers
Chapter 4 79
Note that the ownership and permissions on both the link and the
target file (and its path) must not rely on the fact that the current
CIM Server runs under the root user ID.
2. Create schema definitions for the class or classes that the provider
serves (if not already done) by using the cimmof command to compile
and load MOF files containing the class definitions. For example:
$ cimmof TestClass.mof
Since TestClass.mof should contain the class definitions of all parent
classes as well as the new class to be defined (as described in the
section on MOF File Content Guidelines), the cimmof command will
usually generate warning messages for classes that already exist.
This is normal and can be ignored.
Note that in this example, the new schema is being created in the
default namespace, root/cimv2. In some cases, the new class will be
defined in a different namespace. This can be specified with the -n
flag on the cimmof command:
$ cimmof -n root/altnamespace TestClass.mof
In some cases this may be a new namespace that does not yet exist. If
it is necessary to create a new namespace, this must be done first. It
may be done by loading the qualifier definitions with the cimmof
command:
$ cimmof -n root/altnamespace
/etc/opt/wbem/mof/CIM_Qualifiers25.mof
3. Register the provider by creating instances of the provider
registration classes in the PG_Interop namespace using the cimmof
command (information on Provider Registration can be found in the
section on Provider Registration and Naming). This must be done by
the
root
user. For example:
# cimmof -n root/PG_InterOp TstProviderRegister.mof
Removing and Re-Installing a Provider
It is normal to modify and rebuild a program many times during a
software development project, and provider development is no exception.
In order to test a rebuilt provider, the previous version must be stopped
and removed so that the new one can be installed. Once started,