                                        README
                             Simple Instance Provider

The Simple Instance Provider code example consists of three files:

- SimpleInstanceProvider.java  - Java source for an instance provider.
- SimpleInstanceProvider.class - Compiled instance provider file.
- SimpleInstanceProvider.mof - The MOF file that declares the 
Ex_SimpleInstanceProvider class and its associated provider.

Note that the examples here are taken from Solaris platform, that /usr/java
points to jdk1.2 and that WBEM files are installed on "/usr" directory.

To Run the Example:

1. Change to superuser and copy the SimpleInstanceProvider class file to 
/usr/sadm/lib/wbem. For example:

% su
Password:
# cd /usr/demo/wbem/provider/sip 
# cp SimpleInstanceProvider.class /usr/sadm/lib/wbem

2. Compile the MOF file, specifying the root account and password. This 
registers the Ex_SimpleInstanceProvider class and its provider with the
CIM Object Manager. For example:

% /usr/sadm/bin/mofcomp -u root -p root_password SimpleInstanceProvider.mof

NOTE: If the error message, "NO_CIMOM:CIMOM //localhost/CIMOM2 not detected,"
      is displayed, the CIM Object Manager is not running on your system. 
      Type the following commands to restart the CIM Object Manager, 
      and then type the mofcomp command in Step 2 again:

      /usr/sadm/bin/cimom stop
      /usr/sadm/bin/cimom

3. Start CIM WorkShop to view the Ex_SimpleInstanceProvider class. For example:
% /usr/sadm/bin/cimworkshop

4. Select Find Class from the Action menu on the tool bar, type
Ex_SimpleInstanceProvider in the Find Class dialog box, and click OK.

5. Select Instances from the Action menu on the tool bar to create instances
for the Ex_SimpleInstanceProvider class.

