此内容没有您所选择的语言版本。
Chapter 2. Installing insights-client
You can install Red Hat Lightspeed on an existing system that is managed by Red Hat infrastructure, or you can install it on a minimal installation of Red Hat Enterprise Linux.
After you install the Red Hat Lightspeed client, you need to register your system. For more information about registering systems, refer to:
Use these instructions to deploy the Red Hat Lightspeed client (insights-client) on an existing, cloud marketplace-purchased Red Hat Enterprise Linux system managed by Red Hat Update Infrastructure (RHUI).
Prerequisites
- Root-level access for the system.
Procedure
Enter the following command to install the current version of the Red Hat Lightspeed client package:
RHEL versions 6 and 7
yum install insights-client
[root@server ~]# yum install insights-clientCopy to Clipboard Copied! Toggle word wrap Toggle overflow RHEL version 8 and later
dnf install insights-client
[root@server ~]# dnf install insights-clientCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verification step
Run the following command to confirm successful installation of the Red Hat Lightspeed client:
insights-client --version
[root@server ~]# insights-client --versionCopy to Clipboard Copied! Toggle word wrap Toggle overflow
The Red Hat Lightspeed client runs automatically, according to its scheduler settings. By default, it runs every 24 hours. To run the client interactively, enter the insights-client command.
When you run insights-client, the following values and settings determine the results:
-
Values that you enter when you run
insights-clientfrom the CLI temporarily override the preset configuration file settings and system environment settings. Any values that you enter for options in theinsights-clientcommand are used only for that instance of Red Hat Lightspeed client. -
Settings in the configuration file (
/etc/insights-client/insights-client.conf) override system environment settings. -
Values of any system environment variables (
printenv) are not affected by the CLI or the client configuration files.
The Red Hat Lightspeed client is not automatically installed on systems running the minimal installation of Red Hat Enterprise Linux 8.
For more information about minimal installations, see Customizing the system in the installer and Interactively installing RHEL from installation media.
Prerequisites
- Root-level access to the system.
- You have already started the Anaconda installer as part of a RHEL install and are ready to install software packages. For more information, see Installing Using Anaconda and Software Selection
Procedure
- Select Minimal Install from the RHEL Software Selection options in the Anaconda installer.
-
Select the Standard checkbox in the Additional Software for Selected Environment section. The Standard option includes the
insights-clientpackage in the RHEL installation.
If you do not select the Standard checkbox, RHEL installs without the insights-client package. If that happens, you can use dnf install to install the Red Hat Lightspeed client at a later time.
Verification
Run the following command to confirm the successful installation of the Red Hat Lightspeed client:
insights-client --version
[root@server ~]# insights-client --versionCopy to Clipboard Copied! Toggle word wrap Toggle overflow
You will see the client and core versions.
Client: 3.10.1 Core: 3.6.3
Client: 3.10.1
Core: 3.6.3
The Red Hat Lightspeed client (insights-client) executes a number of commands that collect data on your system. Therefore, it has a configuration restriction that limits its CPU usage to no more than 30%. This restriction is defined in the configuration file:
insights-client-boot.service: CPUQuota=30%
This configuration prevents the Red Hat Lightspeed client from creating a CPU spike on your system. This spike could interfere with other applications running on your system. Specifically, it could prevent applications that depend on real-time scheduling from initiating.
If you need to enable real-time scheduling, you can disable the CPU quota restriction. The risk of removing this configuration is minimal. However, it is possible that when the Red Hat Lightspeed client runs, the CPU usage may become unusually high. If this situation occurs and negatively impacts other services on your system, please contact Red Hat support for assistance.