[Spacewalk-list] triggering scripts on a client machine

Assaf Flatto assaf.flatto at goldmoney.com
Thu Apr 14 12:40:40 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


what I want to do is upload the files once ( the 60+ files ) ,but be able to schedule a remote command to run on a weekly/monthly basis .

i guess the second part can be done via a cron entry . 

On 14 Apr 2011, at 12:49, Brian Collins wrote:

>> What I'd like to ask is how can I make spacewalk deploy a file
> (bash
>> script ) and trigger it to execute ?  is that at all possible ?
> 
> Yes.  The easiest way is simply to schedule a remote command to run on
> the server.  I'm on Satellite, but I assume Spacewalk is quite
> similar...there is a Remote Command link for a system or a system set,
> and in there you can put script commands to run on the remote machine.
> You can schedule them to run "as soon as possible," which means the next
> time the system checks in, or no sooner than a specific time.
> 
> If you'd like to copy a script to the client and then execute it, that's
> a bit more tricky.  Essentially you'd have to upload it via a config
> channel, then run (via Remote Command) something like "at" to get it to
> go.  Or, I suppose you could upload the script to one of the cron
> folders, where it'd get picked up.  But I prefer the first method, of
> using Remote Command.
> 
>> Also is there a way to do a bulk upload of files to spacewalk ? I have
> about
>> 60+ scripts that I need to upload so a bulk upload will be very handy.
> 
> Yep, and fairly straightforward.  Use the Spacewalk APIs, which you can
> script with Perl, Python, Java, et al.  If you're familiar with Python,
> I have a couple of scripts that do this already for my Satellite
> installation.  The API isn't that tough to get started with.
> 
> But, if you're wanting to upload the scripts and then execute them
> remotely, that's a bit more involved. 
> 
> Brian Collins, RHCE
> Systems Engineer
> Southeastern Data Cooperative
> brianc at sedata.com
> 
> 
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 10.1.0 (Build 860)
Charset: us-ascii

wsBVAwUBTabrTGK6JZrjLX7GAQhoqwgAlSRAbFuhrgAPvRvfpnBhOlQkXY+Z1Kkp
MY5AYDyWbbFZ+XQ3mh8IKmjGk4bdX6Np5ltXEa5UUixOPpNSZgfLxY6oBESUYUwP
mMuqh+obl6hRVhHaUSUwSsPmqv18szi6f/ZKB2OvUJxOjqodjwQOb6OPA7OjOxky
HBYHCM0x/g0UlgkRQrNU37jA1r7hKBL/xdpTBpcGFjBrp2pssK1aqa2b3DaiHHJi
28tpPoEBwyP4cKt218acEXupJ5VzyZ/cTq39A4/v0XusxgQowOJHUp5IBEVxa3ha
JqzBsn/tpPOYnRPizXB+yvjFUzY2QMQjOJzXYL4qaqiSgVlPBhOFQg==
=qgZV
-----END PGP SIGNATURE-----




More information about the Spacewalk-list mailing list