AMCC 9590SE, 9550SX, 9500S, 9650SE manual Outputting the CLI to a Text File, Conventions

Page 14

Chapter 1. Introduction to the 3ware Command Line Interface

Outputting the CLI to a Text File

You can have the output of the 3ware CLI, including errors, sent to a text file by adding 2>&1 to the end of the line. This could be useful, for example, if you want to email the output to AMCC Technical Support.

Examples

tw_cli /c2/p0 show >> controller2port0info.txt 2>&1

or

tw_cli /c0 show diag >> Logfile.txt 2>&1

Conventions

The following conventions are used through this guide:

In text, monospace font is used for code and for things you type.

In descriptions and explanations of commands, a bold font indicates the name of commands and parameters, for example, /c0/p0 show all.

In commands, an italic font indicates items that are variable, but that you must specify, such as a controller ID, or a unit ID, for example, /c0/p0 show attribute, and /cx/px show all

In commands, brackets around an item indicates that it is optional.

In commands, ellipses (...) indicate that more than one parameter at a time can be included, for example, /c0/p0 show attribute [attribute ...], or that there is a range between two values from which you can pick a value, for example, /cx set carvesize=[1024...2048].

In commands, a vertical bar () indicates an 'or' situation where the user has a choice between more than one attribute, but only one can be specified.

Example: In the command to rescan all ports and reconstitute all units, the syntax appears as /cx rescan [noscan]. The brackets [ ] indicate that you may omit the noscan parameter, so that the operation will be reported to the operating system.

8

3ware Serial ATA RAID Controller CLI Guide

Image 14
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 CLI Installing the 3ware CLI on Linux and FreeBSD To start CLI, do one of the followingTo use the CLI interactively Using the command interface interactivelyWorking with 3ware CLI Scripting example Using a single command with outputUsing an input file to execute a script 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 rebuild Show alarms reverseShow diag Show verify Show selftestCommit FlushRescan 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 spinup=nn Cx set exportjbod=onoffCx set ondegrade=cacheofffollow Cx set carvesize=1024..2048 Cx set stagger=nnCx set autocarve=onoff Cx set autorebuild=onoff Cx set autodetect=onoff disk=p-pallCx start mediascan Unit Object Commands Cx stop mediascanCx/ux show Cx/ux show verifystatus Cx/ux show statusCx/ux show rebuildstatus 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 all Cx/ux show volumesCx/ux show ignoreECC 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 quietSupported RAID Types for Caching Cx/ux set identify=onoffCx/ux set ignoreECC=onoff Cx/ux set storsave=protectbalanceperform quiet Cx/ux set name=stringCx/ux set qpolicy=onoff Example 3ware Serial ATA RAID Controller CLI Guide Valid Migration Paths Supported Stripe Sizes Example of capacity expansion Migration ProcessExample of splitting a mirror 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 test quiet Cx/bbu enableCx/bbu disable quiet Enclosure Object Commands Ex showEx show attribute attribute Ex show controllersEx show temp Ex show slotsEx show fans Ex show allEx/slotx set identify=onoff Ex/slotx showEx/slotx show identify 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