Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
rhc (Remote Host Configuration) is the simple registration client of RHEL. rhc connect registers the system with Red Hat Subscription Management (so dnf gets the BaseOS and AppStream repositories), turns on Red Hat Lightspeed (the service that was called Red Hat Insights) and connects the system to the Hybrid Cloud Console at console.redhat.com for remote tasks. Each part can be turned off with --disable-feature.
Use an activation key and the organization ID for scripts and many systems; a user name and password for a single test machine.
Zo schrijf je het
rhc connect [OPTION]...
rhc disconnect
rhc statusBelangrijkste delen
Commands
connect- Register the system and turn on the features.
disconnect- Unregister and turn the features off.
status- Show what is connected.
help- Show help.
Opties 9
Meest gebruikt
connect
Niets past bij dit filter.
Voorbeelden 10
$ als gewone gebruiker# als root (of met sudo)
1Register a test machine with your account
rhc connect --username anna.admin Password: ... Successfully connected to Red Hat!2Register with an activation key (scripts, many servers)
rhc connect --organization 12345678 --activation-key web-servers3Register without remote management
rhc connect -o 12345678 -a web-servers --disable-feature remote-management4Only content, no analytics
rhc connect -o 12345678 -a base --disable-feature analytics --disable-feature remote-management5Check the state
rhc status subscription-manager status dnf repolist6JSON output for automation
rhc status --format json7Unregister before you delete or clone a VM
rhc disconnect8Get remote fixes from the console (Ansible playbooks)
9Register in a Kickstart %post (one way)
cat ks-snippet.txt %post rhc connect --organization 12345678 --activation-key web-servers %end10See the service that keeps the console connection
systemctl status rhcd
Niets past bij dit filter.
Let op
- The organization ID and activation key can register systems to your account. Keep them out of public repositories.
rhcis only for systems that connect directly to Red Hat. With Red Hat Satellite, usesubscription-manager.
Bestanden
/etc/rhc/config.toml- Settings of rhc.
/var/log/rhsm/rhsm.log- Log of the registration part.
Tips om te onthouden
- Kickstart also has its own
rhsm --organization=ID --activation-key=KEYcommand for registration during the installation.
Exitcodes
0 | Success. |
Not 0 | Error (wrong key, no network, already connected). |