3Ware 9650SE-2LPB-10 CLI Guide - Page 15

Outputting the CLI to a Text File, Conventions, Examples

Page 15 highlights

Working with 3ware CLI with the remaining drives in a RAID 5 array. It 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 show To run either of the scripts, enter: tw_cli -f config_unit.txt 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. www.3ware.com 9

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103

Working with 3ware CLI
www.3ware.com
9
with the remaining drives in a RAID 5 array. It 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 show
To run either of the scripts, enter:
tw_cli -f config_unit.txt
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
/c
x
/p
x
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,
/c
x
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.