You must include the following RCM commands in an RCM script:
scriptinfo – Gathers script information
register – Registers interest in resources
resourceinfo – Gathers resource information
You might include some or all of the following RCM commands:
queryremove – Queries whether the resource can be released
preremove – Releases the resource
postremove – Provides post-resource removal notification
undoremove – Undoes the actions done in preremove
For a complete description of these RCM commands, see rcmscript(4).