Managing Devices in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Prepare to Write an RCM Script for Specific Site Use

This procedure lists some preparatory steps to take before writing an RCM script for site customization. After you have completed writing the script, install and test it.

To install the script, see How to Install an RCM Script. To test the script, see How to Test an RCM Script. For an example of an RCM script, see Tape Backup RCM Script Example.

  1. Identify the resources to be dynamically removed.

    Make sure to list the devices' logical Ap_Id.

    # cfgadm -al
  2. Identify the applications and the commands to stop them before resources can be removed.

    Consult the applications' documentation for these commands.

  3. Identify the script commands to run before the resources are removed.

    Refer to the rcmscript(4) man page.

  4. Identify the script commands to run after the resources are removed.

    Refer to the rcmscript(4) man page.