3.4.0 Matrix Server Administration Guide

Chapter 13: Configure Device Monitors 161
Copyright © 1999-2006 PolyServe, Inc. All rights reserved.
Custom Scripts
The Scripts tab lets you configure custom Recovery, Start, and Stop scripts
for a device monitor.
Device monitors can optionally be configured with scripts that are run at
various points during matrix operation. The script types are as follows:
Recovery script. Runs after a monitor probe failure is detected, in an
attempt to restore the device.
Start script. Runs as a device is becoming active on a server.
Stop script. Runs as a device is becoming inactive on a server.
When a monitor is instantiated for a device (because the ClusterPulse
process is starting or the configuration has changed), Matrix Server
chooses the best server to make the device active. The Start script is run
on this server. The Stop script is run on all other servers configured for
the monitor to ensure that the device is not active on those servers.
Start scripts must be robust enough to run when the device is already
started, without considering this to be an error. Similarly, Stop scripts