Red hat diagnostics

From RHEcosystemAppEng/agentic-plugins · View interactive version

Red hat diagnostics is an AI agent skill from the GitHub repository RHEcosystemAppEng/agentic-plugins. Explain how to gather diagnostic information for Red Hat products (RHEL, OpenShift, Ansible Automation Platform, Satellite) to share with Red Hat Technical Support.

How to use this skill

Skill file

Red Hat Diagnostic Information Gathering

Identify product and deployment type. If unclear, ask. Provide specific commands and upload instructions. If product not listed, use WebFetch on Red Hat docs -- sos report covers most RHEL-based products through plugins.

Prerequisites

None.

When to Use This Skill

When the user needs to collect diagnostic data for a Red Hat support case.

Workflow

  1. Identify product and deployment type from the user message.
  2. Provide the correct diagnostic collection commands.
  3. Warn the user about sensitive data in the archive before sharing.
  4. Explain how to upload the resulting archive to Red Hat Support.

Dependencies

None — all commands reference standard Red Hat tooling available on target systems.

RHEL

dnf install sos
sos report

Output: .tar.xz in /var/tmp/. Specific subsystems: sos report --only-plugins networking,storage

OpenShift Container Platform (OCP)

oc adm must-gather --dest-dir ./must-gather
tar cvaf must-gather.tar.gz ./must-gather*/

Specific operators: oc adm must-gather --image=<component-must-gather-image> --dest-dir ./must-gather

If registry.redhat.io unavailable: oc adm inspect <resource-type>/<resource-name>

Ansible Automation Platform (AAP)

Ask deployment type if not specified -- tool differs significantly.

VM/RPM-based: sos report (includes AAP plugins automatically)

Containerized:

ansible-playbook -i <path_to_inventory> ansible.containerized_installer.log_gathering \
  -e 'target_sos_directory=/tmp/aap-logs' \
  -e 'case_number=<your_case_number>' \
  -e 'clean=true' \
  -e 'upload=true'

Omit upload=true to collect locally first.

OCP-based (Operator):

# AAP 2.6
oc adm must-gather \
  --image=registry.redhat.io/ansible-automation-platform-26/aap-must-gather-rhel9 \
  --dest-dir ./must-gather \
  -- /usr/bin/ns-gather <namespace>

# AAP 2.5
oc adm must-gather \
  --image=registry.redhat.io/ansible-automation-platform-25/aap-must-gather-rhel8 \
  --dest-dir ./must-gather \
  -- /usr/bin/ns-gather <namespace>

Then: tar cvaf aap-must-gather.tar.gz ./must-gather*/

Red Hat Satellite

sos report
foreman-debug -d /tmp/foreman-debug

sos report includes the satellite plugin automatically. foreman-debug provides deeper Foreman/Katello data.

Sharing with Red Hat Support

Important: Diagnostic archives (sos reports, must-gather bundles) collect comprehensive system data including configuration files, logs, and network details. Review the archive contents before sharing and redact any secrets or sensitive data you do not want to expose to a third party.

Attach archives at access.redhat.com/support. Large files: ftp://dropbox.redhat.com or Customer Portal file upload API.

Reference Docs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.