![background image](http://html1.mh-extra.com/html/quantum/dxi4500/dxi4500_manual_3756124030.webp)
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-02 Rev A
July 2011
30
NAS Configuration CLI Commands
Listing of Existing NAS
Share Names
syscli --list sharename [--proto cifs|nfs] [--namematch <pattern>]
This CLI lists all share names for both CIFS and NFS. If
--proto
is specified, only
names of shares associated with the specified protocol will be listed.
CLI command options:
•
--proto
: If specified, limits the listing to the specified protocol.
•
--namematch
: If specified, only shares whose names match the specified
pattern are listed.
The wild characters ^ and $ are supported as follows:
• ^xxx — matching pattern xxx at the start of names
• xxx$ — matching pattern xxx at the end of names
Remember to escape
$
with a backslash because it is special to the shell. For
example, to list all shares ending with
test
in the names, type the following
command:
syscli --list sharename --namematch test\$
Alternately, you can list a single share with the following CLI command:
syscli --get share --name <sharename>
Getting the Total NAS
Share Count
syscli --getcount share [--proto cifs|nfs] [--namematch <pattern>]
This CLI displays the total count of NAS shares defined in the system.
•
--proto
: If specified, displays the count for this protocol only.
•
--namematch
: If specified, only shares whose names match the specified
pattern are counted.
The wild characters ^ and $ are supported as follows:
• ^xxx – Matching pattern xxx at the start of names
• xxx$ – Matching pattern xxx at the end of names
Remember to escape
$
with a backslash because it is special to the shell. For
example, to count all shares ending with
test
in the names, type the following
command:
syscli --getcount share --namematch test\$
Adding a NAS Share
syscli --add share (--name <sharename> --proto {cifs|nfs} [--desc
<description>] [--ro] [--dedup] [--hidden] [--namecase lower|default] [--
anonuid <anonymous_uid>] [--anongid <anonymous_gid>])
This CLI command allows the admin user to add one or more NAS shares. To add
more than one share, repeat the same set of options noting that all mandatory
options must be re-specified even if they are unchanged.
For example, to add three shares:
syscli --add share --name share1 --proto cifs \ --name share2 --proto cifs --ro
--name share3 --proto nfs