Working with 3ware CLIwww.3ware.com 9two units: one with the first 2 drives mirrored, and another with the remainingdrives in a RAID 5 array. In then prints the configurations for 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 the script, enter:tw_cli -f config_array.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 rescan [cid...] [noscan]. The italic cid indicates that youneed to supply a controller ID. The ellipses indicate that you can specify morethan one controller ID, separated by spaces. The brackets indicate that youmay omit the controller ID, to rescan all controllers, and the noscanparameter, so that the operation will be reported to the operating system.