Working with 3ware CLIwww.3ware.com 9with the remaining drives in a RAID 5 array. It then prints the configurationsfor verification. The commands included in the script file are:/c0 add type=raid1 disk=0-1/c0 add type=raid5 disk=2-11/c0 showTo run either of the scripts, enter:tw_cli -f config_unit.txtOutputting the CLI to a Text FileYou can have the output of the 3ware CLI, including errors, sent to a text fileby adding 2>&1 to the end of the line. This could be useful, for example, ifyou want to email the output to AMCC Technical Support.Examplestw_cli /c2/p0 show >> controller2port0info.txt 2>&1ortw_cli /c0 show diag >> Logfile.txt 2>&1ConventionsThe 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 thename of commands and parameters, for example, /c0/p0 show all.• In commands, an italic font indicates items that are variable, but that youmust specify, such as a controller ID, or a unit ID, for example, /c0/p0show 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 timecan be included, for example, /c0/p0 show attribute [attribute ...], or thatthere is a range between two values from which you can pick a value, forexample, /cx set carvesize=[1024...2048].• In commands, a vertical bar (|) indicates an 'or' situation where the userhas a choice between more than one attribute, but only one can bespecified.Example: In the command to rescan all ports and reconstitute all units, thesyntax appears as /cx rescan [noscan]. The brackets [ ] indicate that you mayomit the noscan parameter, so that the operation will be reported to theoperating system.