Spacewalk Remote Command Execution with Ubuntu / Debian clients
In my last article I’ve shown you how to get OSAD working for Ubuntu clients. Which comes in handy for my new article about remote command execution. With the help of OSAD the commands will be executed immediately and you dont need to wait for clients to check-in and pick them up.
Read on after the jump…
Again thanks to Martin Juhl for the needed packages. Find them here
Getting this to work was nearly straight-forward, only one directory needs to be created manually. The package install misses that and prevents the remote commands from being executed.
# this is important and touches the file /etc/sysconfig/rhn/allowed-actions/script/run
# Now create the missing directory, the command script gets placed there temporarily
One thing left to do: Add provisioning entitlement to your system.
In Spacewalk, you can now go to the systems details page to the tab “Remote Command” and enter and schedule a command or script ot be executed.
After its being executed you can go to the “Events->History” tab and review the results.
The Remote Command functionality can also be used with the System Set Manager and run on multiple systems at once.