Chapter 2. CLI Syntax Reference
25
3ware SAS/SATA RAID Controller CLI Guide, Version 9.5.2
Syntax Overview
The command syntax uses the general form:
Object Command Attributes
Objects
are shell commands, controllers, units, ports (drives), BBUs (battery
backup units), and enclosures.
Commands
can either select (show, get, present, read) attributes or alter (add,
change, set, 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 controller alarms with the oldest alarm first.
If you include the attribute
reverse,
as in the command
show alarms
reverse
, alarms are listed in reverse order, with the most recent alarm
first.
•
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).
Information about commands is organized by the object on which the
commands act:
Shell Object Commands.
Shell object commands set the focus or provide
information (such as alarms, diagnostics, rebuild schedules, and so forth)
about all controllers in the system. For details, see “Shell Object Commands”
on page 26.
Controller Object Commands.
Controller object commands provide
information and perform actions related to a specific controller. For example,
you use controller object commands for such tasks as seeing alarms specific
to a controller, creating schedules during which background tasks are run, and
setting policies for the controller. You also use the controller object command
/cx add type
to create RAID arrays. For details, see “Controller Object
Commands” on page 33.
Unit Object Commands.
Unit object commands provide information and
perform actions related to a specific unit on a specific controller. For example,
you use unit object commands for such tasks as seeing the rebuild, verify, or
initialize status of a unit, starting, stopping, and resuming verifies, starting
and stopping rebuilds, and setting policies for the unit. You also use the
Summary of Contents for 720-0192-00
Page 3: ......