HP ProLiant DL380G5-WSS 3.7.0 HP StorageWorks HP Scalable NAS File Serving Sof - Page 348
Script environment variables, MX_PORT=Port or name
View all HP ProLiant DL380G5-WSS manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 348 highlights
• Ensure the availability of non-shared resources. For example, a Start script can start an auxiliary process needed by the monitored application if it is not already running. • Perform cleanup tasks such as killing any unreaped children of a failed application process. Stop scripts can be used for this purpose. In some cases the monitored service or device is actually started by something other than HP Scalable NAS before ClusterPulse is started. The Start script must be robust enough to run in this circumstance without considering it to be an error. Similarly, Stop scripts must be robust enough to run when the service is already stopped, without considering this to be an error. Start and Stop scripts must also handle recovery from events that could cause them to run unsuccessfully. For example, the system might run out of swap space while running a Start script, causing the script to fail and exit non-zero. The service could then become active on another server, causing the Stop script to run on the original server even though the Start script had not completed successfully. When you add Start and Stop scripts to a service or device monitor, you can set a timeout period for each script. Script environment variables When you specify a script for a service or device monitor, HP Scalable NAS sets the following environment variables for that script. MX_METHOD=(START|STOP|RECOVER|PROBE) The type of script (Start, Stop, Recovery, or probe). MX_ACTIVE_STATE=(ACTIVE|INACTIVE) Whether the script is being run on an active instance of the object. For example, if a service-monitor script is being run on the server that currently has the active virtual host, its state will be ACTIVE. For device-monitor scripts, the state is ACTIVE if the monitored device is active on the server running the script. MX_SERVER=IP address The primary address of the server that calls the script. The address is specified in dotted decimal format. MX_TYPE=(SERVICE|DEVICE) Whether the script is for a service or device monitor. MX_VHOST=IP address The IP address of the virtual host. The address is specified in dotted decimal format. (Applies only to service monitors.) MX_PORT=Port or name 348 Advanced monitor topics