rmrsrc [-h] -s "Selection_string" [-T] [-V] Resource_class
rmrsrc [-h] -r [-T] [-V] Resource_handle
The rmrsrc command removes (undefines) the specified resource instance or resource instances. The rmrsrc command makes a request to RMC to undefine a specific resource instance. The resource manager of the resource removes the resource.
The first format of this command requires a resource class name parameter and a selection string specified using the -s flag. All resources in the specified resource class that match the specified selection string are removed. If the selection string identifies more than one resource to be removed, it is the same as running this command once for each resource that matches the selection string.
The second format of this command allows the actual resource handle linked with a specific resource to be specified as the parameter. It is expected that this form of the command would be more likely used from within a script.
-s 'Name == "testing"'
-s 'Name ?= "test*"'
Only persistent attributes may be listed in a selection string. For information on how to specify selection strings, see "Using Expressions" in the chapter "Using the Monitoring Application" of the RSCT 2.2 Resource Monitoring and Control Guide and Reference.
This command requires root authority.
rmrsrc -s 'Name == "c175n05"' IBM.Host
rmrsrc -r "0x4017 0x0001 0x00000000 0x0069684c 0x0d52332b3 0xf3f54b45"
/usr/sbin/rsct/bin/rmrsrc | Location of the rmrsrc command. |
The lsrsrc, mkrsrc commands.
The rmccli General Information file
The RSCT 2.2 Resource Monitoring and Control Guide and Reference contains more information regarding RMC operations.