[rhn-users] Preventing Duplicate Registrations in RHN

"Dr. Günter Schmidt" guenter.schmidt at bruker.de
Mon Oct 17 07:31:14 UTC 2005


Cornwell, Piers T wrote:

> During the %post install section of our install we run rhnreg_ks with 
> the appropriate options to register the system with RHN however when 
> systems are rebuilt, which happens quite often, a new registration 
> gets created (with the same profile name - the machine's hostname 
> - but a different ID).
>  
> Since it's not practical for us to manually delete old profiles, is 
> there any way to write a script to query RHN to see if a profile with 
> this hostname already exists, and if so, to delete it before creating 
> the new registration (or even to force it to use the old system ID)?
>
>  
>
The easiest way is to create a tar file of /etc/sysconfig/rhn and 
extraxt this file after your system is rebuild.



--
Dr. Günter Schmidt   |   E-Mail: gsc at bruker.de
NMR Software         |   Tel: +49 721 5161 443
Bruker BioSpin GmbH  |   Fax: +49 721 5161 480

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20051017/654e9e56/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: guenter.schmidt.vcf
Type: text/x-vcard
Size: 337 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20051017/654e9e56/attachment.vcf>


More information about the rhn-users mailing list