Working With System Image Definitions › Logical Resources
Logical Resources
The function of some resources is purely to elicit some sort of activity from another resource (for example, starting or stopping other resources). Other resources might be logical representations of groups of resources. Define these types of resources as the LOGICAL resource type.
Note: The name of a logical resource must contain alphanumeric, @, #, $, ., :, -, (, and ) characters only. It must not be a number.
Logical resources respond to some actions differently from the other types of resources.
Logical resources respond to the displaying action as follows:
- If no command or process exists for the action, the actual state of the resource is set according to the operation mode:
- In the AUTOMATED operation mode, a displaying action sets the actual state of the resource that is opposite to the value of the desired state to drive automation.
- In the MANUAL operation mode, a displaying action sets the actual state of the resource to the value of the desired state.
- If a command or process exists, the region uses the command or process to set the actual state of the resource.
Logical resources respond to the starting, stopping, and forced stopping actions as follows:
- If no command or process exists for the action, the actual state of the logical resource is set to the expected result of the action. A starting action results in an ACTIVE actual state; a stopping action results in an INACTIVE actual state.
- If a command exists and no time-out processing is specified, the region issues the command and then immediately sets the actual state of the logical resource to the value of the desired state.
- If a command exists and time-out processing is specified, the time-out settings determine the final status of the resource.
- If a process exists, the region acts the same way as for other resources (that is, the region responds according to the process return code).