3Ware 9650SE-2LPB-10 CLI Guide - Page 102

help /ex/fanx, Command Logging, help /e

Page 102 highlights

Chapter 2. CLI Syntax Reference help /ex/fanx 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 /ex/tempx 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 Mac OS X, 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, MacOS X, 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. 96 3ware Serial ATA RAID Controller CLI Guide

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103

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