
Command Logging
www.3ware.com 103
help /c
x
/e
x
/pwrsx
This command provides specific power supply /cx/ex/pwrsx related help,
illustrating various ways to use the /cx/ex/pwrsx command. See the Enclosure
Element Power Supply section for more.
Command Logging
This feature logs controller commands from both CLI and 3DM2 into a file.
You may be asked to supply this logfile to tech support for troubleshooting.
Set the environment variable TW_CLI_LOG to ON or OFF to enable or
disable logging of controller commands into a log file called tw_mgmt.log.
By default, TW_CLI_LOG is set to OFF. The command to start command
logging varies by operating system.
• For Redhat and SuSE, (bash, ksh, or sh), enter
export TW_CLI_LOG=ON
• For Linux (chs C-shell), enter
setenv TW_CLI_LOG ON
• For Windows, enter
set TW_CLI_LOG=O
In Linux, the log file is in /var/log directory.
In Windows, the log file is in the 3DM2 installation directory if 3DM2 is
installed in the system. Otherwise, it is in the current user home directory.
Return Code
While informative messages are written to standard output, error messages are
written to standard error. On success, 0 is returned. On failure, 1 is returned.
To view the return code for Linux:
At the shell command prompt type:
echo $?
The screen prints either a 0 or a 1, depending on whether the command was
successful or not.
For example, if you had a 3ware controller with an ID of 0, you could type
this command:
tw_cli /c0 show
(c0 information displayed here)
echo $?
Kommentare zu diesen Handbüchern