Primary Syntax Overview
www.3ware.com
21
Primary Syntax Overview
The primary command syntax uses the general form:
Object Command Attributes
Objects
are shell commands, controllers, units, ports (drives), and BBUs
(battery backup units).
Commands
can either select (show, get, present, read) attributes or alter (add,
change, set, alter, write) attributes.
Attributes
are either Boolean Attributes or Name-Value Attributes.
The value of a boolean attribute is deduced by presence or lack of—that
is, the attribute is either specified, or not. For example, the command
show alarms
by default lists alarms with the most recent alarm first. If
you include the attribute
reverse,
as in the command
show alarms
reverse
, alarms are listed in reverse order.
The value of name-value attributes are expressed in the format
attribute=value
.
Example:
When adding (creating) a unit to the controller with the following
command string,
/c1 add type=raid1 disk=0-1
c1
is the object,
add
is the command,
type
(for type of array) is an attribute
with
raid1
as the value of the attribute, and
disk
is another attribute with
0-1
as the value (ports 0 through 1).
Unit Maintenance Tasks
Start a rebuild
/cx/ux start rebuild
58
Start a verify
/cx/ux start verify
58
Pause/resume rebuild
/cx/ux pause rebuild and /cx/ux
resume rebuild
59
Stop verify
/cx/ux stop verify
59
Enable/disable autoverify
/cx/ux set autoverify
59
Port Tasks
Locate drive by blinking an LED
/cx/px set identify
71
Check if LED is set to on or off
/cx/px show identify
68
View information for specific drive
/cx/px show
67
View the status of specific drive
/cx/px show status
67
Table 5: Common Tasks Mapped to CLI Commands
Task
CLI Command
Page