[Spacewalk-list] Way to remove stale system entries?
David Glaser
dsglaser at umich.edu
Fri Jul 22 18:40:58 UTC 2011
I've attached the script that one of our temps wrote to remove systems
that have not checked in over a year (but it is configurable) and warn
if systems have been offline for over a given period of time. Maybe it
is what you are looking for.
We just run it out of cron with a number of command line switches.
Dave
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...
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20110722/f75296c7/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: remove-old-profiles.py
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20110722/f75296c7/attachment.ksh>
More information about the Spacewalk-list
mailing list