clcheck_server command

Purpose

Returns status of daemons in a PowerHA® SystemMirror® cluster.

Syntax

clcheck_server daemon

Description

The clcheck_server command returns the status of the named daemon. This command is for use within shell scripts that need to reliably determine the status of a daemon. This command makes extra checks beyond what is done by the lssrc command that is provided by the System Resource Controller (SRC).

Before you use the clcheck_server command, you must understand the purpose of the daemon that is being checked.

Flags

daemon
Specifies the name of the daemon that you want to check.

Example

To check the status of the clinfo daemon, enter:

    if ! clcheck_server clinfoES
    then
	echo "clinfo is active"
    else
	echo "clinfo is inactive"
    fi