<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.2491" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=931554911-14102005><FONT face=Arial size=2>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). </FONT></SPAN></DIV>
<DIV><SPAN class=931554911-14102005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=931554911-14102005><FONT face=Arial size=2>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)?</FONT></SPAN></DIV></BODY></HTML>