After you write a Provider, you must specify the location of the provider class files and any shared library files.
Specify the location of shared library files in one of the following ways:
Set the LD_LIBRARY_PATH environment variable to the location of the shared library files. For example, using the C shell:
% setenv LD_LIBRARY_PATH /wbem/provider/ |
For example, using the Borne shell:
% set LD_LIBRARY_PATH = /wbem/provider/ |
Copy the shared library files to the directory specified by the LD_LIBRARY_PATH environment variable. The installation sets this environment variable to /install_dir/opt/SUNWconn/wbem/lib. For example:
% cp libnative.so /install_dir/opt/SUNWconn/wbem/lib % cp native.c /install_dir/opt/SUNWconn/wbem/lib |
Move the provider class files to /install_dir/opt/SUNWconn/wbem/bin.
Set the CLASSPATH variable to the directory that contains the provider class files.
For example, if you put the provider files in:
/install_dir/opt/SUNWconn/wbem/bin/com/mycomp/wbem/provider/
you would set your CLASSPATH variable as follows, using the C shell:
% setenv CLASSPATH com/mycomp/wbem/provider/myprovider |
For the Borne shell, use the following syntax:
$ set CLASSPATH = com/mycomp/wbem/provider/myprovider |
Make sure the CIM Object Manager is running.
The installation starts the CIM Object Manager. If it is not running, see "Restarting the CIM Object Manager".