Command Line Interface User’s Guide
41
Controller[A] :: push ^iscsi.targets[$first]
Changes the context to the first iSCSI target, even though the current context is
Controller[A].
Help Push
Displays help for the
Push
command.
4.2.10
RequireArgs
The
requireArgs
command is an advanced feature intended for use with script files. This
command lets you specify the required number of arguments for subsequent commands.
If a CLI script has this command and the number of arguments provided does not provide at
least the number of required arguments specified with
RequireArgs
, the script is
terminated.
Syntax
requireArgs <integer> [optionalDisplayStringOnError]
where
<integer>
is
the required number of arguments for subsequent commands and
[optionalDisplayStringOnError]
is a string that is displayed to the user if the
argument count is not satisfied.
Examples
requireArgs 8
Checks that at least 8 arguments are present for the current script, and terminates the
script if not.
Help requireArgs
Displays help for the
RequireArgs
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: ......