Command Line Interface User’s Guide
43
Help Select
Displays help for the
Select
command.
4.2.12
Set
Use the
Set
command to set a property in the current context.
Syntax
Set <memberName> <newvalue>
Examples
Set
name Zeus
Sets the array name to Zeus.
Help Set
Displays help for the
Set
command.
4.2.13
ShiftArgs
The
shiftArgs
command is an advanced feature intended for use with script files. This
command left-shifts off a minimum number of arguments.
This command is useful when working with an external text file containing command line
parameters and arguments. It is particularly useful if you will be performing repetitive
operations on several systems where argument shifting is required. If
<
integer
>
is omitted
from the command line, 1 is assumed.
Syntax
shiftArgs <integer>
Examples
shiftArgs
If a script has arguments 0, 1, and 2, including this command strips the leftmost
argument (0), resulting in arguments 1 and 2 being passed (as arguments #0 and #1).
shiftArgs 2
If a script has arguments 0, 1, and 2, including this command strips the two leftmost
arguments (0,1), resulting in argument 2 being passed (as argument #0).
Help shiftArgs
Displays help for the
ShiftArgs
command.
Summary of Contents for xStack Storage DSN-4000 Series
Page 6: ...vi Preface...
Page 42: ...32 Chapter 3 Using the CLI This Page Left Intentionally Blank...
Page 56: ...46 Chapter 4 Global Action Commands This Page Left Intentionally Blank...
Page 86: ...76 Chapter 5 Supported CLI Commands and Properties This Page Left Intentionally Blank...
Page 97: ......