8.2.10 maction.properties (Property file for execution of Management actions)
- Organization of this subsection
(1) Format
This file is a Management Server property file and has the J2SE property file format.
(2) File storage location
-
In Windows
Cosminexus-installation-directory\manager\config\
-
In UNIX
/opt/Cosminexus/manager/config/
(3) Functionality
Define the Management action corresponding to the message ID reported in the Management event.
(4) Specifiable keys
The following table describes the keys that you can specify, their contents, and the default values used when the specification is omitted:
(5) Examples of settings
The contents of the maction.properties file are as follows:
-
In Windows
# Management-action-definition maction.restart.command=c\: \\tmp\\command1.bat maction.restart.timeout=12 maction.restart.timeout.forced_stop=true maction.restart.exclusive_time=60 maction.restart.max_executable_actions=1 # Mapping-between-message-ID-and-Management-action maction.message.KDJE11111-E.mactions=restart maction.message.KDJE22222-E.mactions=restart # Mapping-between-Logical-server-and-Management-action maction.server.j2ee1.mactions=restart maction.server.j2ee2.mactions=restart maction.server.j2eeClstr1.mactions=restart
-
In UNIX
# Management-action-definition maction.restart.command=/tmp/command1.sh maction.restart.timeout=12 maction.restart.timeout.forced_stop=true maction.restart.exclusive_time=60 maction.restart.max_executable_actions=1 # Mapping-between-message-ID-and-Management-action maction.message.KDJE11111-E.mactions=restart maction.message.KDJE22222-E.mactions=restart # Mapping-between-Logical-server-and-Management-action maction.server.j2ee1.mactions=restart maction.server.j2ee2.mactions=restart maction.server.j2eeClstr1.mactions=restart
(6) Precautions
-
Priorities in the case of duplicate specifications of a Management action:
For the following property keys, the logical server, service unit, and physical tier have an inclusive relationship such as:
J2EE server < J2EE server cluster < service unit <physical tier.
-
maction.server. logical-server-name.mactions
-
maction.unit.Web-system-name.service-unit-name.mactions
-
maction.tier.Web-system-name.physical-tier-type-name.mactions
Therefore, when different Management actions are specified for each logical server having an inclusive relationship (for example, J2EE cluster and a J2EE server that is an element of the J2EE cluster), only one of the specified Management actions is performed based on the following order of priority:
-
The J2EE server that issued the Management event
-
The J2EE server cluster that includes the J2EE server that issued the Management event
-
The service unit that includes the J2EE server that issued the Management event
-
The physical tier that includes the J2EE server that issued the Management event
Moreover, if the orders of the Management actions specified in the mapping between message ID and Management action and specified in the mapping between logical server and Management action, are different, priority is decided by the order of Management action ID specified in the mapping between message ID and Management action (maction.message.message-ID.mactions key).
- Example: Example of prioritizing act1
-
maction.message.KDJE99999-E.mactions=act1,act2
maction.server.J2EE01.mactions=act3,act2,act1
Note that in this example, KDJE99999-E is the message ID and J2EE01 is the logical server.
-
-
Standard output or standard error output
The Management Server does not collect the standard output or standard error output from the command that is executed as Management action. Therefore, when acquiring the standard output or standard error output information of the commands, you need to output that information to a file, as a part of the command.