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.

dpkg -i rhncfg_5.10.14-1ubuntu1.all.deb
# 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.

remote command execution spacewalk ubuntu

The Remote Command functionality can also be used with the System Set Manager and run on multiple systems at once.

    • christian
    • February 17th, 2015 9:20am

    Ahhh, that’s what I searched for!

  1. February 12th, 2015