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

Glaser, David dsglaser at umich.edu
Mon Jul 25 12:30:13 UTC 2011


Miroslav,

I saw the delete-systems utility, but it didn't give us all the functionality we wanted (a report by the system group that the machines exist in, multiple idle times in one run of the script, control over the line format). Perhaps a feature request to bugzilla would be in order? 

Thanks,
Dave


-----Original Message-----
From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Miroslav Suchý
Sent: Friday, July 22, 2011 5:47 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Way to remove stale system entries?

On 07/22/2011 08: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...
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list

# yum install spacewalk-utils
# delete-old-systems-interactive
Usage: delete-old-systems-interactive --idle=<idletime[w|d|h|m]> [--host=<host>] [--username=<username>] [--password=<password>] [--force]

--
Miroslav Suchý
Red Hat Satellite Engineering

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list