AMCC 9500S User Manual

Page of 103
Chapter 2. CLI Syntax Reference
96
3ware Serial ATA RAID Controller CLI Guide 
help /e
x
/fan
x
This command provides specific fan /ex/fanx related help, illustrating various 
ways to use the /ex/fanx command. See the section “Enclosure Object 
Commands” on page 87 
for more information.
help /e
x
/temp
x
This command provides specific temperature sensor /ex/tempx
 
related help, 
illustrating various ways to use the /ex/tempx command. See the section 
“Enclosure Object Commands” on page 87 for more information.
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 FreeBSD, 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, and FreeBSD, 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.