
Chapter 1. Introduction to the 3ware Command Line Interface
6 3ware Serial ATA RAID Controller User Guide
• If no GUI is installed, navigate to packages/installer/linux/x86 (or /86-64,
depending on your system) on the 3ware CD.
Type:
./setupLinux_x86.bin
-console or ./setupLinux_x64.bin -console
(depending upon which directory you are in) and press Enter to begin
installing the CLI.
More detailed information about using this installer is supplied in
Appendix B of 3ware Serial ATA RAID Controller User Guide.
• Or, copy the file tw_cli to the directory from which you want to run the
program.
CLI is located on the 3ware CD in
/packages/cli/linux.
Online manual pages are also available in nroff and html formats. These
are located in
/packages/cli/tw_cli.8.html or tw_cli.8.nroff.
You will need to be root or have root privileges to install the CLI to
/usr/sbin and to run the CLI.
To install the CLI to a different location, change
/usr/sbin/ to the
desired location.
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
The next few topics shows examples of these different methods.
• “Using the command interface interactively” on page 7
• “Using a single command with output” on page 7
• “Using an input file to execute a script” on page 8
• “Outputting the CLI to a Text File” on page 9
Notes:
The installation location needs to be in the environment path for root to execute the
CLI without using complete paths (i.e., if installed to /usr/sbin/, you can type tw_cli
on the command line, otherwise you will have to type the complete path:
/home/user/tw_cli
The 3ware CLI comes in both 32-bit and 64-bit versions. If you are copying the file
directly, be sure to copy the correct version for the version of the operating system
you are using.
Comentarios a estos manuales