- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Satellite 5
- How to re-register a system to a new or rebuilt Satellite server?
- How to re-register a system to Red Hat Satellite ?
rhn_registerdoes not register system to Satellite
Red Hat Enterprise Linux versions before RHEL 7 will allow registration with RHN Classic, though RHEL 7 registration requires the newer
subscription-manager(RHSM) method of registration.
If the client system has been re-installed and its old system profile is still on Red Hat Satellite, then the old system profile needs to be deleted to free up the entitlements that it is consuming. Delete each duplicate or obsolete system profile with the following steps:
For Systems registered to Red Hat Satellite: Follow the steps below:
- Log in to the Satellite server.
- Click on the "Systems" tab in the top navigation bar and then the name of the old or duplicated system in the System List.
- Click the "delete system" link in the top-right corner of the page.
- Confirm system profile deletion by clicking the "Delete System" button.
- Lastly, go to the command prompt of the client system and login as root and delete the file /etc/sysconfig/rhn/systemid
To re-register the system, run either of the following commands:
# rhnreg_ks --username=<RHN or Satellite login> --password=<RHN or Satellite password> --force
- To move entitlements from one system to another without deleting any system profiles, refer to the following solution: How do I move my Red Hat Network (RHN) entitlement to another machine?.
Note: Red Hat Enterprise Linux 3.x and 4.x have reached their Extended Life Phase, so they cannot be registered or updated from RHN Classic or Satellite without an active Extended Lifecycle Support (ELS) subscription. For further details on Extended Life Phase and ELS, please refer to: Red Hat Enterprise Linux Life Cycle.
If using Satellite and kickstart to provision systems, there are two alternatives to re-register without having to manually delete the profile:
Configure the desired behaviour in the kickstart profile. Go to System Details > Details on the kickstart profile, and select the approppriate option:
Red Hat Satellite Profile: If a Red Hat Satellite system profile already exists for a re-provisioned system outside of the Red Hat Satellite UI: Re-connect to the existing system profile. Do not create a new system profile. Delete the existing system profile and create a new system profile. Leave the existing system profile in place, but do not re-connect to it. Instead, create a new system profile.
Using Satellite's API, add a script to your kickstart to delete the relevant profile during the installation before re-registering it. For documentation on API usage, please see the relevant guide on the documentation page (Satellite 5.5 and earlier / Satellite 5.6 and later)
- Check the systemid in file
/etc/sysconfig/rhn/systemidis the same as the one you check on RHN.
# vi /etc/sysconfig/rhn/systemid
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.