[Spacewalk-list] Way to remove stale system entries?

Joshua Roys Joshua.Roys at gtri.gatech.edu
Fri Jul 22 18:37:22 UTC 2011


On 07/22/2011 02:02 PM, Jose_De_La_Rosa at Dell.com wrote:
> Is there a script (supported or otherwise) to remove stale system
> entries from a spacewalk/RHN server?
>
> Say I have a testing environment with limited RHEL entitlements, and
> people are constantly registering servers, do what they need to do, and
> then re-image the server or shut it down and move on to something else
> without manually removing the system entry from RHN before moving on.
> These stale entries not only populate the database needlessly, but also
> take up an entitlement.
>
> Would be great if I could run a nightly cron job where server entries
> that have not checked in for X days are removed automatically...
>

Hello,

It looks like there's a (old) script at:
http://git.fedorahosted.org/git/?p=spacewalk.git;a=blob;f=scripts/ncsu-rhntools/oldSystems.py;h=11a1597d70e491ff00cb1ca5cc148b05e9a8c5ab;hb=HEAD

Thanks,

Josh


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5045 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20110722/5cc0e227/attachment.p7s>


More information about the Spacewalk-list mailing list