3ware HTML Bookshelf



3ware® CLI Guide > CLI Syntax Reference > Command Logging

Command Logging
CLI has a logging function that makes an entry into a log file for each command line that makes a change to the controller configuration (for example, add/delete units). Both CLI and 3DM2 have this logging function and it is enabled by default.
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.
*
export TW_CLI_LOG=ON
*
set TW_CLI_LOG=O
*
setenv TW_CLI_LOG ON
 
Location of the Log File
For Windows Vista and Server 2008, the log file is stored in
\ProgramData\AMCC.
Note that ProgramData is a hidden folder by default. To display it in Windows Explorer, enter c:\ProgramData in the location field at the top of the Explorer Window. To make the folder permanently visible, select Organize > Folder and Search Options from the Explorer menu, choose the View tab, and select the Show hidden files and folders option in Advance settings.
For all previous versions of Windows (XP, Server 2003, etc), the log file is stored in
\Documents and Settings\All Users\Application Data\AMCC
In Linux, and FreeBSD, the log file is in the directory
/var/log directory.

Copyright AMCC 2004-2008
To contact Support, log in at https://www.3ware.com

www.3ware.com
1-858-535-6517
1-800-840-6055