Tivoli Storage Resource Manager's Triggered Action Facility allows you to define thresholds and constraints that result in notification or action. The Triggered Action Facility is script-based, allowing you to use any third-party tools for actions, such as archiving, back-up and recovery, or provisioning.
How does Tivoli Storage Resource Manager run scripts?
During installation, Tivoli Storage Resource Manager creates a directory called: \program files\Tivoli\TSRM\gui\scripts. This is created on every Server and every Agent machine.
There are two main reasons to run a script:
in response to an Alert
for batch reports
1. When a script is run, the Server looks in its local \scripts directory. If the Server can resolve that script name, it loads that script, sends it to the Agent where you designated the script to be run.
2. The Agent receives the script, names it as temporary file, and runs it. After the Agent has finished running the script, the temporary file is deleted.
There are two conditions why the script may not run when sent by the Server:
a. The script already exists in the Agent's \scripts directory. In this case, the Agent will ignore the script sent by the Server, and just run its local version.
b. If you did not check the Agent may run scripts sent by server option in the installation parameters screen, the Agent will ignore the script sent by the server.
If you checked the Agent may run scripts sent by server option in the installation parameters screen, the Agent will run scripts sent by the Server. The advantage of checking this option is you can store only one copy of the script on the Servers' \script directory, and do not have to keep a copy of the script on every Agent machine. Then when a script needs to be run on a particular Agent, the Server will access the script from it's local \script directory and send it to the Agent to be run. When the script is pushed out to the Agent, it is named as temporary file. After the Agent has finished running the script, the temporary file is deleted.
For example: If a computers' filesystem free space went below a certain threshold, you can run a script based on that threshold on the machine where the filesystem exists. Here, you would not target a particular Agent on which to run the script, but instead, the script should run on which ever computer that has the filesystem low freespace condition. If you did NOT check the Agent may run scripts sent by server option, and in order to ensure that the script is run on any specific Agent, you would have to make sure that the script is stored on every single Agents' \scripts directory. However, if you checked the Agent may run scripts sent by server option, the Server will push out the script to the Agent machine that has the low freespace condition. In this case, you only have to ensure that the script exists on the Servers' \scripts directory, and not on any of the Agents' scripts directory. And the script will then run on whatever Agent has the low freespace condition. (See the Tivoli Storage Resource Manager Installation Guide for more information.)