10400589-001 ©2008-14 Overland Storage, Inc. 299
Appendix F
Command Line Interface
GuardianOS includes a command line interface (SnapCLI) that is accessible through SSH.
Using the CLI, users can access information about most of the SnapServer configuration
parameters and perform configuration and maintenance functions without using the
GuardianOS Web Management Interface or SSM.
IMPORTANT: Some administrative tasks must still be performed using the Web Management
Interface. The CLI is intended as a convenient way to perform some functions; it is not intended
as an alternative to using the Web Management Interface.
Before You Begin
Before the storage type is configured to DynamicRAID or Traditional RAID, SnapCLI disables
all standard commands and makes only the
system command available. This command is
available only before storage is configured and has the following arguments:
Thus, the following command string:
system type=Traditional-RAID force=yes
sets the storage type to Traditional RAID and bypasses the confirmation prompt.
Once the
system command is run and the storage type is chosen, SnapCLI unlocks the rest of
the standard commands. A reboot is required if Traditional RAID is chosen as the storage
type.
Topics in Command Line Interface
• SnapCLI Syntax
• SnapCLI Commands
• Scripts in SnapCLI
SnapCLI Syntax
SnapCLI command syntax uses three parameters: COMMANDS, ARGUMENTS, and OPTIONS. To
generate commands in SnapCLI, use the following syntax:
COMMAND [ARGUMENT] [OPTIONS]
Command Arguments and Options Descriptions
system type
type=DynamicRAID
type=Traditional-RAID
Specify DynamicRAID mode
Specify Traditional RAID mode
force
yes
Bypass confirmation prompt