[Spacewalk-list] [MASSMAIL]Re: list of systems by uptime?

Matthew Rinella MRinella at apptio.com
Wed Feb 4 16:22:12 UTC 2015


That’s a good start.  I needed to update my spacecmd rpm to see it, so thanks for that.

Ideally, Id like to get the entire list at once for every system.  We have a few thousand, so running a system_details query for every one would take while.
I’m certain I can get it directly out of the database if spacecmd doesn’t have something for all.

From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Alexander Innes
Sent: Wednesday, February 04, 2015 4:55 AM
To: spacewalk-list at redhat.com
Subject: [MASSMAIL]Re: [Spacewalk-list] list of systems by uptime?

Yopu can use "system_details" then parse it to get

Registered:    20150112T09:27:48
Last Checkin:  20150204T11:09:13
OSA Status:    unknown
Last Boot:     20150121T11:24:58


or you could use "system_runscript" to run uptime or w.

Alex

On 3 February 2015 at 21:46, Matthew Rinella <MRinella at apptio.com<mailto:MRinella at apptio.com>> wrote:
Is there a way to get the uptime or last reboot time of a system, or all systems through the API?

I saw via google this was discussed before on the list but I couldn’t not find a definitive answer if it was ever implemented.

Thanks.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20150204/c681f6a8/attachment.htm>


More information about the Spacewalk-list mailing list