AMCC 9650SE, 9550SX, 9500S, 9590SE manual If you type

Page 103

Return Code

For example, if you had a 3ware controller with an ID of 0, you could type this command:

tw_cli /c0 show

(c0 information displayed here) echo $?

0

If you type:

tw_cli /c7 show

error: (CLI003) specified controller does not exist. echo $?

1

This example fails (returns 1) because there is no controller 7.

To view the return code for Windows, in a command window type

tw_cli /c0 show

(c0 info displayed here) if errorlevel 0 echo 0 0

tw_cli /c7 show error....

if errorlevel 1 echo 1 1

This example fails (returns 1) because there is no controller 7.

www.3ware.com

97

Image 103
Contents 3ware Serial ATA RAID Controller Command Line InterfaceCopyright 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 Features of the CLI Introduction to the 3ware Command Line InterfaceTerminology Supported Operating SystemsPermissions Required to Run CLI Installing the 3ware CLIInstalling the 3ware CLI on Windows To install 3ware CLI on WindowsTo start CLI, do one of the following Installing the 3ware CLI on Linux and FreeBSDWorking with 3ware CLI Using the command interface interactivelyTo use the CLI interactively Using an input file to execute a script Using a single command with outputScripting example Conventions Outputting the CLI to a Text FileRAID Concepts Understanding RAID Levels and ConceptsRAID Available RAID ConfigurationsRAID 1 Configuration Example RAID 5 Configuration Example RAID 6 Configuration Example RAID 10 Configuration Example Jbod Single DiskHot Spare RAID Configuration TypesPossible Configurations Based on Number of Drives Determining What RAID Level to UseDrive Capacity Using Drive Capacity EfficientlySupport for Over 2 Terabytes CLI Syntax Reference Common Tasks Mapped to CLI CommandsCLI Syntax Reference Port Tasks Syntax OverviewC1 add type=raid1 disk=0-1 Focus Object Shell Object CommandsExample ShowShow ver Show diag Show alarms reverseShow rebuild Show selftest Show verifyRescan FlushCommit Cx show Controller Object CommandsCx show Cx show attribute attribute Cx show firmware Cx show biosCx show driver Cx show modelCx show achip Cx show serialCx show pcb Cx show pchipCx show exportjbod Cx show numportsCx show numunits Cx show ctlbusCx show autocarve Cx show spinupCx show stagger Cx show ondegradeCx show memory Cx show carvesizeCx show unitstatus Cx show autorebuildCx show drivestatus Cx show allunitstatus3JV3MVTA Cx show allSupported RAID Types Supported Stripe Sizes KB Supported Model-Unit Types for ignoreECC Cx rescan noscan Cx flush Cx commitCx show alarms reverse Cx show rebuild Cx show diagRAID-5 Initializing Cx show verify Cx show selftest Cx add rebuild=dddhhduration Setting Up a Rebuild ScheduleCx add verify=dddhhduration Setting Up a Verify ScheduleCx add selftest=dddhh Setting Up a Selftest ScheduleCx del selftest=slotid Cx set rebuild=enabledisable1..5Cx del rebuild=slotid Cx del verify=slotidCx set selftest=enabledisable task=UDMASMART Cx set verify=enabledisable1..5Cx set ondegrade=cacheofffollow Cx set exportjbod=onoffCx set spinup=nn Cx set autocarve=onoff Cx set stagger=nnCx set carvesize=1024..2048 Cx set autodetect=onoff disk=p-pall Cx set autorebuild=onoffCx start mediascan Cx stop mediascan Unit Object CommandsCx/ux show Cx/ux show rebuildstatus Cx/ux show statusCx/ux show verifystatus Cx/ux show qpolicy Cx/ux show initializestatusCx/ux show name Cx/ux show serialCx/ux show cache Cx/ux show storsaveCx/ux show identify Cx/ux show autoverifyCx/ux show ignoreECC Cx/ux show volumesCx/ux show all Cx/ux remove noscan quiet Cx/ux start rebuild disk=pp-p...ignoreECC Cx/ux del noscan quietSupported RAID Logical Unit Types for Verification Cx/ux start verifyCx/ux pause rebuild Cx/ux resume rebuildCx/ux set cache=onoff quiet Cx/ux stop verifyCx/ux flush Cx/ux set autoverify=onoffCx/ux set ignoreECC=onoff Cx/ux set identify=onoffSupported RAID Types for Caching Cx/ux set qpolicy=onoff Cx/ux set name=stringCx/ux set storsave=protectbalanceperform quiet Example 3ware Serial ATA RAID Controller CLI Guide Valid Migration Paths Supported Stripe Sizes Example of splitting a mirror Migration ProcessExample of capacity expansion Example of migrate output Cx/px show Port Object CommandsCx/px show firmware Cx/px show statusCx/px show model Cx/px show serialCx/px show smart Cx/px show ncqCx/px show lspeed Cx/px show capacityCx/px show all Cx/px set identify=onoff Cx/px remove noscan quietCx/bbu show BBU Object CommandsCx/bbu show status Cx/bbu show attribute attributeCx/bbu show temp Cx/bbu show batinstCx/bbu show lasttest Cx/bbu show voltCx/bbu show pcb Cx/bbu show bootloaderCx/bbu show serial Cx/bbu show fwCx/bbu disable quiet Cx/bbu enableCx/bbu test quiet Ex show Enclosure Object CommandsEx show controllers Ex show attribute attributeEx show all Ex show slotsEx show fans Ex show tempEx/slotx show identify Ex/slotx showEx/slotx set identify=onoff Ex/tempx show Help CommandsHelp with specific commands Ex/fanx showAttribute attribute Help Help with attributes Help rescan Help update Help show Help flushHelp /cx/px Help focusHelp /cx Help /cx/uxHelp /ex/tempx Command LoggingReturn Code Help /ex/fanxIf you type