You need to gather some information before writing an RCM script for site customization.
Identify the resources to be dynamically removed.
Make sure to list the devices' logical Ap_Id.
# cfgadm -al
Identify the applications and the commands to stop them before resources can be removed.
Consult the application documentation for these commands.
Identify the script commands to run before the resources are removed.
Refer to the rcmscript(5) man page.
Identify the script commands to run after the resources are removed.
Refer to the rcmscript(5) man page.