Command Line Interface User’s Guide
25
3.2.3
Stream Mode
By default, the CLI directs output to two destinations:
Error messages go to standard error (STDERR).
All other output goes to standard out (STDOUT).
This separation may be undesirable for some scripting methods. Therefore, you can enable
stream mode to direct all output to STDOUT, obviating the need to read two streams at the
same time.
To enable stream mode, type:
Mode streamMode Mixed_STDOUT_Only
To disable stream mode, type:
Mode streamMode Mixed_STDOUT_STDERR
If the CLI is invoked with redirection to a file using a standard redirection
(greater-than) character, standard out will be directed to the file and error
messages will be directed to the screen.
3.2.4
Completion Code Mode
Completion code mode determines whether the CLI returns a text code and text description
each time it executes (or tries to execute) a command line, or only when the command line
fails due to an error. Figure 3-5 shows examples of error messages returned due to errors in
command lines.
192.168.55.224 :: create Zeus 3tb jbod
UA_E_REQUEST_FAILED = Error - CIM_ERR_FAILED: A general error
occurred that is not covered by a more specific error code: "Not
enough space available
192.168.55.224 :: addInitiator
UA_E_INVALIDARG = Error - Expected 1 arguments
192.168.55.224 :: addInitiator Windows3
UA_E_UNEXPECTED = Error - CIM_ERR_ALREADY_EXISTS: Operation cannot
be carried out because an object already exists: "An Initiator with
that name already exists"
Figure 3-5. Examples of Errors Displayed in Completion Code Mode
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: ......