The best place to start is with Fedora 20. OpenLMI is under active development, and there have been significant changes since the earlier releases in F18 and F19. These instructions were tested against the Fedora 20 final beta.
OpenLMI can be installed by installing the openlmi package. This is a metapackage that installs the OpenLMI infrastructure and a base set of OpenLMI Providers. Additional Providers and other packages can be installed later.
$ yum install openlmi
Start the CIMOM
The OpenLMI CIMOM runs as a service. For security reasons, services are not automatically started. You will need to start the CIMOM manually, using the command:
$ systemctl start tog-pegasus.service
To have the service automatically started when the system boots, use the command:
$ systemctl enable tog-pegasus.service
You will then need to open the appropriate firewall ports to allow remote access. This can be done from the firewall GUI by selecting the WBEM-https service, or can be done from the command line by entering:
$ firewall-cmd --add-port 5989/tcp
You will probably want to open this port permanently:
$ firewall-cmd --permanent --add-port 5989/tcp
You may need to set SELinux to permissive mode:
$ setenforce 0
You next need to configure the users for remote access. The Pegasus CIMOM can accept either root or pegasus as users (configuring Pegasus to use other users is beyond the scope of this article). This is done my making one or both of the following changes on the managed system:
- The user pegasus is created – without a password – when you install OpenLMI. To use the pegasus user you need to add a password by using the command passwd pegasus (as root) and then giving it a password.
- Alternatively, you can edit the Pegasus access configuration file to allow root access:
- Edit the file /etc/Pegasus/access.conf
- Change the line “ALL EXCEPT pegasus:wbemNetwork” to “ALL EXCEPT root pegasus:wbemNetwork” and save the file.
Install the OpenLMI Client
The OpenLMI client consists of the LMIShell environment and a set of system management scripts. The OpenLMI client is installed on the client system – that is, the system that will be used to manage other systems. You don’t need to install the OpenLMI client on managed systems, and you don’t need to install OpenLMI Providers on the client system.
The easiest way to install it is to install the openlmi-scripts, which brings in openlmi-tools:
$ yum install openlmi-scripts*
If you are using a pre-release version of Fedora 20, the openlmi-scripts files may still be in the updates-testing repository; if so, use:
$ yum –enablerepo=updates-testing install openlmi-scripts*
In order to access a remote LMI managed system, you will need to copy the Pegasus server certificate to the client system. This can be done with:
# scp root@managed-machine:/etc/Pegasus/server.pem
Where “managed-machine” is the name of the managed system. You then need to:
Try It Out
At this point you should be ready to go! Test the installation by running an LMI command; this sample will be explained in future articles (replace <managed-machine> with the actual machine name):
# lmi -h managed-machine
lmi> hwinfo cpu
CPU: AMD Phenom(tm) 9550 Quad-Core Processor
Topology: 1 cpu(s), 1 core(s), 1 thread(s)
Max Freq: 3000 MHz