20.2. Installing OpenLMI

OpenLMI is distributed as a collection of RPM packages that include the CIMOM, individual CIM providers, and client applications. This allows you distinguish between a managed and client system and install only those components you need.

20.2.1. Installing OpenLMI on a Managed System

A managed system is the system you intend to monitor and manage by using the OpenLMI client tools. To install OpenLMI on a managed system, complete the following steps:
  1. Install the tog-pegasus package by typing the following at a shell prompt as root:
    yum install tog-pegasus
    This command installs the OpenPegasus CIMOM and all its dependencies to the system and creates a user account for the pegasus user.
  2. Install required CIM providers by running the following command as root:
    yum install openlmi-{storage,networking,service,account,powermanagement}
    This command installs the CIM providers for storage, network, service, account, and power management. For a complete list of CIM providers distributed with Red Hat Enterprise Linux 7, see Table 20.1, “Available CIM Providers”.
  3. Edit the /etc/Pegasus/access.conf configuration file to customize the list of users that are allowed to connect to the OpenPegasus CIMOM. By default, only the pegasus user is allowed to access the CIMOM both remotely and locally. To activate this user account, run the following command as root to set the user's password:
    passwd pegasus
  4. Start the OpenPegasus CIMOM by activating the tog-pegasus.service unit. To activate the tog-pegasus.service unit in the current session, type the following at a shell prompt as root:
    systemctl start tog-pegasus.service
    To configure the tog-pegasus.service unit to start automatically at boot time, type as root:
    systemctl enable tog-pegasus.service
  5. If you intend to interact with the managed system from a remote machine, enable TCP communication on port 5989 (wbem-https). To open this port in the current session, run the following command as root:
    firewall-cmd --add-port 5989/tcp
    To open port 5989 for TCP communication permanently, type as root:
    firewall-cmd --permanent --add-port 5989/tcp
You can now connect to the managed system and interact with it by using the OpenLMI client tools as described in Section 20.4, “Using LMIShell”. If you intend to perform OpenLMI operations directly on the managed system, also complete the steps described in Section 20.2.2, “Installing OpenLMI on a Client System”.

20.2.2. Installing OpenLMI on a Client System

A client system is the system from which you intend to interact with the managed system. In a typical scenario, the client system and the managed system are installed on two separate machines, but you can also install the client tools on the managed system and interact with it directly.
To install OpenLMI on a client system, complete the following steps:
  1. Install the openlmi-tools package by typing the following at a shell prompt as root:
    yum install openlmi-tools
    This command installs LMIShell, an interactive client and interpreter for accessing CIM objects provided by OpenPegasus, and all its dependencies to the system.
  2. Configure SSL certificates for OpenPegasus as described in Section 20.3, “Configuring SSL Certificates for OpenPegasus”.
You can now use the LMIShell client to interact with the managed system as described in Section 20.4, “Using LMIShell”.