Registering RHEL systems and configuring client tools with Red Hat Lightspeed
This document provides information on registering RHEL systems and configuring Red Hat Lightspeed with client tools.
Abstract
Chapter 1. Client tools and components Copy linkLink copied to clipboard!
Red Hat Enterprise Linux (RHEL) client tools are a collection of utilities that you can use to connect, register, and manage RHEL systems. These tools, such as the insights-client, subscription-manager, and the remote host configuration client (rhc), facilitate system registration, entitlement management, and proactive remediation. By integrating RHEL and the correct User Access permissions for your needs with Red Hat Lightspeed and other Red Hat services, these clients streamline the deployment, troubleshooting, and optimization of your hybrid cloud environment.
1.1. Understanding the client tools and components Copy linkLink copied to clipboard!
Before you register or manage your system, you should understand the client tools that are available. Red Hat Enterprise Linux (RHEL) includes several client tools:
- The rhc client
- The subscription-manager
- The insights-client
Learning the purpose of each tool helps you understand how they integrate to connect your RHEL system to Red Hat services. After learning about the clients and their components, make sure that you have the correct Hybrid Cloud Console User Access roles and permissions required for a successful connection. After you complete the steps, you can register your systems.
1.1.1. The rhc client Copy linkLink copied to clipboard!
The rhc client is the recommended tool to register and manage your RHEL systems that are connected to the Red Hat Hybrid Cloud Console. Use the rhc client to register and connect systems directly to Red Hat services.
To register and connect systems with Red Hat Satellite or Capsule, see Red Hat Satellite product documentation.
The rhc client works in conjunction with insights-client and subscription-manager to offer a unified client experience including the registration of the system to Red Hat, and the configuration of feature levels and the remote management capabilities.
The remote host configuration service includes the following two main components:
- The rhc client remote host configuration client (a client-side daemon)
- The remote host configuration manager (a server-side service)
The remote host configuration (rhc) client enables the following capabilities:
- Easy registration. With the rhc client, you can register systems to Red Hat Subscription Management (RHSM) and Red Hat Lightspeed.
- Remediations and Tasks from Red Hat Lightspeed. When you connect systems to Red Hat Lightspeed with the rhc client, you can manage the end-to-end experience of finding and fixing issues. Registered systems can directly use tasks and remediation playbooks that are automatically generated from remediation plans and executed from within the Red Hat Lightspeed Automation Toolkit.
RHC client components and support. The rhc client is preinstalled and fully supported with all Red Hat Enterprise Linux (RHEL) 8.6 and later installations, with the exception of minimal installations. The rhc client consists of the following utility programs:
-
The
yggdrasil(rhcdon version RHEL 9 and earlier) daemon runs on the system and listens for messages from the Hybrid Cloud Console. On properly configured systems, theyggdrasildaemon can receive and execute playbooks that are generated by Red Hat Lightspeed remediation plans. -
The
rhccommand-line utility for RHEL.
Remote remediation using the remote host configuration manager. To enable or disable Red Hat Lightspeed remediation capabiliities for systems that connect using the rhc client and that are also running the yggdrasil daemon, use the remote host configuration manager.
You can access the remote host configuration manager, by logging in to the Red Hat Hybrid Cloud Console as a user with RHC user privileges. To make changes to settings in the remote host configuration manager, located at Red Hat Hybrid Cloud Console > Red Hat Lightspeed > Inventory > System Configuration > Remote Host Configuration (RHC), you need RHC administrator privileges.
1.1.2. The subscription-manager client Copy linkLink copied to clipboard!
As an option, you can use the subscription-manager client to directly register your RHEL systems, but the available RHSM features will be limited with Red Hat Lightspeed. Registering with only the subscription-manager client will establish your system’s identity and provide access to the Red Hat Content Delivery Network (CDN) for updates and packages. For additional features provided by Red Hat Lightspeed, consider using the rhc client.
1.1.3. The insights-client Copy linkLink copied to clipboard!
The insights-client is mainly responsible for collecting data for analytics provided by Red Hat Lightspeed. The insights-client relies on the subscription-manager client to establish the identity of the system.
The insights-client is available for the following releases of Red Hat Enterprise Linux (RHEL).
| RHEL release | Comments |
|---|---|
| RHEL 10 | Distributed with insights-client pre-installed. |
| RHEL 9 | Distributed with insights-client pre-installed. |
| RHEL 8 | Distributed with insights-client pre-installed, unless RHEL 8 was installed as a minimal installation. |
| RHEL 7 | Distributed with the insights-client RPM package loaded but not installed. |
Additional resources
1.2. User Access settings in the Red Hat Hybrid Cloud Console Copy linkLink copied to clipboard!
User Access is the Red Hat implementation of role-based access control (RBAC). Your Organization Administrator uses User Access to configure what users can see and do on the Red Hat Hybrid Cloud Console (the console):
- Control user access by organizing roles instead of assigning permissions individually to users.
- Create groups that include roles and their corresponding permissions.
- Assign users to these groups, allowing them to inherit the permissions associated with their group’s roles.
1.2.1. Predefined User Access groups and roles Copy linkLink copied to clipboard!
To make groups and roles easier to manage, Red Hat provides two predefined groups and a set of predefined roles:
Predefined groups
The Default access group contains all users in your organization. Many predefined roles are assigned to this group. It is automatically updated by Red Hat.
NoteIf the Organization Administrator makes changes to the Default access group its name changes to Custom default access group and it is no longer updated by Red Hat.
The Default admin access group contains only users who have Organization Administrator permissions. This group is automatically maintained and users and roles in this group cannot be changed.
On the Hybrid Cloud Console navigate to Red Hat Hybrid Cloud Console > the Settings icon (⚙) > Identity & Access Management > User Access > Groups to see the current groups in your account. This view is limited to the Organization Administrator.
Predefined roles assigned to groups
The Default access group contains many of the predefined roles. Because all users in your organization are members of the Default access group, they inherit all permissions assigned to that group.
The Default admin access group includes many (but not all) predefined roles that provide update and delete permissions. The roles in this group usually include administrator in their name.
On the Hybrid Cloud Console navigate to Red Hat Hybrid Cloud Console > the Settings icon (⚙) > Identity & Access Management > User Access > Roles to see the current roles in your account. You can see how many groups each role is assigned to. This view is limited to the Organization Administrator.
1.2.2. Access permissions Copy linkLink copied to clipboard!
The Prerequisites for each procedure list which predefined role provides the permissions you must have. As a user, you can navigate to Red Hat Hybrid Cloud Console > the Settings icon (⚙) > My User Access to view the roles and application permissions currently inherited by you.
If you cannot access Red Hat Lightspeed because of permissions issues, contact your Organization Administrator or the User Access administrator for your organization.
Use the Red Hat Hybrid Cloud Console Virtual Assistant to ask "Contact my Organization Administrator". The assistant sends an email to the Organization Administrator on your behalf.
Additional resources
For more information about user access and permissions, see User Access configuration guide for role-based access control (RBAC).
1.2.3. User Access roles for remote host configuration manager Copy linkLink copied to clipboard!
There are several User Access roles that are relevant for Red Hat Lightspeed users. These roles determine if a Red Hat Lightspeed user can simply view settings or change them, and use remediation features.
User Access roles for using the remote host configuration manager in the Red Hat Hybrid Cloud Console
- RHC administrator. Members in a group with this role can perform any operations in the remote host configuration manager.
- RHC user. A default permission for all users on your organization’s Red Hat Hybrid Cloud Console account that allows anyone to see the current status of the configuration.
User Access roles for using remediations features in the Red Hat Hybrid Cloud Console.
- Remediations administrator. Members in a group with this role can perform any available operation against any remediations resource, including direct remediations.
- Remediations user. Members in a group with this role can create, view, update, and delete operations against any remediations resource. This is a default permission given to all Hybrid Cloud Console users on your account.
1.3. Install the insights-client Copy linkLink copied to clipboard!
The insights-client is automatically installed when you install a new RHEL system with the default settings. Certain types of RHEL deployments, such as minimal installation or RHEL instances deployed from pre-built images provided by the Red Hat Certified Cloud and Service Providers (CCSP), might not install the insights-client. Installation steps vary slightly depending on your RHEL version and installation type, either standard or minimal.
After you install the insights-client, register your system. Registering your system might require activation keys. For more information about registering systems and activation keys, see: Getting started with activation keys on the Hybrid Cloud Console.
1.3.1. Install the insights-client on an existing system managed by Red Hat Cloud Access Copy linkLink copied to clipboard!
You can install insights-client on an existing Red Hat Enterprise Linux (RHEL) system connected to Red Hat Cloud Access to get automated system health checks and other services to find and fix problems before they cause problems with systems in your organization.
Additional resources
1.3.2. Install insights-client on an existing system managed by Red Hat Update Infrastructure Copy linkLink copied to clipboard!
You can install the insights-client on an existing, cloud marketplace-purchased Red Hat Enterprise Linux system that is managed by Red Hat Update Infrastructure (RHUI) to get automated system health checks and other services to find and fix issues before they cause problems with systems in your organization.
Prerequisites
- Root-level access for the system.
Procedure
Enter the following command to install the current version of the insights-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 insights-client:
insights-client --version
[root@server ~]# insights-client --versionCopy to Clipboard Copied! Toggle word wrap Toggle overflow
1.4. Client command-line interface and configuration interaction Copy linkLink copied to clipboard!
The insights-client runs automatically based on 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 command line 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 insights-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 commands entered on the command line or the client configuration files.
Chapter 2. Connect and register systems to Red Hat services Copy linkLink copied to clipboard!
To register your RHEL system to Red Hat services, you must establish your system’s identity in the Hybrid Cloud Console. One of the ways that you can do that is by using the recommended rhc client.
2.1. System registration with the rhc client Copy linkLink copied to clipboard!
Before configuring your system to connect using the rhc client, review the configuration in Red Hat Hybrid Cloud Console > Red Hat Lightspeed > Inventory > System Configuration > Remote Host Configuration (RHC). The remote host configuration manager settings affect how Red Hat Lightspeed remediations function with the system.
2.2. Register RHEL 10 systems Copy linkLink copied to clipboard!
You can register your RHEL 10 system by using the remote host configuration (rhc) client to connect to Red Hat services with the default feature levels.
This connection enables all available features: access to Red Hat content, analytics for Red Hat Lightspeed, and remote management. You can also disable any of the default feature levels.
Prerequisites
- You are logged in to the system as root or have sudo permissions.
- You have an activation key and an organization ID to register your system. For more information, see the Red Hat Knowledgebase solution, Creating Red Hat Customer Portal Activation Keys.
- You have completed the steps to Manage system connectivity and networking.
- (Optional) You have completed steps to Minimize data collection and control data privacy.
Procedure
- Open a terminal window.
To register the system with the default feature levels and ensure the system can execute remediations and tasks from Red Hat Lightspeed, enter the following commands:
rhc connect --activation-key=<activation_key> --organization=<organization_ID>
# rhc connect --activation-key=<activation_key> --organization=<organization_ID>Copy to Clipboard Copied! Toggle word wrap Toggle overflow dnf install -y rhc-worker-playbook
# dnf install -y rhc-worker-playbookCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: To disable any of the features while you register your system, enter the following command:
rhc connect --activation-key=<activation_key_name> --organization=<organization_ID> --disable-feature <feature>
# rhc connect --activation-key=<activation_key_name> --organization=<organization_ID> --disable-feature <feature>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Where you can replace feature with:
- content - Provides access to Red Hat CDN repositories.
- analytics - Enables data collection for Red Hat Lightspeed.
remote-management - Establishes an additional MQTT network connection to Red Hat services for remote execution of certain actions from the Red Hat Hybrid Cloud Console.
Example
To register your system with remote management disabled, but allow the system access to RHEL content and data for Red Hat Lightspeed analytics, enter:
rhc connect --activation-key=<activation_key_name> --organization=<organization_ID> --disable-feature remote-management
# rhc connect --activation-key=<activation_key_name> --organization=<organization_ID> --disable-feature remote-managementCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
To confirm the active features when registering with default options:
rhc status
# rhc statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow Connection status for hostname.example.com: ✓ Connected to Red Hat Subscription Manager ✓ Content ... Red Hat repository file generated ✓ Analytics ... Connected to Red Hat Lightspeed ✓ Remote Management ... The yggdrasil service is active
Connection status for hostname.example.com: ✓ Connected to Red Hat Subscription Manager ✓ Content ... Red Hat repository file generated ✓ Analytics ... Connected to Red Hat Lightspeed ✓ Remote Management ... The yggdrasil service is activeCopy to Clipboard Copied! Toggle word wrap Toggle overflow To confirm the active features with
remote-managementdisabled:rhc status
# rhc statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow Connection status for hostname.example.com: ✓ Connected to Red Hat Subscription Manager ✓ Content ... Red Hat repository file generated ✓ Analytics ... Connected to Red Hat Lightspeed [ ] Remote Management ... The yggdrasil service is inactive
Connection status for hostname.example.com: ✓ Connected to Red Hat Subscription Manager ✓ Content ... Red Hat repository file generated ✓ Analytics ... Connected to Red Hat Lightspeed [ ] Remote Management ... The yggdrasil service is inactiveCopy to Clipboard Copied! Toggle word wrap Toggle overflow ImportantTo use remote management, you must enable the
yggdrasildaemon. Whenyggdrasilis inactive, remote management is also inactive.
2.2.1. Customize feature levels for RHEL 10 systems Copy linkLink copied to clipboard!
If you have a RHEL 10 system, you can use remote host configuration (rhc) to set feature levels when registering with the Red Hat Hybrid Cloud Console.
By default, rhc connects your systems with the remote management feature level. This feature level includes access to RHEL content, analytics for Red Hat Lightspeed, and remote management (remediations and tasks services). If you want to opt out of any of these features, you can disable them when you register your systems.
Customizing feature levels functionality is only available with Red Hat Enterprise Linux version 10.
See the following table for more details about feature levels:
| Feature Level | Feature Level Name in the Command Line Interface | Description |
|---|---|---|
| Access to Red Hat content | Content | This feature level provides access to content in the Red Hat Content Delivery Network (CDN). With this feature level enabled, you can install and update packages. |
| Analytics for Red Hat Lightspeed | Analytics | This feature level collects data from your system using the insights-client and sends it to the Red Hat Hybrid Cloud Console. Then, Red Hat Lightspeed analyzes your data and returns recommendations. You must have the content feature enabled to use the analytics feature. |
| Remote Management (Default) | remote-management | With this feature level enabled, you can use the remediations and tasks services. You must have the content and analytics features enabled to use the remote management feature. |
2.3. Register RHEL 9 systems Copy linkLink copied to clipboard!
If you have a Red Hat Enterprise Linux version 9 system, you can use remote host configuration (rhc) to register your system:
Prerequisites
- You are logged in to the system as root or have sudo permissions.
- You have an activation key and an organization ID to register your system.
- You have completed the steps to Manage system connectivity and networking.
- (Optional) You have completed steps to Minimize data collection and controlling data privacy.
Procedure
Open your command-line interface (CLI), and run the following commands on your client system:
rhc connect --activation-key=<activation_key_name> --organization=<organization_ID>
# rhc connect --activation-key=<activation_key_name> --organization=<organization_ID>Copy to Clipboard Copied! Toggle word wrap Toggle overflow dnf install -y rhc-worker-playbook
# dnf install -y rhc-worker-playbookCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Enter the following command in your CLI:
rhc status
# rhc status
If the procedure is successful, you will see the following output:
Connection status: ✓ Connected to Red Hat Lightspeed ✓ Connected to Red Hat Subscription Manager ✓ The remote host configuration daemon is active
Connection status: ✓ Connected to Red Hat Lightspeed ✓ Connected to Red Hat Subscription Manager ✓ The remote host configuration daemon is activeCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.4. Register RHEL 8 systems Copy linkLink copied to clipboard!
If you have a Red Hat Enterprise Linux 8 system, you can use remote host configuration (rhc) to register your system.
Prerequisites
- RHEL version is 8.6 or later.
- You are logged in to the system as root or have sudo permissions.
- You have an activation key and an organization ID to register your system.
- You have completed the steps to Manage system connectivity and networking.
- (Optional) You have completed steps to Minimize data collection and control data privacy.
Procedure
Open your command-line interface (CLI), and run the following commands on your client system:
rhc connect --activation-key=<activation_key_name> --organization=<organization_ID>
# rhc connect --activation-key=<activation_key_name> --organization=<organization_ID>Copy to Clipboard Copied! Toggle word wrap Toggle overflow dnf install -y rhc-worker-playbook
# dnf install -y rhc-worker-playbookCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run the following command:
rhc status
# rhc statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the registration is successful, you will see the following output:
Connection status: ✓ Connected to Red Hat Subscription Manager ✓ Connected to Red Hat Lightspeed ✓ The remote host configuration daemon is active
Connection status: ✓ Connected to Red Hat Subscription Manager ✓ Connected to Red Hat Lightspeed ✓ The remote host configuration daemon is activeCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional Resources
2.5. Handle legacy and conversion registrations Copy linkLink copied to clipboard!
Register and connect RHEL 8.7 and earlier systems, or convert specialized systems like CentOS 7 to RHEL, by using legacy clients (subscription-manager, insights-client). You can still ensure all your non-standard hosts are reporting to Red Hat Services without using the rhc client.
2.5.1. Considerations for using the legacy client for registration Copy linkLink copied to clipboard!
The main reason to use the legacy client to register a RHEL system to Red Hat Services is to have more control over the features and the data collected from the system. With RHEL 10.0, the rhc client has a concept of “feature level” that allows it to control the level of information collected from the system. However, for RHEL 8.0 and RHEL 9.0, achieving a registration by using the rhc client enables all the features with no command-line options needed to make adjustments. Using only the subscription-manager or a combination of subscription-manager and insights-client remains a supported route.
2.5.2. Register your legacy RHEL systems using subscription-manager and insights-client Copy linkLink copied to clipboard!
To register a system running a version of RHEL 8.7 or earlier, or to manually control feature levels by using Red Hat Lightspeed, use the following two-step process:
- Register to Red Hat Subscription Manager (RHSM) with the subscription-manager client.
- Register the system with insights-client.
Prerequisites
- You have access to the system as root or have sudo permissions.
- You have an activation key and an organization ID to register your system.
- You have completed the steps to Manage system connectivity and networking.
- (Optional) You have completed steps to Minimize data collection and control data privacy.
Procedure
To register a system running Red Hat Enterprise Linux version 7 or 8, use an activation key and your Organization ID to register with RHSM.
subscription-manager register --activationkey=_activation_key_name_ --org=_organization_ID_
# subscription-manager register --activationkey=_activation_key_name_ --org=_organization_ID_Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the
insights-clientcommand to complete registration for the Red Hat Lightspeed service.insights-client --register
# insights-client --registerCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.5.3. Register and convert a CentOS Linux 7 system to a RHEL 7 system Copy linkLink copied to clipboard!
To convert a CentOS Linux 7 system to a RHEL, first register it with Red Hat to connect to Red Hat Lightspeed. After completing backups and other prerequisites, perform a pre-conversion analysis to identify risks for the conversion. You can then use the Red Hat Lightspeed conversion task for converting the system to a fully-supported RHEL 7 environment.
2.6. System remediation and automation with Red Hat Lightspeed Copy linkLink copied to clipboard!
To prepare your RHEL system to automatically run tasks and remediation plans, you must use both the rhc client and the insights-client. Together, these tools allow Red Hat Lightspeed to automatically generate and execute Ansible Playbooks to address identified issues. To enable your system with automated remediation, install and activate core components, complete system registration and enable remote management with the yggdrasil daemon. Your systems can directly use tasks and remediation playbooks from the Red Hat Lightspeed Automation Toolkit after registration.
Chapter 3. Unregister systems Copy linkLink copied to clipboard!
Unregister your systems to stop uploading data to Red Hat services. You can use the insights-client to disconnect specifically from Red Hat Lightspeed, or use the rhc client client to perform a comprehensive unregistration from both Red Hat Lightspeed and the Red Hat Customer Portal.
3.1. Unregister your system with Red Hat Lightspeed Copy linkLink copied to clipboard!
You can unregister your system with Red Hat Lightspeed. When you do so, your system information is no longer uploaded to Red Hat Lightspeed.
Prerequisites
- Root-level access to your system.
- Your system is registered with Red Hat Lightspeed.
Procedure
Enter the
insights-clientcommand with the--unregisteroption.insights-client --unregister
[root@rhlightspeed]# insights-client --unregisterCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Enter the following command to confirm the status and verify that the system has been successfully unregistered:
insights-client --status
[root@rhlightspeed]# insights-client --statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the command is successful, you will see the following output:
This host is unregistered.
This host is unregistered.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2. Re-register your system with Red Hat Lightspeed Copy linkLink copied to clipboard!
Re-registering a system is not a recommended practice because it may lead to duplicate host entries in the Red Hat Lightspeed inventory service. If a re-registration of the system is needed, using the correct steps to unregister and register the system again helps to prevent duplicate host entries in the Red Hat Lightspeed inventory service. One of the main reasons you might need to re-register a system is to change the feature level associated with a registered RHEL 10 system.
If you are a Red Hat Satellite user and you plan to upgrade or rebuild your Satellite system by doing a fresh install, you must re-register that system in Red Hat Lightspeed. Ensure that you unregister the system in Red Hat Lightspeed before you begin the upgrade. After you have reinstalled the Satellite system, register it again with the insights-client. Otherwise, you might see duplicate host entries or other unexpected results.
To re-register a system in Red Hat Lightspeed, use the insights-client --unregister and --register commands.
Prerequisites
You have completed the following steps on your system:
- Logged in with root-level permissions
- Installed the insights-client
Procedure
On the command line, enter the
insights-clientcommand with the--unregisteroption.insights-client --unregister
[root@rhlightspeed]# insights-client --unregisterCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the
insights-clientcommand with the--registeroption.insights-client --register
[root@rhlightspeed]# insights-client --registerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verification
Successfully re-registering a system by using the
insights-clientcommand, creates a new Red Hat Lightspeed profile, and results in the display of following output in your terminal:Successfully uploaded report for <machine name> View the Red Hat Lightspeed console at https://console.redhat.com/insights/
[root@rhlightspeed]# Successfully uploaded report for <machine name> View the Red Hat Lightspeed console at https://console.redhat.com/insights/Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.3. Manage feature levels after rhc registration for RHEL 10 systems Copy linkLink copied to clipboard!
If you already registered a RHEL 10 system and want to change its feature levels, you have two options:
- Change features manually without using the rhc client commands that are available only during the initial registration process.
- Unregister and then register the system again with the feature levels that you want.
3.3.1. Change feature levels manually Copy linkLink copied to clipboard!
You cannot change the feature level by using the rhc client after the initial registration phase is completed. If you already registered a system and want to change the feature level, you must manually enable and disable features. For example, to change how a system is managed remotely, manually enable or disable the remote management feature.
Prerequisites
- You have logged in to the system as root or have sudo permissions.
Procedure
To enable the remote management feature manually:
Enable the insights-client by entering the following command:
insights-client --register
# insights-client --registerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install the
rhc-worker-playbookby entering the following command:dnf install -y rhc-worker-playbook
# dnf install -y rhc-worker-playbookCopy to Clipboard Copied! Toggle word wrap Toggle overflow Start and enable the
yggdrasilservice by entering the following commands:systemctl start yggdrasil systemctl enable yggdrasil
# systemctl start yggdrasil # systemctl enable yggdrasilCopy to Clipboard Copied! Toggle word wrap Toggle overflow
To disable the remote management service manually:
Enter the following command to stop the
yggdrasilservice:systemctl stop yggdrasil
# systemctl stop yggdrasilCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the following command to disable the
yggdrasilservice:systemctl disable yggdrasil
# systemctl disable yggdrasilCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the
yggdrasilservice is active and enabled, or inactive and disabled by running the following on a command line:systemctl status yggdrasil
# systemctl status yggdrasilCopy to Clipboard Copied! Toggle word wrap Toggle overflow The log message indicates that the service is active or inactive.
Additional resources
3.3.2. Re-register to change feature levels Copy linkLink copied to clipboard!
You might need to change the feature levels on a system to do a something such as restricting remote access. One of the ways to change the feature level on an already registered system is to unregister and then re-register the system by using the rhc client command.
It is important to properly unregister the system before you re-register. Re-registering a system will delete your customized configuration settings and also create a duplicate system record in your Inventory > Systems.
Disconnecting by using the rhc client unregisters your system from both the Red Hat Customer Portal and Red Hat Lightspeed and disables the yggdrasil service.
Prerequisites
- You have logged in to the system as root or have sudo permissions
- You have an activation key and an organization ID to register your system
Procedure
On the command line, enter the following command to unregister the system:
rhc disconnect
# rhc disconnectCopy to Clipboard Copied! Toggle word wrap Toggle overflow - After you unregister the system, re-register the system with the needed feature level enabled. For more information see Registering Red Hat Enterprise Linux 10 systems.
Chapter 4. Manage system operations and configuration settings Copy linkLink copied to clipboard!
To ensure that your RHEL systems are maintaining connectivity and reporting accurate data to Red Hat Lightspeed, perform routine maintenance by using both rhc and insights-client. With rhc and insights-client, you can edit global settings, adjust connection settings, and change features after registering systems to Red Hat Lightspeed.
4.1. Use remote host configuration manager Copy linkLink copied to clipboard!
You can use the rhc client using remote host configuration manager to control the global remote host configuration (rhc) settings for Red Hat Enterprise Linux systems connecting to Red Hat Lightspeed. You can enable or disable the execution of remediations playbooks, which affects the execution of the remediation plan. To access the remote host configuration manager, log in to the Red Hat Hybrid Cloud Console as a user with RHC user privileges. The remote host configuration manager is located at Red Hat Hybrid Cloud Console > Red Hat Lightspeed > Inventory > System Configuration > Remote Host Configuration (RHC).
4.1.1. Edit global rhc manager settings for connected systems Copy linkLink copied to clipboard!
You can use the remote host configuration manager to edit remote host configuration connection settings to enable and disable permissions to run remediation playbooks on rhc-connected systems.
Prerequisites
- You must be logged into the Red Hat Hybrid Cloud Console.
- You must have RHC administrator privileges.
Procedure
- Navigate to Red Hat Hybrid Cloud Console > Red Hat Lightspeed > Inventory > System Configuration > Remote Host Configuration (RHC) to view and edit the current settings.
4.1.2. Maintain a connection between remote host configuration and Red Hat Hybrid Cloud Console Copy linkLink copied to clipboard!
Maintain a strong connection between the remote host configuration (rhc) and Red Hat Hybrid Cloud Console, by optionally setting the recommended option for a 10-second reconnect delay. This involves adding the line, mqtt-reconnect-delay = "10s" to the /etc/rhc/config.toml file and restarting the rhcd.service to ensure uninterrupted remote management and monitoring.
Prerequisites
- You have root-level access to the system or sudo permissions.
- You have an rhc version that is between 0.2.4 and version 0.3.
Procedure
-
Open the following file:
/etc/rhc/config.toml -
Add this option to the file
mqtt-reconnect-delay = "10s" - Save your changes.
Type the following command in the terminal:
systemctl restart rhcd.service
# systemctl restart rhcd.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Type the following command in the terminal:
systemctl status rhcd.service
# systemctl status rhcd.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the command completed successfully, you should see the following statement returned:
`Active: active (running)`
# `Active: active (running)`Copy to Clipboard Copied! Toggle word wrap Toggle overflow The statement also includes a timestamp.
4.2. Manage system connectivity and networking Copy linkLink copied to clipboard!
To successfully connect your RHEL systems to Red Hat Lightspeed for registration and data transfer, make sure your network configuration and firewall allow necessary outbound traffic. If your network uses a proxy, configure your RHEL systems to use the proxy for outbound connections. Review the required prerequisites and configurations to configure your network correctly and ensure your firewall is open. This helps ensure your RHEL clients can register and send data to Red Hat Lightspeed using the client tools.
Additionally, to use remote management capabilities, verify that connections to required Red Hat systems on standard ports and the MQTT port are open.
4.2.1. The subscription-manager destinations and ports Copy linkLink copied to clipboard!
For subscription-manager, the system must be able to reach the following destination and TCP ports:
- subscription.rhn.redhat.com:443 (https)
- subscription.rhsm.redhat.com:443 (https)
- cdn.redhat.com:443 (https)
- *.akamaiedge.net:443 (https)
- *.akamaitechnologies.com:443 (https)
4.2.2. The insights-client destinations and ports Copy linkLink copied to clipboard!
For Red Hat Lightspeed to collect data, the system must be able to reach the following destination and TCP ports:
- api.access.redhat.com:443 (https)
- cert-api.access.redhat.com:443 (https)
4.2.3. The rhc client daemon communication with MQTT Copy linkLink copied to clipboard!
For the rhc daemon (rhcd) to communicate with the MQTT message broker, the system must be able to reach reach connect.cloud.redhat.com:443 (https).
- connect.cloud.redhat.com:443 (https)
4.2.4. Add a proxy for rhc Copy linkLink copied to clipboard!
When you run rhc on your RHEL systems, the system attempts to establish connections to several Red Hat endpoints. If these are blocked, the registration will fail, so you will need to add a proxy for rhc to connect to Red Hat.
Prerequisites
- You have root-level access to your system
Procedure
-
On a command line, run the following commands to add a proxy for
rhcto use to connect to Red Hat. Use the following commands to add a proxy for
rhcto use to connect to Red Hat.mkdir -p /etc/systemd/system/rhcd.service.d
# mkdir -p /etc/systemd/system/rhcd.service.dCopy to Clipboard Copied! Toggle word wrap Toggle overflow cat /etc/systemd/system/rhcd.service.d/proxy.conf
# cat /etc/systemd/system/rhcd.service.d/proxy.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow [Service] Environment=HTTPS_PROXY=http://proxy.corp.com:8888
[Service] Environment=HTTPS_PROXY=http://proxy.corp.com:8888Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl daemon-reload
# systemctl daemon-reloadCopy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl restart rhcd
# systemctl restart rhcdCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.3. Manage system display and status Copy linkLink copied to clipboard!
To maintain an accurate inventory and ensure reliable management of your Red Hat Enterprise Linux (RHEL) systems, you can manage system identity and connection status. Performing management tasks such as, renaming a host, checking the client version, and unregistering or re-registering systems helps prevent duplicate entries in your inventory, which can lead to confusion, inaccurate reporting, and potential configuration errors.
4.3.1. Change the host display name Copy linkLink copied to clipboard!
You can change the host display name as it appears in the graphical user interface (GUI) to help streamline identifying your inventory, meet organizational naming conventions, or other reasons. Make this change either when you register the system with Red Hat Lightspeed, or after registration. If you do not assign a display name when you register the system, Red Hat Lightspeed uses the value in /etc/hostname. Changing the display name is optional, so you need to decide if you want to use a display name in addition to the default hostname.
Using the insights-client command to set the display name takes effect immediately, but does not run the client.
If you obfuscate the hostname, the hostname configured in /etc/hostname is obfuscated. Assign a display name so that you can identify a host even when its hostname is obfuscated.
Prerequisites
- Root-level access to the system.
Procedure
Enter the
insights-clientcommand with the--display-nameoption and specify a display name.insights-client --display-name ITC-4 System display name changed from None to ITC-4
[root@rhlightspeed]# insights-client --display-name ITC-4 System display name changed from None to ITC-4Copy to Clipboard Copied! Toggle word wrap Toggle overflow To create a display name that contains spaces, use double quotes.
insights-client --display-name "ITC-4 B9 4th floor" System display name changed from None to ITC-4 B9 4th floor
[root@rhlightspeed]# insights-client --display-name "ITC-4 B9 4th floor" System display name changed from None to ITC-4 B9 4th floorCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional resources:
4.3.2. Display the client version Copy linkLink copied to clipboard!
You can display the insights-client version and client core version.
Prerequisites
- Root-level access to your system.
Procedure
Enter the
insights-clientcommand with the--versionoption.insights-client --version Client: 3.0.6-0 Core: 3.0.121-1
[root@rhlightspeed]# insights-client --version Client: 3.0.6-0 Core: 3.0.121-1Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional resources
4.4. Manage schedule and rule updates for the insights-client Copy linkLink copied to clipboard!
By default, the insights-client runs every 24 hours. The timers in the default schedules are random so that all systems do not run the client at the same time. You can disable, enable, or modify the schedule to control when the system performs data collection, although changes from the default might affect performance. To ensure that host information remains up-to-date extending the timers beyond 24 hours is not recommended.
4.4.1. Disable the insights-client schedule Copy linkLink copied to clipboard!
You must disable the client schedule before you can change the default insights-client settings and create a new schedule. The procedure you use to disable the insights-client schedule depends on your Red Hat Enterprise Linux and client versions.
Prerequisites
- Root-level access to your system
The insights-client version 3.x and later
-
NOTE: The
--no-scheduleoption is deprecated in Client 3.x and later.
-
NOTE: The
Procedure
Enter the
insights-clientcommand with the--versionoption to verify that you have the required client version installed.insights-client --version Client: 3.0.6-0 Core: 3.0.121-1
[root@rhlightspeed]# insights-client --version Client: 3.0.6-0 Core: 3.0.121-1Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the
insights-clientcommand with the--disable-scheduleoption to disable the client schedule.insights-client --disable-schedule
[root@rhlightspeed]# insights-client --disable-scheduleCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.4.2. Enable the insights-client schedule Copy linkLink copied to clipboard!
When you enable the client schedule, it runs using its default settings. If you change the schedule, those settings take precedence.
When you run insights-client from the command line, insights-client runs using the settings you specify for only that session. When the next scheduled run takes place, it uses the default settings.
Prerequisites
- Root-level access to your system.
- The client schedule is disabled.
- (Optional) You modified the default schedule.
Procedure
Verify the client version on your system by entering the
insights-clientcommand with the--versionoption.insights-client --version Client: 3.0.6-0 Core: 3.0.121-1
[root@rhlightspeed]# insights-client --version Client: 3.0.6-0 Core: 3.0.121-1Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the
insights-clientcommand with the--enable-scheduleoption to enable the client schedule.insights-client --enable-schedule
[root@rhlightspeed]# insights-client --enable-scheduleCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.4.3. Modify the insights-client schedule by using the systemd service Copy linkLink copied to clipboard!
You can change when the insights-client runs by modifying the schedule. The method that you use depends on the RHEL release and client version that your system is running. For Red Hat Enterprise Linux 7.5 and later, you can update the systemd settings and the insights-client.timer file.
If you update the schedule using cron or the systemd.timer, those customized settings take precedence. However, if you change settings using the insights-client on the command line, the settings apply only to that session. When the next scheduled run takes place, the client uses your persistent customized settings.
For Red Hat Enterprise Linux 7.4 and earlier, use cron to modify the system schedule. For more information about using cron, see the Red Hat Knowledgebase solution, What is cron and how is it used?.
Prerequisites
- You have root-user access to your system.
Procedure
To edit the settings in the
insights-client.timerfile, enter thesystemctl editcommand and the file name.systemctl edit insights-client.timer
[root@rhlightspeed]# systemctl edit insights-client.timerCopy to Clipboard Copied! Toggle word wrap Toggle overflow This action opens an empty file with the default system editor, on RHEL 6, 7, and 8. On RHEL 9 and later, running the command opens a file with a template that includes the original
systemdservice file as a reference.Enter different settings to modify the schedule. The values in this example are the default settings for
systemd.[Timer] OnCalendar=daily RandomizedDelaySec=14400
[Timer] OnCalendar=daily RandomizedDelaySec=14400Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the
insights-clientschedule.insights-client --enable-schedule
[root@rhlightspeed]# insights-client --enable-scheduleCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
For more information, refer to the man pages for
systemctl(1),systemd.timer(5), andsystemd.time(7)to understandsystemd
-
For more information, refer to the man pages for
4.4.4. Enable automatic rule updates for Red Hat Lightspeed Copy linkLink copied to clipboard!
You can re-enable the automatic collection rule updates for Red Hat Lightspeed, if you previously disabled updates. By default, automatic rule update is enabled. Re-enable these updates to ensure that your system continues to benefit from the latest security and performance analysis provided by Red Hat Lightspeed.
Prerequisites
- Root-level access to your system.
- Automatic rule collection is disabled.
Procedure
-
Open the
/etc/insights-client/insights-client.conffile with an editor. Locate the line that contains the following:
auto_update=False
auto_update=FalseCopy to Clipboard Copied! Toggle word wrap Toggle overflow Change
FalsetoTrue.auto_update=True
auto_update=TrueCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Save and close the
/etc/insights-client/insights-client.conffile.
4.4.5. Disable automatic rule updates Copy linkLink copied to clipboard!
You can disable the automatic collection rule updates for Red Hat Lightspeed, but it is not a recommended action to take. Disabling the automatic rule updates puts your systems at risk of using outdated rule definition files and not getting the most recent validation or updates from Red Hat’s hosted services.
Prerequisites
- Root-level access to your system.
- Automatic rule updates are enabled.
Procedure
-
Open the
/etc/insights-client/insights-client.conffile with an editor. Locate the line that contains
#auto_update=True
#auto_update=TrueCopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the
#and changeTruetoFalse.auto_update=False
auto_update=FalseCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Save and close the
/etc/insights-client/insights-client.conffile.
4.4.6. Refresh the package cache for systems managed by Red Hat Satellite Copy linkLink copied to clipboard!
You can use the --build-packagecache option to provide accurate reporting for applicable updates on Satellite-managed systems. This option rebuilds the yum/dnf package caches for insights-client, and creates a refreshed list of applicable updates for the system.
You can run the command manually to rebuild the package caches immediately, or you can edit the client configuration file, /etc/insights-client/insights-client.conf, to rebuild the package caches automatically each time the system checks in to Red Hat Lightspeed.
Chapter 5. Minimize data collection and control data privacy Copy linkLink copied to clipboard!
To minimize data collection and enhance data privacy, configure data obfuscation and redaction for your Red Hat systems. To obfuscate, use client tools to mask sensitive and unique identifiers like IP addresses and hostnames. To redact, use client tools to exclude specific file content or command output. Finally, verify the effects of these configurations by inspecting the contents of the generated insights archive file before and after you upload.
5.1. System facts Copy linkLink copied to clipboard!
A data collector is an application or service that regularly sends host information, updates, or system profile data to Red Hat Lightspeed inventory. insights-client is a data collector for Red Hat Lightspeed.
System facts are the metadata that data collectors collect about your RHEL systems. These facts describe runtime configuration, system health, and system performance. The insights-client uses the system facts it collects to populate inventory data in Red Hat Lightspeed and to update existing data. Red Hat Lightspeed also uses system facts to analyze system performance and to create recommendations for services such as advisor or remediations.
5.2. Data obfuscation Copy linkLink copied to clipboard!
IP addresses, Media Access Control (MAC) addresses, and hostnames uniquely define devices on the internet. Red Hat Lightspeed has optional controls for excluding the IP address, MAC address, and hostname from the data file transmitted to Red Hat and to obfuscate the values within the user interface. This helps to protect the privacy of your systems and users by masking sensitive information.
5.2.1. Data obfuscation considerations and limitations Copy linkLink copied to clipboard!
Several client tools and products from Red Hat work together to provide a full range of functionalities. Depending on your setup, different tools can collect information from your systems at the same time. Some of the tools have built-in features for configuring obfuscation or redaction. To achieve the desired state of data privacy, you must take many aspects into consideration, such as the feature-level requirements and how the system consumes the content.
Directly connected systems. It is not possible to achieve a true obfuscation or redaction of the system information because the subscription-manager must remain enabled on the system and continues to report data from the system regardless of how insights-client or rhc are configured.
You cannot prevent the collection of certain key system information such as the hostname, IP or MAC addresses. For directly connected systems, even configuring data obfuscation in the insights-client will also not achieve the desired results.
Systems connected to a Red Hat Satellite or Capsule. It is not possible to fully prevent collection of key system information from the systems (hostname, IP, MAC addresses), but it is possible to adjust the feature level and to configure Satellite so that the data is never sent to Red Hat.
5.2.2. Configuring data obfuscation on the system Copy linkLink copied to clipboard!
Only systems registered to a Red Hat Satellite by using a combination of configured client tools and server settings in Satellite can fully obfuscate data. The insights-client obfuscation feature uses a Python data cleaning process which you can optionally enable to replace the hostname, IP address, or MAC address with preset values when the tool processes the Red Hat Lightspeed archive. The processed archive file containing the obfuscated values is then sent to Red Hat Lightspeed. Obfuscation is disabled by default.
- The Python data cleaning process automatically generates the masked values. You cannot choose the values for obfuscation.
- The Red Hat Lightspeed compliance service uses OpenSCAP tools to generate compliance reports based on information from the host system. The collaboration with OpenSCAP prevents the compliance service’s ability to completely obfuscate or redact hostname and IP address data. Also, host information is sent to Red Hat Lightspeed when a compliance data collection job launches on the host system. Red Hat Lightspeed is working to improve obfuscation options for host information.
Additional resources
5.2.3. Obfuscate IPv4 IP addresses Copy linkLink copied to clipboard!
If your hosts use IPv4 IP addresses, you can enable obfuscation of this data in the archive file before it is sent to Red Hat Lightspeed by setting an option in the insights-client configuration file. This helps to protect the privacy of your systems and users by masking sensitive information.
When you enable obfuscation, the original IP address of the host is replaced with a generated value in the archive file. This obfuscated value is used in the Red Hat Hybrid Cloud Console UI, logs, and any archive data files that Red Hat collects. However, you will still see the original IP address in the command-line output of some insights-client commands.
The obfuscation process uses a Python data cleaning process to generate a unique value for each host. You cannot configure the value provided for obfuscation. You also cannot obfuscate or select the portion of the host IP address to obfuscate.
Prerequisites
If you are using Red Hat Satellite to manage clients and register them on
console.redhat.com, you must also configure the Red Hat Cloud settings before you can enable obfuscation in Red Hat Lightspeed:- In the Satellite web UI, navigate to Administer > Settings > Red Hat Cloud and enable the required obfuscation settings that apply to your environment.
Procedure
-
Open the
/etc/insights-client/insights-client.conffile with an editor. Locate the following section:
# Specify which will be obfuscated in the data collection, empty by default, and supported options are: ipv4, ipv6, hostname, mac (comma-separated list) obfuscation_list=
# Specify which will be obfuscated in the data collection, # empty by default, and supported options are: ipv4, ipv6, hostname, mac # (comma-separated list) # obfuscation_list=Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the preceding hash (
#) character, beforeobfuscation_list=, and add the following line:obfuscation_list=ipv4
obfuscation_list=ipv4Copy to Clipboard Copied! Toggle word wrap Toggle overflow If your configuration file contains the older
obfuscate=Trueorobfuscate=FalseRed Hat Lightspeed obfuscation setting, remove that line of configuration.ImportantRemove deprecated
obfuscateandobfuscate_hostnameoptions from the configuration file. If your configuration file contains bothobfuscation_listand deprecated options, theobfuscation_listtakes precedence and insights-client displays a warning message in the output.-
Save and close the
/etc/insights-client/insights-client.conffile.
Result
When obfuscation is successfully enabled, the original IPv4 address is masked in the console UI, logs, and in any archive data files that Red Hat collects, as shown in the following example.
After you enable obfuscation, you will continue to see the original IPv4 address in the command-line output of some insights-client commands.
The following example shows an original host system IP address:
192.168.0.24
192.168.0.24Copy to Clipboard Copied! Toggle word wrap Toggle overflow The following example shows an obfuscated host IP address
10.230.230.1
10.230.230.1Copy to Clipboard Copied! Toggle word wrap Toggle overflow The following screenshot provides an example of an obfuscated IPv4 IP address in the Red Hat Hybrid Cloud Console UI:
When you enable obfuscation on several systems, the same obfuscated IP address gets generated. Therefore, in the example scenario provided, when you search or filter by IP address in the Red Hat Lightspeed UI on the Hybrid Cloud Console you might see several instances of 10.230.230.1. This is because the Python data cleaning process that the Red Hat Lightspeed obfuscation feature uses, can generate the same obfuscated IP address in the archive file.
5.2.4. Obfuscate IPv6 IP addresses Copy linkLink copied to clipboard!
If your hosts use IPv6 IP addresses, you can enable obfuscation of this data in the archive file before it is sent to Red Hat Lightspeed by setting an option in the insights-client configuration file. This helps to protect the privacy of your systems and users by masking sensitive information.
When you enable obfuscation, the original IP address of the host is replaced with a generated value in the archive file. This obfuscated value is used in the Red Hat Hybrid Cloud Console UI, logs, and any archive data files that Red Hat collects. However, you will still see the original IP address in the command-line output of some insights-client commands.
The obfuscation process uses a Python data cleaning process to generate a unique value for each host. You cannot configure the value provided for obfuscation. You also cannot obfuscate or select the portion of the host IP address to obfuscate.
Prerequisites
If you are using Red Hat Satellite to manage clients and register them on
console.redhat.com, you must also configure the Red Hat Cloud settings before you can enable obfuscation in Red Hat Lightspeed:- In the Satellite web UI, navigate to Administer > Settings > Red Hat Cloud and enable the required obfuscation settings that apply to your environment.
Procedure
-
Open the
/etc/insights-client/insights-client.conffile with an editor. Locate the following section:
# Specify which will be obfuscated in the data collection, empty by default, and supported options are: ipv4, ipv6, hostname, mac (comma separated list) obfuscation_list=
# Specify which will be obfuscated in the data collection, # empty by default, and supported options are: ipv4, ipv6, hostname, mac # (comma separated list) # obfuscation_list=Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the preceding hash (
#) character, beforeobfuscation_list=, and add the following line:obfuscation_list=ipv6
obfuscation_list=ipv6Copy to Clipboard Copied! Toggle word wrap Toggle overflow If your configuration file contains the older
obfuscate=Trueorobfuscate=FalseRed Hat Lightspeed obfuscation setting, remove that line of configuration.ImportantRemove deprecated
obfuscateandobfuscate_hostnameoptions from the configuration file. If your configuration file contains bothobfuscation_listand deprecated options, theobfuscation_listtakes precedence and insights-client displays a warning message in the output.-
Save and close the
/etc/insights-client/insights-client.conffile.
Result
When obfuscation is successfully enabled, the original IPv6 address is masked in the console UI, logs, and in any archive data files that Red Hat collects, as shown in the following example.
After you enable obfuscation, you will continue to see the original IP address in the command-line output of some insights-client commands.
Example
Original host system IPv6 addresses:
ff00:f800:f801:f802::f806 ff00:f800:f801:f802:f00:f803:f804:f805 ff01::f00:f803:f804:f805
ff00:f800:f801:f802::f806 ff00:f800:f801:f802:f00:f803:f804:f805 ff01::f00:f803:f804:f805Copy to Clipboard Copied! Toggle word wrap Toggle overflow Obfuscated host IPv6 addresses:
fc47:d0f1:5ae7:e4e9::0477, fc47:d0f1:5ae7:e4e9:fee:3939:5b4a:2c55, 70f1::fee:3939:5b4a:2c55,
fc47:d0f1:5ae7:e4e9::0477, fc47:d0f1:5ae7:e4e9:fee:3939:5b4a:2c55, 70f1::fee:3939:5b4a:2c55,Copy to Clipboard Copied! Toggle word wrap Toggle overflow The following image shows a screen capture of the example obfuscated IPv6 IP addresses in the Red Hat Hybrid Cloud Console UI:
When you enable obfuscation on several systems, the same obfuscated IP address gets generated. Therefore, in the scenario provided, when you search or filter by IP address in the Red Hat Lightspeed UI on the Hybrid Cloud Console, you might see several instances of 70f1::fee:3939:5b4a:2c55. This is because the Python data cleaning process that the Red Hat Lightspeed obfuscation feature uses can generate the same obfuscated IP address in the archive file.
5.2.5. Obfuscate MAC addresses Copy linkLink copied to clipboard!
You can mask the Media Access Control (MAC) addresses of your hosts in the archive file before it is sent to Red Hat Lightspeed by enabling obfuscation.
The obfuscation process uses a Python data cleaning process to generate a unique value for each host. You cannot configure the value provided for obfuscation. You also cannot obfuscate or select the portion of the host MAC address to obfuscate.
Prerequisites
If you are using Red Hat Satellite to manage clients and register them on
console.redhat.com, you must also configure the Red Hat Cloud settings before you can enable obfuscation in Red Hat Lightspeed:- In the Satellite web UI, navigate to Administer > Settings > Red Hat Cloud and enable the required obfuscation settings that apply to your environment.
Procedure
-
Open the
/etc/insights-client/insights-client.conffile with an editor. Locate the following section:
# Specify which will be obfuscated in the data collection, empty by default, and supported options are: ipv4, ipv6, hostname, mac (comma separated list) obfuscation_list=
# Specify which will be obfuscated in the data collection, # empty by default, and supported options are: ipv4, ipv6, hostname, mac # (comma separated list) # obfuscation_list=Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the preceding hash (
#) character, beforeobfuscation_list=and add the following line:obfuscation_list=mac
obfuscation_list=macCopy to Clipboard Copied! Toggle word wrap Toggle overflow If your configuration file contains the older
obfuscate=Trueorobfuscate=FalseRed Hat Lightspeed obfuscation setting, remove that line of configuration.ImportantRemove deprecated
obfuscateandobfuscate_hostnameoptions from the configuration file. If your configuration file contains bothobfuscation_listand deprecated options, theobfuscation_listtakes precedence and insights-client displays a warning message in the output.-
Save and close the
/etc/insights-client/insights-client.conffile.
Result
When obfuscation is successfully enabled, the original MAC address is masked in the console UI, logs, and in any archive data files that Red Hat collects, as shown in the following example.
After you enable obfuscation, you will continue to see the original MAC address in the command-line output of some insights-client commands.
The following example shows an original host system MAC address:
08:00:27:7c:fc:0f
08:00:27:7c:fc:0fCopy to Clipboard Copied! Toggle word wrap Toggle overflow The following example shows the equivalent obfuscated host MAC address
1e:fb:bc:2e:4a:6d
1e:fb:bc:2e:4a:6dCopy to Clipboard Copied! Toggle word wrap Toggle overflow The following image shows a screen capture of the example obfuscated MAC address in the Red Hat Hybrid Cloud Console UI:
When you enable obfuscation on several systems, the same obfuscated MAC address gets generated. Therefore, in the example scenario provided, when you search or filter by MAC address in the Red Hat Lightspeed UI on the Hybrid Cloud Console, you might see several instances of 1e:fb:bc:2e:4a:6d. This is because the Python data cleaning process that the Red Hat Lightspeed obfuscation feature uses can generate the same obfuscated MAC address in the archive file.
5.2.6. Obfuscate hostnames Copy linkLink copied to clipboard!
To obfuscate system hostnames in Red Hat Lightspeed, mask the hostname found in the /etc/hostname file before insights-client sends data to Red Hat. As part of the obfuscation process, a Python data cleaning process generates a 12-character UUID and uses that UUID to replace the hostname in the data archive file and Hybrid Cloud Console.
An obfuscated hostname can be difficult to recognize. Setting a display name can help you to more easily identify your obfuscated hosts. The display name does not get obfuscated and displays in the Red Hat Lightspeed console UI. Only the value of /etc/hostname gets obfuscated.
Prerequisites
If you are using Red Hat Satellite to manage clients and register them on
console.redhat.com, you must also configure the Red Hat Cloud settings before you can enable obfuscation in Red Hat Lightspeed:- In the Satellite web UI, navigate to Administer > Settings > Red Hat Cloud and enable the required obfuscation settings that apply to your environment.
Procedure
-
Open the
/etc/insights-client/insights-client.conffile with an editor. Locate the following section:
obfuscation_list=
obfuscation_list=Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the following line to the
obfuscation_listsection to enable hostname obfuscation:obfuscation_list=hostname
obfuscation_list=hostnameCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteTo add multiple obfuscation options, separate them with commas. For example, to obfuscate the hostname and an IPv6 IP address, add:
obfuscation_list=hostname,ipv6
obfuscation_list=hostname,ipv6Copy to Clipboard Copied! Toggle word wrap Toggle overflow If your configuration file contains the older
obfuscate_hostname=Trueorobfuscate_hostname=FalseRed Hat Lightspeed obfuscation setting, remove that line of configuration.ImportantRemove deprecated
obfuscateandobfuscate_hostnameoptions from the configuration file. If your configuration file contains bothobfuscation_listand deprecated options, theobfuscation_listtakes precedence and insights-client displays a warning message in the output.Optional: Assign a display name to your system so that you can more easily find and manage your obfuscated hosts in the Red Hat Lightspeed console UI by adding the following line:
display_name=example-display-name
display_name=example-display-nameCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteYou can also set a display name by using the following command:
insights-client --display-name ITC-4
[root@rhlightspeed]# insights-client --display-name ITC-4Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Save and close the
/etc/insights-client/insights-client.conffile.
Result
- When obfuscation is successfully enabled, the hostname gets masked in the Red Hat Lightspeed console UI, logs, and any archive data files that Red Hat collects.
- If you configure hostname obfuscation on more than one system, you might see multiple systems with the same hostname in the Red Hat Lightspeed GUI as a result of obfuscation.
-
After you enable obfuscation, there might be instances where the original hostname displays in the command-line output of some
insights-clientcommands.
Example
The original hostname of the system in
/etc/hostname:RTP.data.center.01
RTP.data.center.01Copy to Clipboard Copied! Toggle word wrap Toggle overflow The following example shows the obfuscated
/etc/hostnameas it displays in Red Hat Lightspeed:90f4a9365ce0.example.com
90f4a9365ce0.example.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow The following screenshot of the Red Hat Hybrid Cloud Console UI shows an example of a system whose hostname and IP address are obfuscated:
5.2.7. Obfuscation in Red Hat Satellite Copy linkLink copied to clipboard!
If you are using Red Hat Satellite to manage clients and register them on the console, you must enable obfuscation in the Satellite web user interface (UI) before configuring the client system. This prevents double-obfuscation issues. For more information about enabling obfuscation in Satellite, refer to the Red Hat Cloud settings chapter of the Administering Red Hat Satellite guide.
Double obfuscation is required if you use Red Hat Satellite to manage clients and register them on console.redhat.com. This means you must enable obfuscation in both the insights-client.conf file and on the Satellite web UI.
5.3. Data redaction Copy linkLink copied to clipboard!
You can configure data redaction to remove specific content such as files, command output, or keyword patterns from the collected archive. Data redaction can be used to exclude data containing personally identifiable information (PII).
5.3.1. Data redaction considerations and limitations Copy linkLink copied to clipboard!
Do not redact the hostname or IP and MAC addresses because they are part of the canonical facts used for creating the host entry in the Red Hat Lightspeed database. To prevent these pieces of information from being collected or sent to Red Hat, instead consider the obfuscation feature in combination with using a Red Hat Satellite Server in your environment.
Directly connected systems. It is not possible to achieve a true obfuscation or redaction of system information because the subscription-manager client must remain enabled on the system and continues to report data from the system regardless of how insights-client or rhc are configured.
You cannot prevent the collection of certain key system information such as the hostname, IP or MAC addresses and having that information sent to Red Hat. For directly connected systems, even configuring data obfuscation within the insights-client will not achieve the desired results.
Systems connected to a Red Hat Satellite or Capsule. It is not possible to fully prevent collection of key system information from the systems (hostname, ip, mac addresses), but it is possible to adjust the feature level and to configure Satellite so that the data is never sent to Red Hat.
5.3.2. Data collection rules and redaction Copy linkLink copied to clipboard!
Use the Red Hat Lightspeed core collection (insights-core) to manage data collection and redaction on insights-client 3.0 and later systems. With YAML configuration files and the insights-client insights-core datasource catalog, you can specify exactly which commands and files to redact to prevent sensitive data from being uploaded.
Additional resources
- Datasources
- Displaying the client version
- YAML-style denylist configuration for insights-client(Red Hat Knowledgebase)
-
The
insights-coredatasource catalog - System Information Collected by Red Hat Lightspeed (Red Hat Knowledgebase)
- Red Hat Insights Client Core Collection Description (Red Hat Knowledgebase)
- Red Hat Lightspeed data and application security
5.3.3. Creating YAML files for redaction Copy linkLink copied to clipboard!
To redact data in Red Hat Lightspeed, you need insights-client 3.0 and the following YAML configuration files to control the redaction actions:
-
file-redaction.yaml -
file-content-redaction.yaml
You can use one or both files, depending on the content you want to redact.
To find the items to redact, insights-client uses the default configuration of the insights-client.conf configuration file to call the file-redaction.yaml and file-content-redaction.yaml files. The following example shows an example of the default configuration for redaction in the insights-client.conf file:
# Location of the redaction file for commands, files, and components #redaction_file=/etc/insights-client/file-redaction.yaml # Location of the redaction file for patterns and keywords #content_redaction_file=/etc/insights-client/file-content-redaction.yaml
# Location of the redaction file for commands, files, and components
#redaction_file=/etc/insights-client/file-redaction.yaml
# Location of the redaction file for patterns and keywords
#content_redaction_file=/etc/insights-client/file-content-redaction.yaml
You do not need to change the configuration of the insights-client.conf file, but you do need to create the YAML files.
Red Hat no longer supports the use of the remove.conf configuration file to redact data.
How the YAML files work
The /etc/insights-client/file-redaction.yaml file lists commands and files that you want to redact. A Python data cleaning process runs on the file-redaction.yaml file and redacts the listed commands and files. When the Python data cleaning process runs, it redacts the specified content before adding it to the archive file.
The /etc/insights-client/file-content-redaction.yaml defines pattern redaction and keyword replacement. For pattern redaction, the process redacts patterns or regular expressions that match those specified in the YAML file. For keyword replacement, the process replaces the specified keywords with generic identifiers.
5.3.4. Configure file redaction Copy linkLink copied to clipboard!
You can create the /etc/insights-client/file-redaction.yaml file and include a list of commands and system files that you want redacted. When the data redaction takes place, a Python data cleaning process runs, and analyzes the contents of the YAML file.
The output of the listed commands or files does not get included in the uploaded archive file.
Prerequisites
- You must be familiar with the basics of YAML syntax. For more information about YAML, see yaml.org.
- You must have root-level access to the system.
Procedure
-
Use an editor to create the
/etc/insights-client/file-redaction.yamlfile. Enter the strings,
files:andcommands:, on separate lines in the YAML file.files: commands:
files: commands:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Specify the files and commands you want to redact:
On the line following
files:, enter the files that you want to redact. Use the information in the Datasources catalog to identify which files and commands to specify. For example, if you want to redact theauditd.conffile, this is how it would look:files: - /etc/audit/auditd.conf
files: - /etc/audit/auditd.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow On the line following
commands:, enter the commands that you want to redact. Use the information in the Datasources catalog to identify which commands to specify. For example, if you want to redact theethtool -icommand, this is how it would look:commands: - ethtool_i
commands: - ethtool_iCopy to Clipboard Copied! Toggle word wrap Toggle overflow
-
Save the YAML file in
/etc/insights-client/. On the command line, run
ll file-redaction.yamlas root to verify that thefile-redaction.yamlfile permissions arerootowner only.ll file-redaction.yaml -rw-------. 1 root root 145 Sep 25 17:39 file-redaction.yaml
[root@rhlightspeed]# ll file-redaction.yaml -rw-------. 1 root root 145 Sep 25 17:39 file-redaction.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Example
The following example shows a sample file-redaction.yaml file that includes commands and files to redact. Comments, which are lines preceded by a hash symbol (#), also offer guidance to help you configure the YAML file.
Verification
To verify that your redaction file is working, you can run the insights-client command with the --no-upload option, then review the output messages on your console or terminal.
On the command line, enter the
insights-clientcommand with the--no-uploadoption, and press Return.insights-client --no-upload
[root@rhlightspeed]# insights-client --no-uploadCopy to Clipboard Copied! Toggle word wrap Toggle overflow The command runs and displays informational messages. The following example shows the redaction of the
dmesgcommand and thecluster.conffile.WARNING: Excluding data from files Starting to collect Red Hat Lightspeed data for I-HOST WARNING: Skipping command /bin/dmesg WARNING: Skipping file /etc/cluster/cluster.conf Archive saved at /var/tmp/qsINM9/rhlightspeed-ITC-4-20190925180232.tar.gz
WARNING: Excluding data from files Starting to collect Red Hat Lightspeed data for I-HOST WARNING: Skipping command /bin/dmesg WARNING: Skipping file /etc/cluster/cluster.conf Archive saved at /var/tmp/qsINM9/rhlightspeed-ITC-4-20190925180232.tar.gzCopy to Clipboard Copied! Toggle word wrap Toggle overflow The generated archive file gets saved to
/var/tmpbut the file is not uploaded to Red Hat.
5.3.5. Configure YAML pattern and keyword redaction Copy linkLink copied to clipboard!
The /etc/insights-client/file-content-redaction.yaml file redacts files using two methods: pattern redaction and keyword replacement. Pattern redaction uses either a pattern match or regular expression match. In keyword replacement, a Python data cleaning process replaces the keyword with a generic identifier.
Prerequisites
- You must be familiar with the basics of YAML syntax. Explaining YAML is beyond the scope of this procedure.
- You have root-level access to the system.
Procedure
Use an editor to create the
/etc/insights-client/file-content-redaction.yamlfile.Example
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Make sure the
file-content-redaction.yamlfile permissions are set forrootowner only.ll file-content-redaction.yaml -rw-------. 1 root root 145 Sep 25 17:39 file-content-redaction.yaml
[root@rhlightspeed]# ll file-content-redaction.yaml -rw-------. 1 root root 145 Sep 25 17:39 file-content-redaction.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.4. The insights-client archive Copy linkLink copied to clipboard!
To confirm what data the archive file sends to Red Hat, inspect the archive file. If you use obfuscation or redaction, you can inspect the archive before it uploads. If you want to preserve the archive file, you can keep it on your system.
5.4.1. Verify the archive before uploading Copy linkLink copied to clipboard!
To inspect the archive before the Python data cleaning script uploads it to Red Hat Lightspeed, run the insights-client command with the --no-upload option, and then save the file without uploading it. You can view the information that the client sends to Red Hat Lightspeed, and verify your obfuscation or redaction settings.
You can find the archive file in the /var/tmp/ directory. When insights-client completes, it displays the file name.
Prerequisites
- You have a root user access to your system
Procedure
Enter the
insights-clientcommand with the--no-uploadoption.insights-client --no-upload
[root@rhlightspeed]# insights-client --no-uploadCopy to Clipboard Copied! Toggle word wrap Toggle overflow The command displays informational messages when redaction or obfuscation is applied.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Navigate to the temporary storage directory as shown in the Archive saved at message.
cd /var/tmp/qsINM9/
[root@rhlightspeed]# cd /var/tmp/qsINM9/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Unpack the compressed
tar.gzfile.tar -xzf rhlightspeed-ITC-4-20190925180232.tar.gz
[root@rhlightspeed]# tar -xzf rhlightspeed-ITC-4-20190925180232.tar.gzCopy to Clipboard Copied! Toggle word wrap Toggle overflow The script creates a new directory that contains the files.
5.4.2. Verify the archive after uploading Copy linkLink copied to clipboard!
You can keep a copy of the archive for inspection after the Python data cleaning script uploads it to Red Hat Lightspeed, run insights-client and then save the file.
You can verify the information that the client sends to Red Hat Lightspeed, and verify your obfuscation or redaction settings.
Prerequisites
- You have root user access to your system
Procedure
Enter the
insights-clientcommand with the--keep-archiveoption as a root user:insights-client --keep-archive
[root@rhlightspeed]# insights-client --keep-archiveCopy to Clipboard Copied! Toggle word wrap Toggle overflow The command displays informational messages.
Starting to collect Red Hat Lightspeed data for ITC-4 Uploading Red Hat Lightspeed data. Successfully uploaded report from ITC-4 to account 6229994. Red Hat Lightspeed archive retained in /var/tmp/ozM8bY/rhlightspeed-ITC-4-20190925181622.tar.gz
Starting to collect Red Hat Lightspeed data for ITC-4 Uploading Red Hat Lightspeed data. Successfully uploaded report from ITC-4 to account 6229994. Red Hat Lightspeed archive retained in /var/tmp/ozM8bY/rhlightspeed-ITC-4-20190925181622.tar.gzCopy to Clipboard Copied! Toggle word wrap Toggle overflow Navigate to the temporary storage directory displayed in the
Red Hat Lightspeed archive retained inmessage.cd /var/tmp/ozM8bY/
[root@rhlightspeed]# cd /var/tmp/ozM8bY/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Unpack the compressed
tar.gzfile.tar -xzf rhlightspeed-ITC-4-20190925181622.tar.gz
[root@rhlightspeed]# tar -xzf rhlightspeed-ITC-4-20190925181622.tar.gzCopy to Clipboard Copied! Toggle word wrap Toggle overflow The script creates a new directory that contains the files.
Chapter 6. Organize systems in Red Hat Lightspeed by using filtering and tags Copy linkLink copied to clipboard!
To apply filtering and tags in the Red Hat Lightspeed inventory, use the insights-client to categorize and organize your systems. Filtering enables you to show only the systems that you want to view, and tagging systems with contextual markers adds additional options for filtering. Creating custom tags or using predefined tags helps you streamline organization and maintenance of your system inventory.
6.1. Filters and tags for SAP workloads Copy linkLink copied to clipboard!
When Linux becomes the mandatory operating system for SAP ERP workloads in 2025, Red Hat Enterprise Linux and Red Hat Lightspeed are working to make Red Hat Lightspeed the management tool of choice for SAP administrators.
As part of this ongoing effort, Red Hat Lightspeed automatically tags systems running SAP workloads and by SAP ID (SID), without any customization needed by administrators. To filter those workloads throughout the Red Hat Lightspeed application, use the global Filter Results drop-down menu.
6.2. Filters and tags for Satellite host groups Copy linkLink copied to clipboard!
Satellite host groups are configured in Satellite and are automatically recognized by Red Hat Lightspeed.
6.3. Custom system tagging Copy linkLink copied to clipboard!
Apply custom tags to your registered systems to add contextual markers and organize your Red Hat Lightspeed inventory. With custom tags, you can filter and focus on related groups of systems, which simplifies management for large-scale deployments.
You can also apply predefined tags to your systems. The advisor service uses predefined tags to generate targeted recommendations for systems that require specific attention, such as those with high security needs.
6.3.1. Filter structure Copy linkLink copied to clipboard!
Filters use a namespace=value or key=value paired structure.
-
Namespace. The namespace is the name of the ingestion point, insights-client. This value cannot be changed. The
tags.yamlfile is abstracted from the namespace, which is injected by the client before upload. - Key. You can create the key or use a predefined key from the system. You can use a mix of capitalization, letters, numbers, symbols, and whitespace.
- Value. You can define your own descriptive string value. You can use a mix of capitalization, letters, numbers, symbols, and whitespace.
6.3.2. Create a custom group and the tags.yaml file Copy linkLink copied to clipboard!
To create and add tags to /etc/insights-client/tags.yaml, use insights-client with the --group=<name-you-choose> option. Running this command on your systems that are registered to Red Hat Lightspeed completes the following actions:
-
Creates the
etc/insights-client/tags.yamlfile -
Adds the
group=key and<name-you-choose>value totags.yaml - Uploads a fresh archive from the system to the Red Hat Lightspeed service, making the new tag immediately visible along with your latest results
Prerequisites
- Root-level access to your system.
Procedure
Run the following command as root, adding your custom group name in place of
<name-you-choose>:insights-client --group=<name-you-choose>
[root@server ~]# insights-client --group=<name-you-choose>Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Optional: To add additional tags, edit the
/etc/insights-client/tags.yamlfile. - Navigate to Inventory > Systems and log in if necessary.
- Click the Filter by tags drop-down menu. You can also use the search box to enter all or part of the tag’s name to automatically show systems with that text in the tags.
- Scroll up or down the list to locate the tag.
- Click the tag to filter by it.
Verify that your system is among the results on the advisor systems list.
- Navigate to Inventory > Systems and log in if necessary.
- Activate the Name filter and begin typing the system name until you see your system, then select it.
- The tag symbol is a darker color, and the number beside it shows the correct number of tags applied.
6.3.3. Add and modify custom system tags by editing tags.yaml Copy linkLink copied to clipboard!
After you create the group tag, you can edit the contents of tags.yaml to add or modify tags. The following procedure shows how to edit the /etc/insights-client/tags.yaml file, then verify that the tag exists in the Red Hat Lightspeed > RHEL > Inventory > Systems.
Prerequisites
- Root-level access to your system.
Procedure
Open the tag configuration file,
tags.yaml, in an editor.vim /etc/insights-client/tags.yaml
[root@server ~]# vim /etc/insights-client/tags.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the file contents or add additional
key=valuepairs. Add additionalkey=valuepairs if needed. Use a mix of capitalization, letters, numbers, symbols, and whitespace. The following example shows how to organizetags.yamlwhen adding more than one tag to a system.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save your changes and close the editor.
Initiate an upload to Red Hat Lightspeed.
insights-client
[root@server ~]# insights-clientCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Navigate to Inventory > Systems and log in if necessary.
In the Filter Results box, click the down arrow and select one of the filters or enter the name of the filter and select it.
NoteYou can search by the tag key or by its value.
- Find your system among the results.
- Verify that the filter icon is highlighted and shows a number representing the number of filters applied to the system.
6.4. Predefined tags Copy linkLink copied to clipboard!
In addition to custom tags, Red Hat Lightspeed provides predefined tags that the advisor service can use to create targeted recommendations. These predefined tags are useful for systems that require more security or need different networking performance levels.
To get the extended security hardening and enhanced detection and remediation capabilities offered by predefined tags, opt in and configure the tags. After configuration, the advisor service provides recommendations based on tailored severity levels and the preferred network performance that applies to your systems.
Use the /etc/insights-client/tags.yaml file to tag systems with predefined tags, similar to how you tag systems in the inventory service. The predefined tags are configured using the same key=value structure used to create custom tags. Details about the Red Hat-predefined tags are in the following table:
| Key | Value | Note |
|---|---|---|
| security |
|
With the |
|
|
| The network performance values, either latency or throughput according to your business requirement, affect the severity of an advisor service recommendation to a system. |
The names of predefined tag keys are reserved for specific use. If you already use the key security, with a value that differs from one of the predefined values, you will not see a change in your recommendations. You will only see a change in recommendations if your existing key=value is the same as one of the predefined keys. For example, if you have a key=value of security: high, your recommendations will not change because of the predefined tags that Red Hat has already defined. If you currently have a key=value pair of security: strict, you will see a change in the recommendations for your systems.
Additional resources
6.4.1. Configure predefined tags Copy linkLink copied to clipboard!
Configure predefined tags to adjust recommendations and gain extended security hardening, enhanced detection, and remediation capabilities within the Red Hat Lightspeed advisor service.
Prerequisites
- You have root-level access to your system.
- You have insights-client installed.
- You have systems registered within the insights-client.
-
You have created the
tags.yamlfile. For information about creating thetags.yamlfile, see Creating a tags.yaml file and adding a custom group.
Procedure
Use the command line and your preferred editor to open
/etc/insights-client/tags.yaml. (The following example uses Vim.)vi /etc/insights-client/tags.yaml
[root@server ~]# vi /etc/insights-client/tags.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
/etc/insights-client/tags.yamlfile to add the predefinedkey=valuepair for the tags. This example shows how to addsecurity: strictandnetwork_performance: latencytags.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save your changes.
- Close the editor.
Optional: Run the
insights-clientcommand to generate an upload to Red Hat Lightspeed, or wait until the next scheduled Red Hat Lightspeed upload.insights-client
[root@server ~]# insights-clientCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
After generating an upload to Red Hat Lightspeed (or waiting for the next scheduled Red Hat Lightspeed upload), you can find out whether the tags are in the production environment by accessing Red Hat Lightspeed > RHEL > Inventory > Systems. Find your system and look for the newly created tags. You see a table that shows:
- Name
- Value
- Tag Source (for example, insights-client).
Example
The following image of the advisor service shows a system with the network_performance: latency tag configured.
The system shows a recommendation with a higher Total Risk level of Important. The system without the network_performance: latency tag has a Total Risk of Moderate. You can make decisions about prioritizing the system with higher Total Risk.
Additional resources
Chapter 7. Troubleshoot issues and find reference information Copy linkLink copied to clipboard!
Find information to diagnose common connection failures and apply specific software fixes to maintain system health and connectivity.
7.1. RHC connection issues Copy linkLink copied to clipboard!
You can diagnose and resolve common problems that prevent the rhc client from communicating with the Red Hat Hybrid Cloud Console. For example, you can verify the core client protocol and check the system logs for specific error messages that indicate a connection failure.
7.1.1. rhc client communication (mqtt) Copy linkLink copied to clipboard!
MQTT is the communication technology behind the rhc daemon, rhcd. The client establishes a connection to the Red Hat message broker and waits for new messages. When the client receives new messages, it reads them and almost instantaneously converts them into playbook execution. The client always establishes the communication to the message broker. There is no communication initiated from the Red Hat services to your environment.
7.1.2. Review the rhc daemon log (journalctl) Copy linkLink copied to clipboard!
If you are experiencing connection issues, you must confirm that the client successfully established and maintained its connection to the message broker. You can troubleshoot your connection issue by reviewing the rhc daemon log by using the journalctl command.
Prerequisites
- You have root user access to the system or sudo privileges.
-
The rhc daemon (
rhcdoryggdrasil) service must be installed and enabled. - You have TCP ports and destinations enabled for the rhc daemon (port 443).
Procedure
To consult recent daemon logs, enter the following command in your terminal:
journalctl -u rhcd
# journalctl -u rhcdCopy to Clipboard Copied! Toggle word wrap Toggle overflow Use
-f,--follow, to show only the most recent journal entries, and continuously print new entries as they are appended to the journal:journalctl -u rhcd -f
# journalctl -u rhcd -fCopy to Clipboard Copied! Toggle word wrap Toggle overflow
7.2. Real-time scheduling CPU conflict Copy linkLink copied to clipboard!
The insights-client executes commands that collect data on your system. It has a configuration restriction that limits its CPU usage to no more than 30%.
You can define this restriction in the configuration file with the following option:
insights-client-boot.service: CPUQuota=30%
This configuration prevents the insights-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 insights-client runs, the CPU usage can become unusually high. If this situation occurs and negatively impacts other services on your system, contact Red Hat support.
Additional resources
7.3. Verify network connectivity of required ports Copy linkLink copied to clipboard!
If the RHC daemon log (journalctl) indicates communication failures, it can be a problem of a blocked port. Before contacting support, you must verify that your system can reach all required Red Hat service destinations and TCP ports.
- Check Connectivity
- Ensure that all required ports are open and destinations are accessible. The system needs access for the Subscription Manager, the insights-client, and the RHC daemon.
- Check the list of TCP Ports and Destinations
- See Manage system connectivity and networking for the definitive list of TCP Ports and Destinations required for full system functionality.
7.4. Create a diagnostic log for support Copy linkLink copied to clipboard!
You can create a diagnostic log to share with the support team.
Prerequisites
- You have root user access to your system.
- You have installed the insights-client on your system.
Procedure
Enter the
insights-clientcommand with the--supportoption.insights-client --support
[root@rhlightspeed]# insights-client --supportCopy to Clipboard Copied! Toggle word wrap Toggle overflow The command displays informational messages while creating the support file.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Navigate to the collection directory as shown in the Support information collected in message.
cd /var/tmp/H_Y43a
[root@rhlightspeed]# cd /var/tmp/H_Y43aCopy to Clipboard Copied! Toggle word wrap Toggle overflow Unpack the compressed
tar.gzfile.tar -xzf insights-client-logs-20250912112824.tar.gz
[root@rhlightspeed]# tar -xzf insights-client-logs-20250912112824.tar.gzCopy to Clipboard Copied! Toggle word wrap Toggle overflow Extracting the
tar.gzcopies the log files into your current directory. You can share thetar.gzfile with the support team if requested.
Chapter 8. Client command-line options and configuration details Copy linkLink copied to clipboard!
To register systems and configure tools, learn more about the essential command-line instructions and configuration parameters for RHEL client tools and RHEL system registration.
8.1. Options for insights-client command Copy linkLink copied to clipboard!
As a system administrator with root privileges, you can use the insights-client command and its options to control the insights-client operation on your system.
Updates to the insights-client.rpm occur less often than updates to individual components in Red Hat Lightspeed. The frequency of updates could cause the man page to not include the most recent information about insights-client.
Each time you enter the insights-client command, the client collects data and sends it to Red Hat Lightspeed.
Using the insights-client --display-name command to set the display name takes effect immediately, but does not run the insights-client.
| Option | Description |
|---|---|
|
| Display help information |
|
|
Register the host to Red Hat Lightspeed by using the information in |
|
| Unregister the host from Red Hat Lightspeed. |
|
|
Set or change the host display name in the GUI. Use it with the |
|
|
Add a host to a GROUP during registration. Define Group names in |
|
| Set the number of times to retry an upload. The default is 1. The retry interval is 180 seconds, which is how long the insights-client waits until retrying the upload. NOTE: In the scheduler, the number of retries is 3. |
|
|
Validate |
|
| Log only error messages to the terminal output. |
|
| Disable message logging to the terminal. |
|
| Enable the job schedule. By default, the insights-client runs daily, at or near midnight. |
|
| Disable the nightly job schedule. |
|
|
Use a custom configuration file by specifying a file path for CONF instead of using the default IMPORTANT: This option is not available for RHEL 10 systems. |
|
|
Runs the insights-client without uploading the archive to Red Hat Lightspeed. The archive is stored in the |
|
|
Run the client without using network functionality. Using this command does not upload data to Red Hat Lightspeed, similar to using the |
|
|
Write the log data to the specified log file, LOGFILE. The default log file is IMPORTANT: This option is not available for RHEL 10 systems. |
|
| |
|
| Scan the system with OpenSCAP and upload the report to the Red Hat Lightspeed compliance service in the Red Hat Hybrid Cloud Console. |
|
| List the policies available to assign to the system. The output also provides information for the following categories:
|
|
|
Assign the system to the policy by using the ID from the |
|
|
Remove the system from the policy by using the ID from the |
|
|
Upload a specific archive payload file to Red Hat Lightspeed. You must set |
|
|
Set the content type for the |
|
|
Display analysis results by using the |
|
| Write the collection to a specified directory instead of uploading to Red Hat Lightspeed. |
|
| Write the collection to a specified archive instead of uploading to Red Hat Lightspeed. |
|
|
Set or change the Ansible hostname in Red Hat Lightspeed inventory. Run this during registration to specify a different hostname from the one listed in |
|
|
Show |
|
| Refresh the system package manager cache. |
|
| The specified manifest YAML file that defines what Red Hat Lightspeed Core should collect. |
|
| Do a lightweight check-in instead of a full upload. |
|
| Run the specified application and upload its generated archive. For example, specify:
|
Additionally, use the following insights-client command options when you need to debug insights-client operations:
| Option | Description |
|---|---|
|
|
Print the versions of |
|
| Test connectivity to the Red Hat Lightspeed services. |
|
| Log all debug output to the console. |
|
|
Run the client, but do not upload the archive. The client stores the archive in the |
|
|
Store the archive in the |
|
| Generate a diagnostic log for support. |
|
| Display host registration status. |
|
| Log network calls to the console. |
8.2. Options for the insights-client configuration file Copy linkLink copied to clipboard!
When the configuration file and the command line have similar options, the command-line option is executed when you enter the insights-client command. When the scheduler runs the client, the configuration file options are executed.
You must enter the choices exactly as shown. True and False use initial capital letters.
The changes initiated by the options take effect either at the next scheduled run, or when you enter the insights-client command. Format the options as key=value pairs.
| Option | Description |
|---|---|
| ansible_host | Use this option if you want a different hostname when running Ansible playbooks. |
| authmethod=CERT | Set the authentication method. The default value is CERT. |
| auto_config=True |
Use this to auto configure with Satellite Server. Values can be
NOTE: When |
| auto_update=True |
Use this option to automatically update the dynamic configuration. The default value is |
| base_url=cert-api.access.redhat.com:443/r/insights | Specify the base URL for the API. |
| cmd_timeout=120 | Use this option to set the timeout limit for commands that run during collection. The value is measured in seconds. The command processes end when the timeout limit reaches the value of this option. |
| content_redaction_file |
Omit lines or keywords from files and commands in the core collection. The core collection consists of a comprehensive set of data such as system logs, configuration files, and command outputs collected by the
You do not need to change the default configuration. The |
| display_name |
Use this value to for the
NOTE: This value interacts with the |
| http_timeout=120 | Use this option to set the timeout limit for HTTP calls. The value is measured in seconds. The command processes terminate when the timeout limit reaches the value. |
| [insights-client] | The configuration file must begin with this entry, even if you specify a custom path or name for the client configuration file. |
| loglevel=DEBUG |
Use this option to change the log level. Values are: DEBUG, INFO, WARNING, ERROR, and CRITICAL. The default is DEBUG. The default log file location is |
| obfuscation_list=<ipaddress_type> |
Use this option to specify which IP connectivity protocol addresses to obfuscate in the data collection. By default, this value is not set and no data obfuscation occurs. Supported values are:
IMPORTANT: Remove deprecated |
| proxy | Use this option to set the URL for your proxy. Example: http://user:pass@192.168.100.50:8080 |
| redaction_file | Use this option to omit files or commands from the core collection. The core collection consists of comprehensive result set.
You do not need to change the default configuration. The |
Providing feedback on Red Hat documentation Copy linkLink copied to clipboard!
We appreciate and prioritize your feedback regarding our documentation. Provide as much detail as possible, so that your request can be quickly addressed.
Prerequisites
- You are logged in to the Red Hat Customer Portal.
Procedure
To provide feedback, perform the following steps:
- Click the following link: Create Issue
- Describe the issue or enhancement in the Summary text box.
- Provide details about the issue or requested enhancement in the Description text box.
- Type your name in the Reporter text box.
- Click the Create button.
This action creates a documentation ticket and routes it to the appropriate documentation team. Thank you for taking the time to provide feedback.