AMCC 9590SE, 9550SX, 9500S, 9650SE manual Command Logging, Return Code, Help /ex/fanx, Help /ex/tempx

Page 102

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 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.

96

3ware Serial ATA RAID Controller CLI Guide

Image 102
Contents Command Line Interface 3ware Serial ATA RAID ControllerCopyright Table of Contents 3ware Serial ATA RAID Controller CLI Guide Cx/ux set autoverify=onoff 3ware Serial ATA RAID Controller CLI Guide About this CLI Guide Introduction to the 3ware Command Line Interface Features of the CLISupported Operating Systems TerminologyTo install 3ware CLI on Windows Installing the 3ware CLIInstalling the 3ware CLI on Windows Permissions Required to Run CLIInstalling the 3ware CLI on Linux and FreeBSD To start CLI, do one of the followingUsing the command interface interactively Working with 3ware CLITo use the CLI interactively Using a single command with output Using an input file to execute a scriptScripting example Outputting the CLI to a Text File ConventionsUnderstanding RAID Levels and Concepts RAID ConceptsAvailable RAID Configurations RAIDRAID 1 Configuration Example RAID 5 Configuration Example RAID 6 Configuration Example RAID 10 Configuration Example Single Disk JbodDetermining What RAID Level to Use RAID Configuration TypesPossible Configurations Based on Number of Drives Hot SpareUsing Drive Capacity Efficiently Drive CapacitySupport for Over 2 Terabytes Common Tasks Mapped to CLI Commands CLI Syntax ReferenceCLI Syntax Reference Syntax Overview Port TasksC1 add type=raid1 disk=0-1 Shell Object Commands Focus ObjectShow ExampleShow ver Show alarms reverse Show diagShow rebuild Show verify Show selftestFlush RescanCommit Controller Object Commands Cx showCx show Cx show attribute attribute Cx show model Cx show biosCx show driver Cx show firmwareCx show pchip Cx show serialCx show pcb Cx show achipCx show ctlbus Cx show numportsCx show numunits Cx show exportjbodCx show ondegrade Cx show spinupCx show stagger Cx show autocarveCx show carvesize Cx show memoryCx show autorebuild Cx show unitstatusCx show allunitstatus Cx show drivestatusCx show all 3JV3MVTASupported RAID Types Supported Stripe Sizes KB Supported Model-Unit Types for ignoreECC Cx rescan noscan Cx commit Cx flushCx show alarms reverse Cx show diag Cx show rebuildRAID-5 Initializing Cx show verify Cx show selftest Setting Up a Rebuild Schedule Cx add rebuild=dddhhdurationSetting Up a Verify Schedule Cx add verify=dddhhdurationSetting Up a Selftest Schedule Cx add selftest=dddhhCx del verify=slotid Cx set rebuild=enabledisable1..5Cx del rebuild=slotid Cx del selftest=slotidCx set verify=enabledisable1..5 Cx set selftest=enabledisable task=UDMASMARTCx set exportjbod=onoff Cx set ondegrade=cacheofffollowCx set spinup=nn Cx set stagger=nn Cx set autocarve=onoffCx set carvesize=1024..2048 Cx set autorebuild=onoff Cx set autodetect=onoff disk=p-pallCx start mediascan Unit Object Commands Cx stop mediascanCx/ux show Cx/ux show status Cx/ux show rebuildstatusCx/ux show verifystatus Cx/ux show serial Cx/ux show initializestatusCx/ux show name Cx/ux show qpolicyCx/ux show autoverify Cx/ux show storsaveCx/ux show identify Cx/ux show cacheCx/ux show volumes Cx/ux show ignoreECCCx/ux show all Cx/ux remove noscan quiet Cx/ux del noscan quiet Cx/ux start rebuild disk=pp-p...ignoreECCCx/ux resume rebuild Cx/ux start verifyCx/ux pause rebuild Supported RAID Logical Unit Types for VerificationCx/ux set autoverify=onoff Cx/ux stop verifyCx/ux flush Cx/ux set cache=onoff quietCx/ux set identify=onoff Cx/ux set ignoreECC=onoffSupported RAID Types for Caching Cx/ux set name=string Cx/ux set qpolicy=onoffCx/ux set storsave=protectbalanceperform quiet Example 3ware Serial ATA RAID Controller CLI Guide Valid Migration Paths Supported Stripe Sizes Migration Process Example of splitting a mirrorExample of capacity expansion Example of migrate output Port Object Commands Cx/px showCx/px show serial Cx/px show statusCx/px show model Cx/px show firmwareCx/px show capacity Cx/px show ncqCx/px show lspeed Cx/px show smartCx/px show all Cx/px remove noscan quiet Cx/px set identify=onoffBBU Object Commands Cx/bbu showCx/bbu show attribute attribute Cx/bbu show statusCx/bbu show volt Cx/bbu show batinstCx/bbu show lasttest Cx/bbu show tempCx/bbu show fw Cx/bbu show bootloaderCx/bbu show serial Cx/bbu show pcbCx/bbu enable Cx/bbu disable quietCx/bbu test quiet Enclosure Object Commands Ex showEx show attribute attribute Ex show controllersEx show temp Ex show slotsEx show fans Ex show allEx/slotx show Ex/slotx show identifyEx/slotx set identify=onoff Ex/fanx show Help CommandsHelp with specific commands Ex/tempx showAttribute attribute Help with attributes HelpHelp flush Help updateHelp show Help rescanHelp /cx/ux Help focusHelp /cx Help /cx/pxHelp /ex/fanx Command LoggingReturn Code Help /ex/tempxIf you type