[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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

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 redhat com [mailto:spacewalk-list-bounces redhat com] On Behalf Of Alexander Innes
Sent: Wednesday, February 04, 2015 4:55 AM
To: spacewalk-list 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.



On 3 February 2015 at 21:46, Matthew Rinella <MRinella 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.



Spacewalk-list mailing list
Spacewalk-list redhat com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]