Veritas Volume Manager 4.1 Troubleshooting Guide (HP-UX 11i v3, February 2007)

37
Logging Commands and Transactions
4
This chapter provides information on how to administer logging of commands and
transactions in VERITAS Volume Manager (VxVM). For information on how to administer
error logging, see “Error Messages” on page 49.
Logging Commands
The vxcmdlog command allows you to log the invocation of other VxVM commands to a
file. The following table demonstrates the usage of vxcmdlog:
Command lines are logged to the file, cmdlog, in the directory /etc/vx/log. This path
name is a symbolic link to a directory whose location depends on the operating system. If
required, you can redefine the directory which is linked. If you want to preserve the
settings of the vxcmdlog utility, you must also copy the settings file, .cmdlog, to the new
directory.
Command Description
vxcmdlog -l
List current settings for command logging.
vxcmdlog -m on
Turn on command logging.
vxcmdlog -s 512k
Set the maximum command log file size to
512KB.
vxcmdlog -n 10
Set the maximum number of historic command
log files to 10.
vxcmdlog -n no_limit
Remove any limit on the number of historic
command log files.
vxcmdlog -m off
Turn off command logging.