Chapter 3. Legacy CLI Syntax Reference
114
3ware 9000 Series Serial ATA Controller CLI Guide
help quit
This command provides information about the CLI
quit
command. For
example:
//localhost>
help quit
This command quits the CLI
quit
Synonyms: q exit
Return Code
While informative messages are written to standard output, error messages are
written to standard error. On success, 0 is returned. On failure, 1 is returned.
To view the return code, at the shell command prompt type:
echo $?
The screen prints either a 0 or a 1, depending on whether the command was
successful or not.
For example, if you had a 3ware controller with an ID of 0, you could type
this command:
tw_cli info c0
(c0 information displayed here)
echo $?
0
If you type:
tw_cli info c7
error: (CLI003) specified controller does not exist.
echo $?
1
This example fails (returns 1) because there is no controller 7.