Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

MCCS 는 설치시 최초 사용자 계정으로 id 가 'admin' 암호가 'password'인 계정을 생성합니다.
CLI 명령을 실행시 id 와 password를 입력하지 않으면 , 위의 최초 사용자 계정의 id와 암호로 실행됩니다.
따라서 최초 사용자의 패스워드 변경시, 필수적으로 CLI 명령에 id와 password를 옵션으로 입력해야만 합니다.

Syntax

 

mcgroup [-u userid -pw password] [-ip node_ip_address] [-p port] -command [ group ] [-a attribute] [-r resource] [-n node]

 

...

Example

add

그룹 testGroup을 생성합니다.

 

mcgroup -u admin -pw password -add testGroup

 

delete

그룹 testGroup을 삭제합니다.

 

mcgroup -u admin -pw password -delete testGroup

 

...

testNode에서 testGroup을 온라인 시킵니다.

 

mcgroup -u admin -pw password -online testGroup [-n testNode]

 

...

testNode에서 testGroup을 오프라인 시킵니다.

 

mcgroup -u admin -pw password -offline testGroup [-n testNode]

 

...

testNode로 testGroup을 페일오버 시킵니다.

 

mcgroup -u admin -pw password -move testGroup [-n testNode]

 

...

testNode에서 testGroup의 장애 표시를 제거합니다.

 

mcgroup -u admin -pw password -clear testGroup [-n testNode]

 

...

testNode의 testGroup을 초기화 시킵니다.

 

mcgroup -u admin -pw password -flush testGroup -n testNode

 

...

testNode의 testGroup 속성을 수정합니다.

 

mcgroup -u admin -pw password -modify test -a attribute value -n testNode

 

testNode의 testGroup 속성인 AutoStart를 true로 변경합니다.

 

mcgroup -u admin -pw password -modify testGroup -a AutoStart true -n testNode

 

list

그룹 상태를 출력합니다.

 

mcgroup -u admin -pw password -list [group [-all] | [-dep [-r resource]] | [-a attribute] [-n testNode]]

 

그룹의 모든 속성값을 출력합니다.

 

mcgroup -u admin -pw password [-ip node_ipaddress] [-p port] -list [group [ -all]]

 

그룹에 속한 리소스의 의존성을 보여줍니다.

 

mcgroup -u admin -pw password [-ip node_ipaddress] [-p port] -list [-dep [-r resource]]

 

그룹의 속성값을 확인합니다.

 

mcgroup -u admin -pw password [-ip node_ipaddress] [-p port] -list [-a attribute] [-n testNode]]

 

...

testGroup을 임시 잠금 상태로 합니다.

 

mcgroup -u admin -pw password -lock testGroup

 

testGroup을 영구 잠금 상태로 합니다.

 

mcgroup -u admin -pw password -lock testGroup -p

 

unlock

testGroup의 잠금 상태를 해제합니다.

 

mcgroup -u admin -pw password -unlock testGroup

 

...

test Node의 testGroup 상태를 출력합니다.

 

mcgroup -u admin -pw password -state testGroup [-n testNode]

 

...

testGroup 상태를 interval 간격으로 모니터링 합니다.

 

mcgroup -u admin -pw password -monitor testGroup [-t interval(seconds)]

 

...