I was just reading this, and thought this is related and might be interesting:
I have been writing a sort of Satellite shell in Python in my spare time at work over the last few weeks. I am not a programmer, so the code quality might be a bit below par compared to you guys and I'd have to consult my employer, but if you're interested, I could post it as a base for you guys to build python stuff upon, if Python is what you want. And if I'm allowed to, that is... Maxim Burgerhout [email protected] ---------------- GPG Fingerprint 1CC2 A9B2 FE2E 799D 01DB 8A89 0AE8 B60A ACA3 4452 On Thu, Jul 9, 2009 at 13:26, Jesus M. Rodriguez<[email protected]> wrote: > Wow that's great. I love everything about it except the fact that it's > more perl code :) > Aside from that looks good. > > jesus > > 2009/7/9 Miroslav Suchý <[email protected]>: >> SPACEWALK-API(1) User Contributed Perl Documentation SPACEWALK-API(1) >> >> NAME >> spacewalk-api - Call Spacawalk API from command line. >> >> I had yesterday some time, so I picked up: >> https://bugzilla.redhat.com/show_bug.cgi?id=499161 >> >> You can download this script from: >> http://miroslav.suchy.cz/spacewalk/ >> Scroll down for description. >> >> Before I commit it to git, I would like to hear feedback from you. >> Do you like it? Do you dislike it? Is name OK. I do not want to name it >> simple "spacewalk", I suppose that spacewalk should be what is now >> /usr/sbin/rhn-satellite. >> Do you like the format of substition strings? >> Do you like the output? >> In which package it should land? rhn-client-tools? new package? >> >> >> SYNOPSIS >> spacewalk-api [OPTIONS] --server=spacewalk.domain.com FUNCTION [PARAM1 >> PARAM2 ...] >> >> DESCRIPTION >> spacewalk-api interact with the Spacewalk server and expose its API >> layer. >> >> FUNCTION is api method you wish to call and is followed by its >> parameters. There is few special substitution available: >> >> %session% >> Is replaced with sessionid. If you use --nologin option, then >> it is replaced by empty string. >> >> %file:/some/file% >> Is replaced by content of given file. >> >> OPTIONS >> --server >> URL of your Spacewalk server. >> >> --login --nologin >> If we should log in or not. Default is to log in. >> >> --user >> Name of user to log in. >> >> --password >> If you do not specify this and unless --nologin is specified, >> you will be prompted for your password. >> >> EXAMPLES >> spacewalk-api --server=spacewalk.com --nologin api.systemVersion >> >> spacewalk-api --server=spacewalk.com --user=foo --password=bar >> channel.listAllChannels "%session%" >> >> spacewalk-api --server=spacewalk.com --nologin proxy.isProxy >> ’%file:/etc/sysconfig/rhn/systemid%’ >> >> AUTHOR >> Miroslav Suchý <[email protected]> >> >> COPYRIGHT AND LICENSE >> Copyright (c) 2009 Red Hat, Inc. Released under GNU General Public >> License, version 2 (GPLv2). >> >> perl v5.8.8 2009-07-09 SPACEWALK-API(1) >> -- >> Miroslav Suchy >> Red Hat Satellite Engineering >> >> _______________________________________________ >> Spacewalk-devel mailing list >> [email protected] >> https://www.redhat.com/mailman/listinfo/spacewalk-devel >> > > _______________________________________________ > Spacewalk-devel mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/spacewalk-devel > _______________________________________________ Spacewalk-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-devel
