Veritas Volume Manager 5.0 Troubleshooting Guide Guide (September 2006)
Chapter
4
Logging commands and
transactions
This chapter provides information on how to administer logging of commands and
transactions in Veritas Volume Manager 5.0 (VxVM). For information on how to
administer error logging, see “Error messages” on page 53.
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.
Table 4-1 Examples of vxcmdlog usage
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
512K.
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.