Appendix B. Using the SRM Script Library

Table of Contents
B.1. Linux FailSafe application interfaces
B.2. Set Global Definitions
B.2.1. Global Variable
B.2.2. Command Location Variables
B.2.3. Database Location Variables
B.2.4. Script Log Level Variables
B.2.5. Script Log Variables
B.2.6. Script Logging Command Variables
B.2.7. Script Error Value Variables
B.3. Check Arguments
B.4. Read an Input File
B.5. Execute a Command
B.6. Write Status for a Resource
B.7. Get the Value for a Field
B.8. Get the Value for Multiple Fields
B.9. Get Resource Information
B.10. Print Exclusivity Check Messages

The /usr/lib/failsafe/common_scripts/scriptlib file contains the library of environment variables (beginning with uppercase HA_) and functions (beginning with lowercase ha_) available for use in your action scripts.

Note: Do not change the contents of the scriptlib file.

This chapter describes functions that perform the following tasks, using samples from the scriptlib file: