If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
In the left
pane of the Console, select Diagnostics > Diagnostic
Diagnostic System Modules table, select the name
of the diagnostic system module you want to assign the script action
Select Configuration > Policies and Actions >
Select Script from the Type list and click
Enter a name for the script action in the Action
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
To enable or disable the script action, select or deselect the
Enable Action box.
On the Script Action Properties page:
In Working Directory, enter the
working directory location for the child process.
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.
In Environment Variables, enter a map
of the environment variables to set for the child process.
In Parameters, enter an array of
ordered command-line arguments to the target script.