[Spacewalk-list] spacewalk api equivalent to "Compare all managed files to system"

Jan Hutař jhutar at redhat.com
Wed Oct 24 11:33:36 UTC 2012


On Fri, 5 Oct 2012 19:05:29 -0500 john miller
<johnmille1 at gmail.com> wrote:

> is there a spacewalk api equivalent to "Compare all managed
> files to system" link in the webgui? On a single system I
> would like to compare all files on a particular system. I was
> hoping for something like system.config.scheduleFileComparisons
> (key, id).
> 
> so far the closest I can come up with is
> 
> for file in configChannel.listFiles(key, channelLabel)
>    configChannel.scheduleFileComparisons(key, channelLabel,
> file['path'],[systemId])
> 
> 
> But this will schedule a separate event for each file? correct?

Have not tried, but would say so.

What you might want is to run `rhncfg-client diff` on a given
channel, but scheduling an remote action for that, is probably
too ugly.

Jan



-- 
Jan Hutar     Systems Management QA
jhutar at redhat.com     Red Hat, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20121024/118f0439/attachment.sig>


More information about the Spacewalk-list mailing list