VERITAS Volume Manager 4.1 Troubleshooting Guide

Chapter 4 53
4 Logging Commands and Transactions
This chapter provides information on how to administer logging of commands and
transactions in VERITAS Volume Manager (VxVM). Logging Commands For information on
how to administer error logging, see “Error Messages” on page 65“.
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.
NOTE The .cmdlog file is a binary and should not be edited.
Table 4-1 Usage of vxcmdlog
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.