...
[Figure] Resource Attribute View
Attribute | Description | Type | Default | Edit | 비고 | |
---|---|---|---|---|---|---|
Key Attribute | *Critical | When a failure occurs in the resource it indicated whether to failover the whole group. | BOOLEAN | X | ||
*Enabled | It is used when deciding whether to manage the resource. | BOOLEAN | X | |||
General Attribute | *AgentState | It indicates the agent state of the resource. | STRING | X | ||
BatchAfterOffline | This is a batch command to be executed after a resource is taken offline. | FILE | O | |||
BatchAfterOnline | This is a batch command to be executed after a resource is brought online. | FILE | O | |||
BatchBeforeOffline | This is a batch command to be executed before a resource is taken offline. | FILE | O | |||
BatchBeforeOnline | This is a batch command to be executed before a resource is brought online. | FILE | O | |||
BatchTimeout | It is the waiting time until execution of batch command completes. If execution result is over this time, it is considered as a failure. (unit = second) | INTEGER | 300초 | O | ||
*CleanProgram | This program is executed to initialize related resources and state when a failure occurs to a resource. This program must be written separately. | FILE | O | |||
Failoverable | It indicates whether the resource is in the state to be failover. | BOOLEAN | X | |||
*Group | It is the name of the group which the resource belongs. | STRING | X | |||
LastOnline | It is name of the node on which state of the resource is online lastly. | STRING | ||||
*Monitored | It periodically records whether monitoring is completed. | BOOLEAN | X | |||
*NoAction | It is only for persistent resources. If it is 'true', action like Online, Offline, other than monitoring will be prohibited. | BOOLEAN | X | |||
*ResName | It is the name of the resource. | NAME | X | |||
Restartlimit | It shows the number to restart before failover when the resource is determined as a failure. | INTEGER | 0회 | O | ||
*State | It is the resource state of each node. | STRING | X | |||
*Type | It is the name of the agent type of the resource. | STRING | X |
...
mcres [-u userid -pw password] [-n node_ip_address] [-p port] -command [ resource ] [ -g group ] [ -n node] mcres [-u userid -pw password] [-n node_ip_address] [-p port] -add [ resource ] [ -t resource_type ] [ -g group ] mcres [-u userid -pw password] [-n node_ip_address] [-p port] -monitor [ group_name ] [ -t interval(seconds)] mcres [-u userid -pw password] [-n node_ip_address] [-p port] -modify [ resource ] [-a attribute attribute_value] [ -g group ] [ -n node] |
Options
옵션 | 설명 |
-h | It prints help menu. |
-u | 사용자 계정을 지정합니다. |
-pw | 사용자 Password를 지정합니다. |
-n | It defines the node to access to execute command. If omitted, it will access to execute command for local node. |
-p | It defines the port to access to execute command. If omitted, it will access to the default value which is 4321, and when you define specific port number as heartbeat, enter this followed by --p. |
-resourcecommand | It defines resource command. (add, delete, enable, disable, monitor, modify, link, unlink, local, Global, Online, Offline, Offlineprop, Probe, clear, list) |
resource | It enters resource name. |
-a | [list] It defines the attribute value that should be listed if it is command. |
-t | It defines resource type when it is [-add] command. It specifies time interval when it is [-monitor] command. |
-g | It defines group name to be managed. |
-n | It defines node name to be managed. |
...