HP WBEM Services Software Developer's Kit for HP-UX Provider and Client Developer's Guide A.01

Provider Implementation
Provider Basics
Chapter 452
Provider Basics
The provider development task has three components:
define the resources or system parameters to be manipulated as CIM
objects (the schema)
write C++ functions as described in the Provider API specifications
(built as a shared library). For API information, see HP WBEM
Services Software Developers Kit documentation in /opt/wbem/html
directory.
inform the CIM Server how to associate the defined CIM objects with
the shared library (through provider registration)
The basic steps for writing a provider are:
1. Determine what information to expose:
Developers need to determine what information and/or operations
this provider will provide to clients. Providers can choose to allow
read and/or write access to properties. Examples of properties
include system time, operating system type, serial number, and so
on. Providers can also support extrinsic methods to allow clients
access to operations. For example, a provider can support a method
that allows users to set the system time. Tips and concerns for
choosing which properties and methods to expose are discussed in
Chapter 3, in the section entitled STEP 1: Define High-Level
Client-Use Models.
2. Determine how to get the information:
Developers need to determine how the provider will get access to
and/or write the information or get the operation it is exposing to
occur. This is very specific to the type of information so there is little
this document can do to help with this step. Providers can use
standard system calls to get information or can use private files and
databases.
3. Define the schema to useand the properties and methods that will be
supported
4. Determine which namespaces the provider will use to support the
specified objects