Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
리소스란 ?
리소스란 하드웨어 또는 소프트웨어적으로 서비스 운영에 필요한 자원 요소를 말하며 네트워크 인터페이스 카드(Network Interface Card), IP 주소(IP Address), 프로세스(Process), 서비스(Service), 스토리지(Storage) 등을 말합니다. MCCS에서는 리소스를 고가용성 운영 관리의 최소 단위로 다룹니다.
...
리소스들에 명령을 내리고 모니터링을 하는 작업은 해당 타입의 에이전트가 담당하게 됩니다.
리소스 속성
리소스 속성은 리소스가 동작을 취하거나 상태를 판단할 때 참조하는 값입니다.
...
리소스에 관한 명령을 전달 합니다. 리소스에 대해 추가, 삭제, 온라인, 오프라인, 속성 편집 등의 명령을 내릴 수 있습니다.
Syntax
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] |
...
testGroup그룹에 복합 응용 타입으로 testResource 를 생성합니다.
mcres -add testResource -t Application -g testGroup |
delete
testResource 리소스를 삭제합니다.
mcres -delete testResource |
...
testResource 리소스를 활성화시킵니다.
mcres -enable testResource |
...
testResource 리소스를 비활성화 시킵니다.
mcres -disable testResource |
...
testGroup 에 속한 모든 리소스를 interval 간격으로 모니터링 합니다. 주기가 지정되지 않은 경우에는 3초가 기본값으로 지정됩니다.
mcres -monitor [testGroup] [-t interval(seconds)] |
testGroup을 10초 간격으로 모니터링 합니다.
mcres -monitor testGroup -t 10 |
...
testResource 리소스의 attribute를 value 값으로 수정합니다.
mcres -modify testResource -a attribute value [ -n node] |
testGroup의 testResource 리소스의 User속성 값을 administrator로 수정합니다.
mcres -modify testResource -a User administrator -n testGroup |
...
resource1을 부모로 resource2를 자식으로 의존 관계를 생성합니다.
mcres -link resource1 resource2 |
unlink
리소스 의존 관계를 삭제합니다.
mcres -unlink resource1 resource2 |
...
(실제 속성 값 수정은 modify 명령을 통해 수정해 주어야 합니다.)
mcres -local testResource -a attribute |
...
testResource 의 속성을 모든 노드들의 속성값에 대하여 공통된 값을 입력할 수 있도록 공용화 합니다.
mcres -global testResource -a attribute [value] |
testResource 의 속성 User를 전체 속성으로 값을 administrator로 설정합니다.
mcres -global testResource -a User administrator |
...
testNode에 있는 testResource 리소스를 온라인 시킵니다.
mcres -online testResource -n testNode |
...
testNode의 testResource 리소스를 오프라인 시킵니다.
mcres -offline testResource -n testNode |
...
testNode의 testResource 리소스의 자식 리소스를 오프라인 시킵니다.
mcres -offlineprop testResource -n testNode |
...
testNode의 testResource 리소스를 탐색합니다.
mcres -probe testResource -n testNode |
...
testNode의 testResource 리소스의 에러를 제거합니다.
mcres -clear testResource [ -n testNode] |
list
현재 리소스 상태를 출력합니다.
mcres -list [resource [ -a attribute]] | [-g group [-a attribute]] |