An application is similar to Process resource, but it is more flexible and can be managed by batch script which contains multiple processes.
The reason why program is executed using batch script is because it will make it possible managed by MCCS even when the name of starting program and running program is not the same. Besides this, it not only monitors the existence of process but also monitors the response of process with this.
For these reasons, batch script will provide more detail monitoring and flexibility and an application agent manages this.
Same as process, application is basically executed with the system account, but is can be executed with particular user by using attributes of User, Password, Domain.
이 페이지의 주요 내용
Adding
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
- When add a resource from a group name, select a group -> right click -> 'Add Resource'. Or select Edit(E) from the main menu bar -> select 'Add Resource'. Or select 'Add Resource' icon from the tool bar.
[Figure] Adding Resource in a group - Select 'Application' from Resource Type lists and click 'Next' button. When add a resource from the Application resource type name, this step will be skipped.
[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 Resource in a resource type - Enter Resource name, pre-script file name in the StartProgram, StopProgram and MonitorProgram box.
[Figure] Adding application resource view - You can browse pre-scripted file when select the file selection icon.
[Figure] Entering script file View - You can browse pre-scripted file when select the file selection icon.
[Figure] Script file selection View - You can also write the script through selecting write script icon.
[Figure] File Editor View After you have completed all of the input screen.
MCCS checks the list of monitor process list and monitor program when all the value of MonitorProgram and MonitorProcesses is entered.
[Figure] Enter the script files and path for each attribute- f 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 리소스의 상태 이동에 대해 설명합니다.
명령은 사용자에 의해 발생되는 것을 전제로 합니다.
복합 응용 에이전트: 일반적인 어플리케이션 항목을 관리합니다.
기본 응용보다 복잡하고, 더 많은 확장성을 제공하여 애플리케이션, 서비스 등을 관리합니다.
상태 | Agent 가능 명령 | 설명 | 비고 |
---|---|---|---|
온라인 MonitorProcesses에 등록된 모든 프로세스들이 실행 중이고 | 오프라인 | StopProgram 속성에 등록된 스크립트를 실행합니다. | |
모니터링 | MonitorProgram 속성에 등록된 스크립트를 실행합니다. | ||
오프라인 MonitorProcesses에 등록된 프로세스 중에서 하나라도 종료되었거나 | 온라인 | StartProgram 속성에 등록된 스크립트를 실행합니다. | |
모니터링 | 위에 모니터링 명령 참조 | ||
장애 리소스가 온라인 상태에서 에이전트의 종료 명령을 거치지 않고 | 온라인 | 위에 온라인 명령 참조 | |
오프라인 | StopProgram 속성에 등록된 스크립트를 실행합니다. |
Attribute
[Figure] Application Attribute
Attribute | Description | type | Default | Edit | Note |
Domain | It specifies domain of user account. | STRING | O | ||
MonitorProcesses | It is the list of the process to be monitored. | STRING | O | If Monitor Program does not exist, this is required and is able to insert both attributes Both must be satisfying when insert both attributes. | |
MonitorProgram | It is a program that executes programs for monitoring or inserts the path name of the batch script. | FILE | O | If MonitorProcesses does not exist, this is required and is able to insert both attributes Both must be satisfying when insert both attributes. | |
Password | It is the password defined by the user. | PASSWORD | O | ||
StartProgram | It is a program to bring online the Application in each node. | FILE | O | ||
StartupDirectory | It is a work directory. it means %MCCS_HOME if it does not have a input value. | DIRECTORY | (.) | O | |
StopProgram | It is a program to take offline the Application of each node. | FILE | O | ||
User | It is a user name which has received the permission to use the application. | STRING | System Account | O |
Attribute value of ArgList arguments are the values that are added resources and the value can be changed or viewed through ’Specified Attribute’ list on the detailed information panel.