Today I had to update a system profile in RHN. The system is a RHEL 4 and was added to RHN few years ago and the hostname had changed since then. You can change the system name in RHN but you cannot change the hostname or the ipaddress. I just wanted to share with everyone how to update the RHN profile of a host.
Once your hostname is changed, you just have to execute this command:
# up2date --hardware
If you are using spacewalk and CentosOS6/RHEL6 you’ll see that up2date is not there anymore. You’ll need to have the rhn tool installed and sync the profile with:
And voila, you should see the updated hostname on RHN/Spacewalk/Satellite.