Accusys eXpeRAID manual Execution Mode, Interactive Mode, Non-interactive Mode

Page 8

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 8 OF 27

3.Type: mknod /dev/ACS_CDEV0 c 253 0 [Enter], a device file “ACS_CDEV0” will be created and CLI will be able to find the controller through this device file.

2.2 Execution Mode

There are two methods to run CLI commands - interactive mode and non-interactive mode. For each mode, all commands and parameters must follow the CLI command format to be executed normally.

2.2.1 Interactive Mode

To trigger CLI interactive mode, simply run the CLI execution file under the command line of the OS. If the controller has been found, a password verification prompt for the default controller will appear. After inputting the correct password, the CLI prompt “CLI>” will appear. All CLI commands can be executed under this prompt.

2.2.2 Non-interactive Mode

There are two types of non-interactive mode for CLI. One calls the CLI command "RunScript" to execute pre-written script files which contain bunches of CLI commands. The other one calls CLI commands by adding them as the parameter of the CLI execution file individually.

The scripts of both types of non-interactive mode are written based on the following format:

acs_cli <CLI command> [Parameters of the CLI command]

which can be executed as a single command under the command line of the OS.

2.2.2.1 CLI script Mode

Image 8
Contents EXpeRAID Command Line Interface User Guide Nov 05 VersionRevision History Contents Basic Array Configuration Commands UpdateSystemCode UpdateBootCode UpdateBIOSEFI AppendixOverview Supported Operating SystemsPre-action Example for Linux special caseNon-interactive Mode Execution ModeInteractive Mode ACCUSYS, INC CLI Command Format Command SyntaxCommand Name Format 1 …Format n Format ConventionsInBandController command success InBand command failed CLI Reply StatusCLI Command Set Basic CLI CommandsCommand Name Command Description CLICheckPassword 00000000 EnterExample CLICtrlName Ctrl1 Enter Information Display Commands CLIDumpArrayInfo 1 Enter2.6 2.72.8 2.9Basic Array Configuration Commands 3.1RAID Level Level=R0R1R5R6 R0 RAID Level R01 R1 RAID Level R5 RAID LevelCLIDeleteArray 1 Enter CLISetSlice Array=1 Slice=0 Size=120 EnterCLISetLunMap Lun=0 JBOD=1 Enter CLISetLunMap Lun=0 Array=1 Slice=0 EnterCLIMigrateArray Array=1 TargetLevel=R5 DriveCnt=4 Enter Advanced Array Configuration CommandsCLIExpandArray Array=1 DriveCnt=3 Enter Example CLIRebuildParity Array=1 State=Start Enter Example CLIRefreshArray Array=1 State=StartEnterMirror Snapshot Configuration Commands Min=0 Enter Parameter Parameter ExampleCLISplitScheduling Shot=1 Year=07 Month=12 Day=15 Hour=0 Miscellaneous Commands EnableDisable Enable / Disable Disk Lag Proof mode 6.2EnableDisable Enable / Disable NCQ mode 6.3 5.6EnableDisable Enable/Disable controller beeper 6.6 EnableDisable Enable / Disable Equalization Mode 6.7EnableDisable Enable/Disable controller cache 6.8 EnableDisable Enable/Disable Synchronize Cache modeCtrlTime Use this command to set controller time 6.9Month Month =1~12 Day Day =1~31Firmware Update Commands 7.1Array Migration Matrix R0 N DisksR1 N Disks R5 N Disks R0+1 N Disks