Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-09 Rev B
February 2014
6
CLI Special Options
<
options_filename
> to read additional options, where each option (or each
option=value
pair if the option requires a value) is listed on a separate line.
Blank lines or lines starting with “#” are ignored. For example, the command
syscli --add share --name abc --proto cifs
is functionally equivalent to any of the following commands:
1 syscli --file <myfile>
where
<myfile>
is a file containing the following:
‐‐
add=share
‐‐
name=abc
‐‐
proto=cifs
2 syscli --add share --file <file1>
where
<file1>
is a file containing the following:
‐‐
name=abc
‐‐
proto=cifs
3 syscli --add share --file <file2> --proto cifs
where
<file2>
is a file containing the following:
‐‐
name=abc
Syntax of Options File
The following are the syntax conventions for the options file:
• Command line options are processed from left to right. Thus any option in
the file can be overridden by listing it again on the command line after the
--file
option. In example 3 above, the option
-
value pair
--barcode
mybarcode
overrides the one specified in
file2
because it is processed after
option
--file
.
• Spaces surrounding the options are insignificant. The following examples
are equivalent:
• --name=abc
• --name =abc
• All characters that follow “=” are significant and are accepted as is,
including space, tab, backslash, single or double quotes, or any other
symbol. Because no characters are special, don’t escape them. This rule is
enforced so to support values that contain leading or trailing spaces/quotes
such as in passwords. For example:
--password=abc
--password= abc
--password=a\!bc
--password="abc"
are all different passwords.
• The second password has four characters: space, a, b, and c.