Disabling and enabling command logging, For linux, For windows – Avago Technologies 3ware SAS 9750-4i User Manual
Page 148

Chapter 2. CLI Syntax Reference
140
3ware SATA+SAS RAID Controller Card CLI Guide, Version 10.0
Disabling and enabling command logging
You can disable or enable logging of controller commands by setting the
environment variable TW_CLI_LOG to ON or OFF. The method for setting
the environment variable depends on the operating system.
For Linux
The command you use to set the environment variable depends on the type of
shell.
Important:
Use the same shell you are using to run CLI, to set the
environment variable. If you set it in a different shell window and then
terminate that shell, the change will revert.
•
If Bash, ksh, or sh, use
export TW_CLI_LOG=OFF
or
export TW_CLI_LOG=ON
•
If csh (C-shell), use
setenv TW_CLI_LOG OFF
or
setenv TW_CLI_LOG ON
Note:
Setting the environment variable as described above is not persistent
across reboot, because the the shell terminates when you power down, and
defaults are reset on power on. To set an environment variable that will
persist, set a global variable in a login config file (such as .rc or .cshrc) that
will set the variable to the desired state when the system powers on. For
details, see the manpage for the shell you are using.
For Windows
Under Windows, you set the environment variable through
My Computer >
Properties
.
1
Click the
Start
button, right-click on
My Computer
, and choose
Properties
.
2
In the
Properties
dialog box, click on the
Advanced
tab.
3
On the
Advanced
tab, click the
Environment Variables
button.
You can add a new variable by clicking
New
, or edit an existing variable
by selecting TW_CLI_LOG in the list and clicking
Edit
.