9.10 monend (terminates servers in the monitor mode)
Format
- Terminating a server:
-
monend server-alias-name
- Terminating a server (the return code reflects the result of the server termination command):
-
monend -w server-alias-name
Users who can execute the command
Superuser and general user
Description
If the active server in the monitor mode stops, this command notifies HA Monitor of the event so that HA Monitor stops host monitoring and terminates the corresponding standby server.
Options
-
server-alias-name
Specifies the alias name of the active server that is to be terminated.
-
-w
You can abnormally terminate the monend command by specifying this option if the server termination command returned a return code other than 0 or if the server termination command cannot be executed.
Return codes
If the -w option is not specified:
|
Value |
Meaning |
|---|---|
|
0 |
Normal termination (Termination of servers in the monitor mode was completed regardless of whether the termination command was successful.) |
|
Other than 0 |
Abnormal termination |
If the -w option is specified:
|
Value |
Meaning |
|---|---|
|
0 |
Normal termination (The server in monitor mode was successfully terminated (the return code of the server termination command was 0).) |
|
Other than 0 |
An error occurred during termination of the server in monitor mode. This command also abnormally terminates if the server termination command terminates with a return code other than 0. This command does not abnormally terminate if disconnection of a disk or another resource fails. |
Notes
-
The monend command can be used only for servers in the monitor mode.
-
The monend command can be executed only from the active system.
-
HA Monitor does not handle any errors that occur during termination command processing. Monitor syslog and product-specific logs and check logged entries, and then take any necessary measures.