[rhn-users] Preventing Duplicate Registrations in RHN

Lamon, Frank III Frank_LaMon at csx.com
Mon Nov 14 16:02:34 UTC 2005


I'd be very interested, we're putting a sat server in before the end of the year.
 
Thanks,
Frank
 

-----Original Message-----
From: rhn-users-bounces at redhat.com [mailto:rhn-users-bounces at redhat.com]On Behalf Of Doerbeck, Christoph
Sent: Monday, November 14, 2005 11:00 AM
To: Red Hat Network Users List
Subject: RE: [rhn-users] Preventing Duplicate Registrations in RHN


Is anyone still interested in a sample script.  I'd need to spend time to clean it up a bit before posting.  But it is a CLI tool for deleting hosts from the Sat Server (assuming proxy too) using the RHN API..

-----Original Message-----
From: Cornwell, Piers T [mailto:p.cornwell at imperial.ac.uk] 
Sent: Monday, October 17, 2005 8:17 AM
To: Red Hat Network Users List
Subject: RE: [rhn-users] Preventing Duplicate Registrations in RHN


A sample script would be really useful. I'm using an RHN Proxy.
 

  _____  

From: rhn-users-bounces at redhat.com [mailto:rhn-users-bounces at redhat.com] On Behalf Of Doerbeck, Christoph
Sent: 17 October 2005 13:12
To: Red Hat Network Users List
Subject: RE: [rhn-users] Preventing Duplicate Registrations in RHN


I wrote a script to use the RHN api and delete one (or many) hosts.  To automate it during a build, I'd recommend a web form (which calls the script) and that way you could query using wget during the %post from the build client.
 
I could post a sample of the script if necessary.
 
Are you using a RHN Satellite or Proxy?
 
- christoph
 
-----Original Message-----
From: "Dr. Günter Schmidt" [mailto:guenter.schmidt at bruker.de] 
Sent: Monday, October 17, 2005 3:31 AM
To: Red Hat Network Users List
Subject: Re: [rhn-users] Preventing Duplicate Registrations in RHN



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




-----------------------------------------
This email transmission and any accompanying attachments may contain CSX
privileged and confidential information intended only for the use of the
intended addressee.  Any dissemination, distribution, copying or action
taken in reliance on the contents of this email by anyone other than the
intended recipient is strictly prohibited.  If you have received this email
in error please immediately delete it and  notify sender at the above CSX
email address.  Sender and CSX accept no liability for any damage caused
directly or indirectly by receipt of this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20051114/cf42cb79/attachment.htm>


More information about the rhn-users mailing list