هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
ماذا يفعل
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.
طريقة الكتابة
rhc connect [OPTION]...
rhc disconnect
rhc statusالأجزاء الرئيسية
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.
الخيارات 9
الأكثر استخدامًا
connect
لا يوجد شيء يطابق هذا الفلتر.
أمثلة 10
$ مستخدم عادي# بصلاحية root (أو مع 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
لا يوجد شيء يطابق هذا الفلتر.
انتبه
- 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.
الملفات
/etc/rhc/config.toml- Settings of rhc.
/var/log/rhsm/rhsm.log- Log of the registration part.
نصائح للحفظ
- Kickstart also has its own
rhsm --organization=ID --activation-key=KEYcommand for registration during the installation.
رموز الخروج
0 | Success. |
Not 0 | Error (wrong key, no network, already connected). |