Cyber Deals - Get up to 65% off on CKA, CKAD, CKS, KCNA, KCSA exams and courses!

Reference Documents for Red Hat Products

Red Hat Subscription Management Cheatsheet

Refer SUBSCRIPTION-MANAGER COMMAND CHEAT SHEET

# subscribe
subscription-manager register

# subscribe using username and password in line and auto-attach pool
subscription-manager register --username <username> --password <password> --auto-attach

# Pull the latest subscription data from the server
subscription-manager refresh

# Set a role for your system.
subscription-manager role --set="Red Hat Enterprise Linux Server"

# List available subscriptions
subscription-manager list --available

# attach subscription automatically with availalbe pool
subscription-manager attach --auto

# Use the pool ID of the subscription to attach the pool to the system.
subscription-manager attach --pool=<subscription-pool-id>

# check consumed subscrptions
subscription-manager list --consumed

# Subscription details
subscription-manager identity
subscription-manager status

# listing repositories
subscription-manager repos --list

# enabling server repos
subscription-manager repos \
  --enable=rhel-7-server-rpms \
  --enable=rhel-server-rhscl-7-2.9.rpms

# or for RHEL8
subscription-manager repos \
  --enable=rhel-8-for-x86_64-baseos-rpms \
  --enable=rhel-8-for-x86_64-appstream-rpms

# enabling ansible repo
subscription-manager repos \
  --enable ansible-2-for-rhel-8-x86_64-rpms

# enabling AAP repo
subscription-manager repos \
  ansible-automation-platform-2.2-for-rhel-8-x86_64-rpms

# Unregistering a system
subscription-manager remove --all
subscription-manager unregister
subscription-manager clean

YUM Download only

yum install --downloadonly --downloaddir=<directory> <package>

sosreport methods

# Generate report to a specific path
sosreport -k docker.all=on -k docker.logs=on --tmp-dir /root/sos

Subscription Reference

Troubleshooting

Failed to connect to bus: No medium found

$ systemctl --user status automation-gateway
Failed to connect to bus: No medium found

The user account changed to user by su and sudo does not have the XDG* environment variables set, so rootless containers cannot be started as services via systemd.

Solution

$ export XDG_RUNTIME_DIR=/run/user/1008

Repository & Satellite

Appendix

How to fix Repos not Visible on Client issue ?

goto https://access.redhat.com/labs/rhpc/

select the product -> version and arch -> follow scripted or manual

[svc-ansible@PL-PRD-ANS-PG-1 ~]$ systemctl –user status automation-gateway Failed to connect to bus: No medium found

Disclaimer: Views expressed in articles are those of the respective authors and do not necessarily reflect the views of their employers or this site. While we aim for accuracy, please verify information before relying on it, and let us know if you spot an error.
Share:

Related Posts

Ansible

Ansible Dictionary Sample

Sample Playbook to Handle Ansible dictionary --- - name: Test play for dictionary hosts: all vars: interfaces: ansible-node-2: int1: intname: ens192 …

Artificial Intelligence (AI) - Learning and Development

Artificial Intelligence (AI) - Learning and Development

Image source: YouTube Table of Contents

Ansible

Ansible awx cli

Note: This notes are based on the AAP 2.5 Installation # On Red Hat Enterprise Linux 8, the Controller CLI can be installed via dnf: dnf install …

Ansible for CyberArk

Ansible for CyberArk

References Explore CyberArk Free Trial conjur Ansible and Conjur integration CyberArk Learning Resources training.cyberark.com References …

Ansible

Ansible Collections

Installing collections Using Collection on Tower References Installing collections ansible-galaxy collection install my_namespace.my_collection or

Container

Container Tips

How to install ping utility inside container ? How to allow continers to execute ping ? Error - “/” is not a shared mount How to install …