Chapter 1. Introduction to the 3ware Command Line Interface8 3ware 9000 Series Serial ATA Controller CLI Guide2 At the CLI prompt, you can enter commands to show or act on 3warecontrollers, units, and drives.For example,//localhost> showdisplays all controllers in the system and shows details about them, likethis:Ctl Model Ports Drives Units NotOpt RRate VRate BBU------------------------------------------------------------c0 7500-12 12 8 3 1 2 - -c1 9506S-12 12 6 1 0 3 5 TESTINGUsing a single command with outputYou can use 3ware CLI with line arguments, processing a single command ata time. To do so, simply enter the command and the arguments.Single commands can be useful when you want to perform a task such asredirecting the output of the command to a file. It also allows you to use thecommand line history to eliminate some typing.Syntaxtw_cli Exampletw_cli /c0 show diag > /tmp/3w_diag.outUsing an input file to execute a scriptYou can operate 3ware CLI scripts by executing a file. The file is a text filecontaining a list of CLI commands which you have entered in advance. Eachcommand must be on a separate line.Syntaxtw_cli -f Where is the name of the text file you want to execute.Exampletw_cli -f clicommand.txtThis example executes the file clicommand.txt, and runs the CLI commandsincluded in that file.Scripting exampleFollowing is a a scripting example using a text file called config_array.txt,containing three commands. This example sets up a 12-port controller with