Introduction to the 3ware Command Line Interface
6
3ware 9000 Series Serial ATA Controller CLI Guide
Working with 3ware CLI
You can work with the 3ware CLI in different ways:
■
Interactively, entering commands at the main prompt
■
As a series of single commands
■
By creating a script—an input file with multiple commands
This first section shows examples of each of these ways.
Examples shown in the
CLI Reference
chapter reflect the interactive method.
Using the command interface interactively
You can use 3ware CLI interactively, entering commands at the main prompt
and observing the results on the screen.
To use the CLI interactively
1
Enter the following command:
# tw_cli
The main prompt is displayed, indicating that the program is awaiting a
command.
3ware CLI>
2 At the CLI prompt, you can enter commands to get, set, or maintain 3ware
controllers.
For example
3ware CLI>info
Displays all of the controllers in the system.
To display details of a single controller (assumed to be
c0)
and its
attached units, enter:
3ware CLI>info c0
To display details of a single unit (assumed to be
u0)
on the single
controller, enter:
3ware CLI>info c0 u0
Using a single command with output
You can use 3ware CLI with line arguments, processing a single command at
a time. To do so, simply enter the command and the arguments.
Syntax
tw_cli <command line arguments>