1. RPM build
There are two ways to create the OpenPegasus binary RPM.
- Building from source RPM
- Download the OpenPegasus source RPM form the !OpenPegasus website.
- Open a terminal in the directory where you put the source RPM file.
- Type the following command as root (or with sudo):
$ rpmbuild --rebuild tog-pegasus-M.m.R-P.src.rpm
- Building form source tarball
- Download the OpenPegasus source tarball form the !OpenPegasus website.
- Open a terminal in the directory where you put the source tarball file.
$ tar zxvf pegasus-M.m.R.tar.gz $ cp pegasus/rpm/tog-pegasus.spec <RPM_DIR>/SPECS/ $ cp pegasus-M.m.R.tar.gz <RPM_DIR>/SOURCES/ $ cd <RPM_DIR>/SPECS/ $ rpmbuild -ba tog-pegasus.spec
Replace <RPM_DIR> by the actual RPM directory on your system.
2. Installation
There are 2 ways to install a binary RPM on your system.
- You can install the RPM you built by following the instructions on the part 1 of this wiki page, by inputting the following commands in a Terminal:
$ cd <RPM_DIR>/RPMS/<arch> $ rpm -ivh tog-pegasus-2.6.0-1.<arch>.rpm $ rpm -ivh tog-pegasus-devel-2.6.0-1.<arch>.rpm
Replace <RPM_DIR> by the actual RPM directory on your system.
Replace <arch> by your actual processor architecture (ie i386, i586, i686, x86_64, etc).
- Or you can install the RPM provided by your Linux distribution (if your distribution provides one). Input the following command in a Terminal (as root, or with sudo):
$ yum install tog-pegasus
3. Running CIM Server
- In order to run the OpenPegasus CIM Server, you should run the following command in a Terminal as root:
$ cimserver
- In order to stop the OpenPegasus CIM Server, you should run the following command in a Terminal:
$ cimserver -s
4. Remove the Pegasus Provider
In order to correctly use OpenDRIM providers, you should firstly remove the providers that comes with the OpenPegasus RPM. So you have to do the following steps:
- Remove OpenPegasus' provider from the namespace (cimeserver should be started):
$ cimprovider -r -m OperatingSystemModule $ cimprovider -r -m ComputerSystemModule $ cimprovider -r -m ProcessModule
- Remove provider binary
$ cd /usr/lib/Pegasus/providers $ rm -f libOS* libProcess* libComputer*
Note: If you are running a 64bit Linux distribution, you should replace lib by lib64
- Finally, you should check that the providers are removed (you may need to restart the CIM server first).
$ cimprovider -l -s
If the providers are correctly removed, then you should have the following output:MODULE STATUS Interop_OpenDRIM_NamespaceModule OK
5. Update CIM Repository and Providers
- You should delete the existing root/cimv2 namespace first:
$ rm -rf /var/lib/Pegasus/repository/root#cimv2
Note: If you are running a 64bit Linux ditribution, you should replace lib by lib64
- Go to the DMTF website and download the lastest version of the CIM schema (zip archive of mof code, you can choose between final or experimental).
Note: We experienced troubles with the CIM schema from the DMTF due to incompatibilities with the OpenPegasus mof compiler (cimmof). You may want to use the OpenDRIM retailed CIM schema instead. - Uncompress the downloaded zip file (anywhere but not in the pegasus repository!)
$ unzip cimvMm-MOFs.zip
- You should see a file called cimvMm.mof where you uncompressed the zip archive.
- Create the root/cimv2 namespace and populate it with CIM schema (-aE if for allowing experimental schema)
$ cimmof -aE -n root/cimv2 cimvMm.mof
- The next steps are required to be conform to the Profile Registration Profile from the DMTF Create the Interop namespace and populate it with CIM schema (CIM schema version should be the same with root/cimv2)
$ cimmof -aE -n Interop cimvMm.mof
6. Configuration (Optional)
You may need to perform the following configuration, in order to have OpenPegasus to work correctly with SSL and without SSL.
- Generating the OpenPegasus SSL certificate:
$ cd /usr/share/Pegasus/scripts $ ./genOpenPegasusSSLCerts
- Enabling HTTP connection: edit the /var/lib/Pegasus/cimserver_planned.conf file, and add the following line:
enableHttpConnection=true
7. Add an user authorization to the CIM Server (Optional)
$ cimauth -a -u <user_name> -n root/cimv2 -R
Replace <user_name> by the actual user name you want to authorize to use OpenPegasus.
First Edited by Hong Sang-Hyun, shhong@lgnsys.com ibmmsx2@gmail.com
Modified by
2009/01/30 Guillaume Bottex, guillaumebottex@etri.re.kr
