Go to main content

Managing Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

How to Prepare to Write an RCM Script for an Application

This procedure lists some preparatory steps to take before writing an RCM script for applications. 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 the application uses.

    These are resources that you can potentially remove which would affect the application.

    # cfgadm -al
  2. Identify the application commands for releasing the resource.

    These commands instruct the application to release the resource in an orderly fashion. Consult your application's documentation for these commands.

  3. Identify the script commands that remove the resource.

    These commands include notifying the application that the resource has been removed. Refer to the rcmscript(4) man page.

  4. Identify the script commands that would notify the application about the availability of the resource, if the resource is replaced.

    The commands should also include those that automatically run if the resource removal fails.

  5. Write the RCM script and assign it a name the uses the following format:
    vendor,service
    • vendor – the stock symbol of the vendor that provides the script, or any distinct name that identifies the vendor.

    • service – the service that the script represents.