Hitachi

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


9.27 monts (collects HA Monitor troubleshooting information)

Format

monts

Users who can execute the command

Superuser

Description

The monts command collects in a regular file information required for troubleshooting HA Monitor. The file is output in tar format.

Options

None

Return codes

Value

Meaning

0

Normal termination (HA Monitor troubleshooting information has been collected)

Other than 0

Abnormal termination

Example

>monts
 
### Collect HAmonitor's trouble-shoot informations DATE:2012/04/19 20:54:07 ###
 
This command is collecting HAmonitor's trouble-shoot informations to the file. 
   Input the file name. If specified file name only, output file will be made on /tmp. 
   (If you Hit only Enter-key, assumed /tmp/monts.tar)
=>
>/tmp/monts.tar
Please push a return key. 
   =>
>
   Now outputting error information to the file. Wait for a while. 
   Execution is Completed.

Legend: >: Indicates a user operation.

Notes

This command is executed interactively. If you do not want to execute it interactively (you want to execute it non-interactively), create a shell as shown below:

#!/bin/sh
# syntax : monts.sh outputfile-pathname
TARFILE="$1"
MONTS_CMD="/opt/hitachi/HAmon/bin/monts"
echo "${TARFILE}" | ${MONTS_CMD}
exit 0

This example specifies the absolute path of the output destination file in the first argument when the shell is executed.