Specify Script - Disk Defect Quota

Use this dialog box to specify a script to run when an alert is triggered by a disk defect quota violation.

Field Name

Description

Script Name

Enter the name of the script.

Where to Run

Select the Agent where you want the script to run from the drop-down list.

Script Parameters

This section displays what parameters will be passed to the script when it is run. The parameters will be passed in the order specified.

  • <computer> - computer name where the triggering condition occurred

  • <manufacturer>/<serial-number> - the manufacturer of the disk/serial number of the disk

  • <current-grown-defects> - the current number of grown defects on the disk

  • <old-grown-defects> - the previous number of old grown defects on the disk

  • <threshold> - the value that you set for the triggering condition. If the value unit was specified as a percentage,  then a % will follow this value.

Running Scripts in response to an Alert

When you define an Alert, you can define a script to be run when the triggered condition is met.

1. On the Alert tab, check Run Script.

2. Press Define. The Specify Script dialog box displays.

3. In the Script Name field: Enter the name of the script.

Note: This script name is used to tell the Server what script to send to the Agent. If the script sent by the Server is run by the Agent, the name of the script will not be the name you specify in the Script Name field. Instead, the Agent names the script as temporary file, runs it, then deletes it after the script has run. Because of this, you should not have code in your script that depends on this script name.

4. In the Where to Run field: Specify where you want the script to run. You can select a specific Agent, or the triggering computer. For example, if a constraint is violated on a filesystem on a specific machine, you would typically want the script to run the machine that triggered the constraint violation. (For some types of Alerts such as Job Failed, you will not have the option to run the script on the triggering computer. Here you can run the script on any agent you choose.)

5. The Script Parameters section displays what parameters will be passed to the script when it is run. Each triggering condition passes different parameters. The parameters will be passed in the order specified on the dialog box.

6. When you are finished, press OK.  The script will run when the Alert is triggered.

 

For more information, see Running Scripts - Overview.