Accusys eXpeRAID manual Accusys, Inc

Page 9

ACCUSYS, INC.

5F, 38 TAIYUAN ST, JHUBEI, HSINCHU, TAIWAN, R.O.C.

TITLE

EXPERAID COMMAND LINE INTERFACE USER GUIDE

 

PROJECT

 

“DESKTOP RAID”

DOCUMENT STATUS

OFFICIAL RELEASE

REV.

G–05-NOV-2007

 

 

PAGE 9 OF 27

This non-interactive mode is implemented by calling the CLI command "RunScript". For example:

In Sample1.sh(Included in the folder where CLI application is located) under Linux, it contains the following commands:

./acs_cli RunScript acs_sample1.script

./acs_cli RunScript acs_sample2.script

Both acs_sample1.script and acs_sample2.script contain a bunch of CLI commands.

2.2.2.2 Shell script Mode

This mode is implemented by executing all CLI commands following the format: acs_cli <CLI command> [Parameters of the CLI command]

For example:

In Sample2.sh under Linux, it contains commands like

./acs_cli CtrlIndex 0

./acs_cli CheckPassword 00000000

The first line sets the controller index to 0 and the second line verifies the password of the controller with index 0.

To complete both Sample1.sh and Sample2.sh successfully, the active controller must have 4 Spare drives(On slot 1~4) connected. For both scripts, all 4 drives will be restored to Spare after completing the script successfully.

Image 9
Contents Nov 05 Version EXpeRAID Command Line Interface User GuideRevision History Contents Basic Array Configuration Commands Appendix UpdateSystemCode UpdateBootCode UpdateBIOSEFISupported Operating Systems OverviewExample for Linux special case Pre-actionExecution Mode Interactive ModeNon-interactive Mode ACCUSYS, INC Command Syntax CLI Command FormatCommand Name Format 1 …Format n Format ConventionsCLI Reply Status InBandController command success InBand command failedBasic CLI Commands CLI Command SetCommand Name Command Description CLICheckPassword 00000000 EnterExample CLICtrlName Ctrl1 Enter CLIDumpArrayInfo 1 Enter Information Display Commands2.7 2.62.8 2.93.1 Basic Array Configuration CommandsRAID Level Level=R0R1R5R6 R0 RAID Level R01 R1 RAID Level R5 RAID LevelCLISetSlice Array=1 Slice=0 Size=120 Enter CLIDeleteArray 1 EnterCLISetLunMap Lun=0 Array=1 Slice=0 Enter CLISetLunMap Lun=0 JBOD=1 EnterAdvanced Array Configuration Commands CLIExpandArray Array=1 DriveCnt=3 EnterCLIMigrateArray Array=1 TargetLevel=R5 DriveCnt=4 Enter Example CLIRefreshArray Array=1 State=StartEnter Example CLIRebuildParity Array=1 State=Start EnterMirror Snapshot Configuration Commands Parameter Example CLISplitScheduling Shot=1 Year=07 Month=12 Day=15 Hour=0Min=0 Enter Parameter EnableDisable Enable / Disable Disk Lag Proof mode 6.2 Miscellaneous CommandsEnableDisable Enable / Disable NCQ mode 6.3 5.6EnableDisable Enable / Disable Equalization Mode 6.7 EnableDisable Enable/Disable controller beeper 6.6EnableDisable Enable/Disable controller cache 6.8 EnableDisable Enable/Disable Synchronize Cache mode6.9 CtrlTime Use this command to set controller timeMonth Month =1~12 Day Day =1~317.1 Firmware Update CommandsR0 N Disks Array Migration MatrixR1 N Disks R5 N Disks R0+1 N Disks