19.3. Unregistering from Satellite Server
Removing a Red Hat Enterprise Linux (RHEL) system from Satellite Server updates the system’s status on the server side. However, the system’s local registration remains unchanged. To ensure a complete transition to Red Hat Subscription Management (RHSM), manually unregister the system and restore the default configuration in the /etc/rhsm/rhsm.conf file.
Procedure
- Remove the host from the Satellite server.
Unregister the system:
# subscription-manager unregisterRevert the
/etc/rhsm/rhsm.confconfiguration file to its default values:# cd /etc/rhsm/ # mv rhsm.conf.bak rhsm.conf注記You can restore this file only if the original content of the file was backed up earlier. Otherwise, you must manually restore the file from a non-modified RHEL machine.
Verify that the
/etc/rhsm/rhsm.conffile has been reverted to default values:# subscription-manager config --list [server] hostname = [subscription.rhsm.redhat.com] insecure = [0] no_proxy = [] port = [443] prefix = [/subscription] proxy_hostname = [] proxy_password = [] proxy_port = [] proxy_scheme = [http] proxy_user = [] server_timeout = [180] ssl_verify_depth = [3] [rhsm] auto_enable_yum_plugins = [1] baseurl = [https://cdn.redhat.com] ca_cert_dir = [/etc/rhsm/ca/] consumercertdir = [/etc/pki/consumer] entitlementcertdir = [/etc/pki/entitlement] full_refresh_on_yum = [0] inotify = [1] manage_repos = [1] package_profile_on_trans = [0] pluginconfdir = [/etc/rhsm/pluginconf.d] plugindir = [/usr/share/rhsm-plugins] productcertdir = [/etc/pki/product] repo_ca_cert = /etc/rhsm/ca/redhat-uep.pem repomd_gpg_url = [] report_package_profile = [1] [rhsmcertd] auto_registration = [0] auto_registration_interval = [60] autoattachinterval = [1440] certcheckinterval = [240] disable = [0] splay = [1] [logging] default_log_level = [INFO] [] - Default value in useRegister the system:
# subscription-manager register Username: <_redhat_portal_admin_username_> Password:Enable the required repositories:
# subscription-manager repos --disable "*" # subscription-manager repos # subscription-manager repos --enable=<repo-id>