3Ware 9650SE-2LPB-10 CLI Guide - Page 103
To view the return code for Windows, in a command window type
UPC - 693494601022
View all 3Ware 9650SE-2LPB-10 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 103 highlights
Return Code For example, if you had a 3ware controller with an ID of 0, you could type this command: tw_cli /c0 show (c0 information displayed here) echo $? 0 If you type: tw_cli /c7 show error: (CLI003) specified controller does not exist. echo $? 1 This example fails (returns 1) because there is no controller 7. To view the return code for Windows, in a command window type tw_cli /c0 show (c0 info displayed here) if errorlevel 0 echo 0 0 tw_cli /c7 show error.... if errorlevel 1 echo 1 1 This example fails (returns 1) because there is no controller 7. www.3ware.com 97
Return Code
www.3ware.com
97
For example, if you had a 3ware controller with an ID of 0, you could type
this command:
tw_cli /c0 show
(c0 information displayed here)
echo $?
0
If you type:
tw_cli /c7 show
error: (CLI003) specified controller does not exist.
echo $?
1
This example fails (returns 1) because there is no controller 7.
To view the return code for Windows
, in a command window type
tw_cli /c0 show
(c0 info displayed here)
if errorlevel 0 echo 0
0
tw_cli /c7 show
error
....
if errorlevel 1 echo 1
1
This example fails (returns 1) because there is no controller 7.