Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
There are two way to add a resource which one is select this from a group name and another is select this from a resource type.
Adding in Group
select Select a group -> → right click -> → 'Add Resource'.
[Figure] Adding Resource in a group- Select 'Application' from Resource Type lists and click 'Next' button.
[Figure] Resource Wizard Selection View - Next steps are same as adding in resource type.
Adding in Resource Type
- ResourceType - → Right Click - → Click Add Resource.
[Figure] Adding Application Resource in a resource type - Enter pre-script file name in the StartProgram, StopProgram and MonitorProgram box.
[Figure] Entering script file View - 시작 프로그램, 종료 프로그램, 감시 프로그램은 파일 선택 아이콘을 클릭하여 각 스크립트 파일을 선택할 수 있습니다You can click on the Start, Terminate or Monitoring program icon to run each script.
[Figure] Script file selection View - You can browse pre-scripted file when select the file selection icon.
[Figure] Select file editor View - You can also write the script through selecting write script icon.
[그림] 파일 에디터 선택시 나타나는 화면Figure] Screen Appearing when You Select File Editor After you have completed all of the input screen.
Info MCCS checks the list of monitor process list and monitor program when all the MonitorProgram and MonitorProcesses is entered.
[Figure] Enter the script files and path for each attribute- If you have an account that can execute application resource, you can enter the account as below.
[Figure] Defining user account - Click "Finish" and resource is added.
[Figure] Adding Application resource is completed
Deleting
Select resource type - → right click - → delete resource.
Select delete menu.
[Figure] Deleting application resource view
State
다음 테이블은 상태와 사용자 명령에 의해 발생되는 MCCS 리소스의 상태 변화에 대한 설명입니다.
명령은 사용자에 의해 발생되는 것을 전제로 합니다.
복합 응용 에이전트: 일반적인 어플리케이션 항목을 관리합니다.
기본 응용보다 복잡하고, 더 많은 확장성을 제공하여 애플리케이션, 서비스 등을 관리합니다.
...
온라인
MonitorProcesses에 등록된 모든 프로세스들이 실행 중이고 MonitorProgram이 '0'을 반환하는 상태입니다.
...
StopProgram 속성에 등록된 스크립트를 실행합니다.
...
MonitorProgram 속성에 등록된 스크립트를 실행합니다.
스크립트로 감시 할 경우에는 종료 값이 0 일 경우 성공, 그 외의 경우에는 실패를 의미합니다.
MonitorProcesses 속성에 등록된 프로세스 목록으로 감시할 때는 리스트에 등록한 모든 프로세스가 구동중일 경우 성공, 그렇지 않으면 실패를 의미합니다.
프로세스 목록과 스크립트를 모두 등록할 경우에는 2 가지 조건이 모두 성공해야만 성공을 의미하며, 프로세스 목록이 없거나 스크립트가 성공이 아니라면 실패로 간주하게 됩니다.
...
오프라인
MonitorProcesses에 등록된 프로세스 중에서 하나라도 종료되었거나 감시 프로그램이 '0'이 아닌 값을 반환할 때는 오프라인 상태로 판단합니다.
...
StartProgram 속성에 등록된 스크립트를 실행합니다.
StartProgram 속성은 배치 스크립트를 사용하여 기본 응용 리소스보다 유연하게 프로그램을 실행할 수 있습니다.
잘못된 경로를 입력한 경우에는 MCCS가 에러 로그를 출력하고 리소스를 사용할 수 없게 합니다.
...
위에 모니터링 명령 참조
...
장애
리소스가 온라인 상태에서 에이전트의 종료 명령을 거치지 않고 오프라인 상태로 변경되었을 경우에 장애 상태로 판단합니다.
...
위에 온라인 명령 참조
...
...
Status
The following table explains the status switching of the MCCS resource caused by a user's command and the status.
The command assumes that it is generated by a user.
Application agent: It manages general application items.
It provides a more complex, wider expandability than processes to manage applications and services.
Status | Agent command | Description | Note |
---|---|---|---|
Online All the processes registered in MonitorProcesses are running and MonitorProgram returns '0'. | Offline | Runs the script registered in the StopProgram attributes. | |
Monitoring | Runs the scripts registered in the MonitorProgram attributes. | ||
Offline If any one of the processes registered in MonitorProcesses is terminated or the monitoring program returns a non-zero value, it is deemed as offline. | Online | Runs the script registered in the StartProgram attribute. | |
Monitoring | Refer to the description of monitoring as above. | ||
Trouble When the online resource is switched to offline without using the agent termination command, it is defined as the trouble state. | Online | Refer to the above online command. | |
Offline | Runs the script registered in the StopProgram attributes. |
Attribute
[Figure] Application Attribute
...
Attribute | Description | Type | Default | Edit | Note | ||
MonitorProcesses | 감시할 프로세스의 목록입니다. | STRING | O | 상태 감시를 위해 실행할 프로그램 혹은 배치 스크립트의 경로명을 입력합니다.
MonitorProgram이 없을 경우 필수로 이 속성을 입력해야 합니다. 두 속성을 모두 입력할 수 있으며, 두 속성 입력 시 모두 만족해야 합니다. | MonitorProgram | If there is no MonitorProgram, you must enter the attribute. | |
MonitorProgram | Enter the path for the program or batch script used to monitor status | FILE | O | ||||
StartProgram | 리소스를 시작할 때에 실행할 프로그램 혹은 배치 스크립트 경로를 입력합니다Enter the path for the batch script or program to run when starting the resource. | FILE | O | ||||
StartupDirectory | 프로그램이 시작되는 작업 디렉토리 입니다. 입력 값이 없으면 It is the working directory where the program starts. If there is no input, it means $MCCS_HOME 을 의미합니다. | DIRECTORY | (.) | O | |||
StopProgram | 리소스를 종료할 때에 실행 프로그램 혹은 배치 스크립트 경로입니다It is the path for the batch script or program to run when terminating the resource. | FILE | O | ||||
User | 프로그램을 사용할 수 있는 권한을 부여받은 사용자 계정입니다. | STRING | root | O |
속성 값은 해당 리소스를 등록할 때에 입력된 값이며, '리소스 고유 속성'에서 값을 변경하거나 확인할 수 있습니다.The attribute value is entered to register the resource, and you can change or check it in the 'Specified Attribute'.