Administration Console Online Help

Previous Next Open TOC in new window
Content starts here

Create a script action

Before you begin

Create diagnostic system modules

To create a new script execution action:

  1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
  2. In the left pane of the Console, select Diagnostics > Diagnostic Modules.
  3. In the Diagnostic System Modules table, select the name of the diagnostic system module you want to assign the script action to.
  4. Select Configuration > Policies and Actions > Actions.
  5. Click New.
  6. Select Script from the Type list and click Next.
  7. Enter a name for the script action in the Action Name field.
  8. Enter the timeout period in the Timeout (in seconds) field. The timeout period is the length of time, in seconds, that an action has to complete execution. By default, the timeout period is 0, which disables the action timeout.
  9. To enable or disable the script action, select or deselect the Enable Action box.
  10. Click Next.
  11. On the Script Action Properties page:
    1. In Working Directory, enter the working directory location for the child process.
    2. In Path to Script, enter the full path to the location of the script you want to execute. This field is required and should be a relative path to DOMAIN_HOME/bin/scripts. If you enter an absolute path, WebLogic Server rejects it with an error.
    3. In Environment Variables, enter a map of the environment variables to set for the child process.
    4. In Parameters, enter an array of ordered command-line arguments to the target script.
  12. Click Finish.
  13. In the Change Center, click Activate Changes.

Back to Top