Running a command definition

After creating a command definition, you can run it on one or more specific managed resources. Run the command definition immediately, or schedule the command to run at a specific time or at regular intervals.

About this task

Note:

This topic describes how to access this task in the IBM® Flex System Manager Web user interface. If you are using the IBM FSM Explorer, use the finder at the top of the user interface (shown here) to locate this task:

Use the finder at the top of the user interface to locate this task

As an alternative to using the Command Automation task in the IBM Flex System Manager Web interface, you also can specify the command definition as an action in an event automation plan.
Note:
  • Command automation is supported only on systems on which Common Agent is installed.
  • Using the Command Automation task to start interactive programs, for example notepad.exe, is not supported.
  • A Command Automation task that is submitted with the log option returns the output only after the underlying command or task is complete. There is no intermediate periodic checking and gathering of remote command output.
Note: After submitting a Command Automation job, you cannot cancel it until either the task completes or automation timeout occurs. However, if a process is running on a resource, it can be listed and cancelled, if needed. Use System Status and Health > Process Management to cancel a process.

To run a command definition, perform the following steps:

Procedure

  1. On the Initial Setup tab of the Home page, click Chassis Manager. On the Chassis Manager page, type Command Automations in the Find field, then click Command Automations in the resulting list on the Tasks tab.
  2. Select the command definition that you want to run. The Command Automation page is displayed.
  3. Click Run. The Launch Job window displays.
  4. Use the Launch Job window to specify one or more target resources on which you want to run the command and determine when you want to run the command. You can also specify other options, including notification settings.
  5. After you finish specifying the configuration for this command definition in the Launch Job window, click OK to use your settings to run the command definition.