Hitachi

For Linux(R) (x86) Systems HA Monitor Cluster Software


6.22.1 Environment variables for commands that are executed from HA Monitor

The following table lists the environment variables that are applied when a user-created command is executed.

Table 6‒22: Environment variables applied when a command is executed

No.

Command

Environment variable

1

User command

(changing the status of HA Monitor)

Starting HA Monitor (monstart command)

RHEL 6 or earlier:

Environment of the user who executes the monstart command

RHEL 7 or later:

Execution environment for systemd

Starting HA Monitor (automatic startup)

RHEL 6 or earlier:

Execution environment for init

RHEL 7 or later:

Execution environment for systemd

2

User command

(changing the status of the server)

Execution environment when HA Monitor is started (same as item 1)

3

Server start command

Execution environment when HA Monitor is started (same as item 1)

Note that the environment of the user who executed the monbegin command applies in the following cases:

  • The monbegin command is executed to start the active server.

  • The server that was started as the standby server by executing the monbegin command is started as the active server when hot-standby switchover occurs.

4

Server termination command

Execution environment when HA Monitor is started (same as item 1)

5

Server monitoring command

Execution environment when HA Monitor is started (same as item 1)

The environment variables that are applied depend on how HA Monitor is started and when the command is executed. Therefore, specify the necessary operating environment variables in the command.