[prev in list] [next in list] [prev in thread] [next in thread] 

List:       spacewalk-devel
Subject:    [Spacewalk-devel] Another script contribution
From:       colin.coe () gmail ! com (Colin Coe)
Date:       2009-12-04 2:55:05
Message-ID: 8ce7d0a10912031855l59a9be8cm39b00cd7d8725ecd () mail ! gmail ! com
[Download RAW message or body]

Hi all

Attached is another script I'd like to donate to the community.  This
one provides a breakdown of un-applied errata including an arbitrary
'score' for each listed RHEL node.  The higher the score the worse the
node is.

The script was inspired the the reports that Sun Microsystems does (or
did) for some clients, reporting systems with outstanding/unapplied
patches.  The report was SMT which I think stood for 'System Metric
Test'.

This is intended to live on the Satellite/Spacewalk server but will
work on any system with the Perl Frontier::Client module installed.
The main problem with the script is the hardcoding of the satellite
username and password, I'm not sure of a good way around this and I
welcome a discussion about how best to handle this in API scripts.

The script shows a web form with a textbox.  If, for example
'adm\d*\..*' was entered and then the Search button clicked, only
hosts with names similar to 'adm01.company.com' would be shown.  If
the textbox is empty, all hosts are returned after clicking search.

The more hosts to be returned, the slower the page is.  This is a pity
but is directly related the amount of data returned by the API calls.

Hope this is helpful.

Thanks

CC

-- 
RHCE#805007969328369
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scr.cgi
Type: application/octet-stream
Size: 9062 bytes
Desc: not available
URL: <https://www.redhat.com/archives/spacewalk-devel/attachments/20091204/0b0ba51e/attachment.obj>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic