10.1 Running Command Scripts on Remote Client Systems Using the Spacewalk Web Interface

Figure 10.1 Remote Command Page

The image shows the Remote Command page of the Spacewalk web interface.

To run a command on a remote client:

  1. Go to Systems and select the client system from the list.

  2. Select Details and then select the Remote Command tab.

  3. If required, change the user and group ID of the user that should run the command, the command timeout, and a command label of up to 10 characters.

  4. In the Script text box, enter the command script that you want to run. The following example runs the yum update command:

    #!/bin/sh
    yum update
  5. If required, change the schedule for the command.

  6. Click Schedule to commit the command script to run according to the schedule that you specify.

    If you have not edited the schedule and you have enabled the OSA daemon on the client, the OSA daemon usually runs the command immediately.

  7. Select Events and then select the Pending or History tab to view scheduled or completed actions. Click the summary name to display the details of the script and any output if it has already run on the client.