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
rhn-actions-control --enable-run
# Now create the missing directory, the command script gets placed there temporarily
mkdir /var/spool/rhn/
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.
Ahhh, that’s what I searched for!
Hi,
Where can i find the rhncfg_5.10.14-1ubuntu1.all.deb for xenial ?
Thanks
Best regards
use the xenial debs from here and the “precise” ones for the others. https://launchpad.net/%7Emj-casalogic/+archive/ubuntu/spacewalk-ubuntu/+packages