Client Configuration Guide for Red Hat Insights Red Hat Insights 1-latest Configuration options and use cases for the Insights client Red Hat Customer Content Services

Commands:
yum install insights-client
insights-client --register
yum install insights-client
dnf install insights-client
yum install insights-client
yum install insights-client
dnf install insights-client
subscription-manager register --activationkey=_activation_key_name_ --org=_organization_ID_
rhc connect --activation-key example_key --organization your_org_ID
subscription-manager register subscription-manager status
insights-client --register insights-client --status
insights-client --register --display-name ITC-4
Successfully registered host insights01-rhel9 as ITC-4 in group None Automatic scheduling for Insights has been enabled. Starting to collect Insights data for ITC-4 Writing RHSM facts to /etc/rhsm/facts/insights-client.facts Uploading Insights data. Successfully uploaded report from ITC-4 to account 1234567. View the Red Hat Insights console at https://console.redhat.com/insights/
insights-client --display-name ITC-5
System display name changed from ITC-4 to ITC-5
insights-client --unregister Successfully unregistered from the Red Hat Insights Service
insights-client --status System is NOT registered locally via .registered file. Unregistered at 2021-03-12T10:36:39.257300 Insights API says this machine was unregistered at 2021-03-12T00:36:39.000Z
insights-client --unregister
insights-client --register
Successfully uploaded report for <machine name> View the Red Hat Insights console at https://console.redhat.com/insights/
insights-client --display-name ITC-4 System display name changed from None to ITC-4
insights-client --display-name "ITC-4 B9 4th floor" System display name changed from None to ITC-4 B9 4th floor
insights-client --version Client: 3.0.6-0 Core: 3.0.121-1
Obfuscate IP addresses #obfuscate=False
obfuscate=True
192.168.0.24
10.230.230.1
#obfuscate_hostname=False
obfuscate_hostname=True
display_name=example-display-name
insights-client --display-name ITC-4
RTP.data.center.01
90f4a9365ce0.example.com
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
files: commands:
files: - /etc/audit/auditd.conf
commands: - ethtool_i
ll file-redaction.yaml -rw-------. 1 root root 145 Sep 25 17:39 file-redaction.yaml
file-redaction.yaml --- Redact the entire output of commands Specify commands by either full command or by the "symbolic_name" like "ethtool_i." Refer to the "Datasource Catalog" and "General Datasources" at https://insights-core.readthedocs.io/en/latest/specs_catalog.html#general-datasource for a full list of available symbolic_names, and the commands and files they correspond to. commands: - /bin/rpm -qa - /bin/ls - ethtool_i Redact the entire output of files Specify files either by full filename or by the "symbolic_name" for example, "cluster_conf." Refer to the "Datasource Catalog" and "General Datasources" at https://insights-core.readthedocs.io/en/latest/specs_catalog.html#general-datasource for a full list of available symbolic_names, and the commands and files they correspond to. files: - /etc/audit/auditd.conf - cluster_conf
insights-client --no-upload
WARNING: Excluding data from files Starting to collect Insights data for I-HOST WARNING: Skipping command /bin/dmesg WARNING: Skipping file /etc/cluster/cluster.conf Archive saved at /var/tmp/qsINM9/insights-ITC-4-20190925180232.tar.gz
file-content-redaction.yaml --- Pattern redaction per matching line Lines that match a pattern are excluded from files and command output. Patterns are processed in the order that they are listed. Example patterns: - "a_string_1" - "a_string_2" Regular expression pattern redaction per line Use "regex:" to wrap patterns with regular expressions" Example patterns: regex: - "abc.*def" - "localhost[[:digit:]]" Keyword replacement redaction Replace keywords in files and command output with generic identifiers Keyword does not support regex Example keywords: - "1.1.1.1" - "My Name" - "a_name"
ll file-content-redaction.yaml -rw-------. 1 root root 145 Sep 25 17:39 file-content-redaction.yaml
insights-client --no-upload
WARNING: Excluding data from files Starting to collect Insights data for ITC-4 WARNING: Skipping patterns found in remove.conf WARNING: Skipping command /bin/dmesg WARNING: Skipping command /bin/hostname WARNING: Skipping file /etc/cluster/cluster.conf WARNING: Skipping file /etc/hosts Archive saved at /var/tmp/qsINM9/insights-ITC-4-20190925180232.tar.gz
cd /var/tmp/qsINM9/
tar -xzf insights-ITC-4-20190925180232.tar.gz
insights-client --keep-archive
Starting to collect Insights data for ITC-4 Uploading Insights data. Successfully uploaded report from ITC-4 to account 6229994. Insights archive retained in /var/tmp/ozM8bY/insights-ITC-4-20190925181622.tar.gz
cd /var/tmp/ozM8bY/
tar -xzf insights-ITC-4-20190925181622.tar.gz
insights-client --group=<name-you-choose>
vim /etc/insights-client/tags.yaml
tags --- group: _group-name-value_ location: _location-name-value_ description: - RHEL8 - SAP key 4: value
insights-client
vi /etc/insights-client/tags.yaml
cat /etc/insights-client/tags.yaml group: redhat location: Brisbane/Australia description: - RHEL8 - SAP security: strict network_performance: latency
insights-client
insights-client --version Client: 3.0.6-0 Core: 3.0.121-1
insights-client --disable-schedule
insights-client --version Client: 3.0.6-0 Core: 3.0.121-1
insights-client --enable-schedule
systemctl edit insights-client.timer
[Timer] OnCalendar=daily RandomizedDelaySec=14400
insights-client --enable-schedule
#auto_update=True
auto_update=False
auto_update=False
auto_update=True
insights-client --support
Collecting logs Insights version: insights-core-3.0.121-1 Registration check: status: True unreachable: False . . . . Copying Insights logs to archive Support information collected in /var/tmp/H_Y43a/insights-client-logs-20190927144011.tar.gz
cd /var/tmp/H_Y43a
tar -xzf insights-client-logs-20190927144011.tar.gz