HmmControllerProcs.jacl script
Use the HmmControllerProcs.jacl script, we can modify our health management runtime configuration to enable or disable the health controller and automated restarts for the server, and set or retrieve values for other health management settings.
To change runtime settings, we must have operator or administrator administrative privileges.
Use the HmmControllerProcs.jacl file to complete the following actions.
- Enable or disable the health controller.
- Enable or disable automated restarts for the server.
- Set or retrieve values for other health management settings.
The HmmControllerProcs.jacl script only modifies the runtime configuration.
The HmmControllerProcs.jacl script is in the app_server_root/bin directory.
Run the following command.
wsadmin -profile HmmControllerProcs.jacl -c "insert_procedure_parameters"
Replace the insert_procedure_parameters variable with the name of the procedure and the proper variable values to complete our changes. We might have to modify the wsadmin command to wsadmin.sh or wsadmin.bat, depending on the operating environment.
Procedures
To see a list of all available procedures.
wsadmin -profile HmmControllerProcs.jacl -c "help"
- enable
- Enable the health controller.
- disable
- Disables the health controller.
- isEnabled
- Verifies that the health controller is enabled.
- enableServer node server
- Enable automated restarts for the server on the specified node.
- disableServer node server
- Disables automated restarts for the server on the specified node.
- isServerEnabled node server
- Verifies if automated restarts are enabled for the server on the specified node.
- isNodeMaintenance node
- Verifies if the health controller acknowledges that the specified node is in maintenance mode.
- getMaxConsecutiveRestarts
- Return the number of attempts to revive an application server after a restart is performed. If the maximum value is exceeded, the server is declared failed and server restarts are disabled.
- setMaxConsecutiveRestarts number_of_consecutive_restarts
- Set the number of attempts to revive an application server after a restart is performed.
- getControlCycleLength
- Return the length of time, in minutes, between health policy checks on the application server instances to determine if breaches occurred.
- setControlCycleLength time_in_minutes
- Set the length of time, in minutes, between health policy checks on the application server instances to determine if breaches occurred.
- getMinRestartInterval
- Return the length of time that must pass between application server instance restarts.
- setMinRestartInterval time_in_minutes
- Set the length of time that must pass between application server instance restarts.
- getRestartTimeout
- Return the length of time that the controller uses to wait for start and stop events during a restart before polling the server status.
- setRestartTimeout time_in_minutes
- Set the length of time that the controller uses to wait for start and stop events during a restart before polling the server status.
Example
The following command enables automatic restarts on the server_1 server, which runs on the node_1 node:wsadmin.sh -profile HmmControllerProcs.jacl -c "enableServer node_1 server_1"
Related:
Health management Configure health management Enable and disable health management Monitor and tuning health management Intelligent Management: administrative roles and privileges