1. Downloading

  • Download OpenWBEM CIM server from http://www.openwbem.org/
    • openwbem-M.m.R.tar.bz2
  • Untar the archive:
    • $ tar xjvf openwbem-M.m.R.tar.bz2
  • The examples below are based on the installation of OpenWBEM in a local directory (for example /home/toto/openwbem-build).

2. Configuring the source code

  • In the OpenWBEM source directory, configure the source code:
    • $ ./configure --help : See a list of the available options
  • To change the location of the build directory (local installation): --prefix=<PATH_TO_OPENWBEM_BUILD_DIRECTORY>

3. Compiling

  • In the OpenWBEM source directory:
    • $ make

4. Installing

  • In the OpenWBEM source directory:
    • $ make install

5. Additional steps

  • We need the right to execute this file:
    • $chmod +x <PATH_TO_OPENWBEM_BUILD_DIRECTORY>/etc/openwbem/owgencert
  • Go there and execute the script to generate encryption keys
    • $ cd <PATH_TO_OPENWBEM_BUILD_DIRECTORY>/etc/openwbem
    • $ ./owgencert
  • (Disabling user authentication: for developpers) Edit the file <PATH_TO_OPENWBEM_BUILD_DIRECTORY>/etc/openwbem/openwbem.conf and set the following parameter:
    ...
    owcimomd.allow_anonymous = true
    ...
    

6. Running

  • Add the path to the OpenWBEM executables to your PATH variable and set the LD_LIBRARY_PATH variable:
    • $ export PATH=<PATH_TO_OPENWBEM_BUILD_DIRECTORY>/bin:<PATH_TO_OPENWBEM_BUILD_DIRECTORY>/sbin:$PATH
    • $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<PATH_TO_OPENWBEM_BUILD_DIRECTORY>/lib
  • Or to your /etc/bashrc file:
    ...
    # PATH
    export PATH=:<PATH_TO_OPENWBEM_BUILD_DIRECTORY>/bin:<PATH_TO_OPENWBEM_BUILD_DIRECTORY>/sbin:$PATH
    
    # Library PATH
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH::<PATH_TO_OPENWBEM_BUILD_DIRECTORY>/lib
    ...
    
  • To start OpenWBEM: $ owcimomd

7. Setting up the CIM repository (OpenWBEM needs to be running)

  • By default OpenWBEM comes with an empty root namespace, so the first thing to do is to populate this namespace. You have to download the CIM schema from the DMTF website first. Then you should get a file named cimvMm.mof (M: Major version, m: minor version) after extracting. This file includes the full CIM schema. Compile the mof code in the root namespace as follow:
    • $ owmofc -n root cimvMm.mof
  • Then create the root/cimv2 namespace and populate it (it should be the same CIM schema version!)
    • $ owcreatenamespace -n root/cimv2
    • $ owmofc -n root/cimv2 cimvMm.mof
  • Finally create the root/Interop namespace and populate it (it should be the same CIM schema version!)
    • $ owcreatenamespace -n root/Interop
    • $ owmofc -n root/Interop cimvMm.mof

8. OpenDRIM Common Library?

  • $ ./configure CIMSERVER=openwbem --prefix=<PATH_TO_OPENWBEM_BUILD_DIRECTORY>
  • $ make
  • $ make install or $ make install-strip (stripping makes the libraries smaller)

9. OpenDRIM Providers

  • $ ./configure CIMSERVER=openwbem --prefix=<PATH_TO_OPENWBEM_BUILD_DIRECTORY>
  • $ make
  • $ make install or $ make install-strip (stripping makes the libraries smaller)
  • $ make postinstall

10. Install it from RPM package

11. lime-providers