Adding A Nas Share; April - Quantum DXi V1000 Command Manual

Dxi series command line interface (cli)
Hide thumbs Also See for DXi V1000:
Table of Contents

Advertisement

Adding a NAS Share

NAS Configuration CLI Commands
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\$
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
CLI command options:
• --add: Adds one or more NAS shares. Option --hidden does not apply to
NFS shares.
• --name: sharename: must be alphanumeric character.
• --proto: Network file sharing protocol (currently CIFS and NFS are
supported)
• --desc: Optional description for the share.
• --ro: if specified, share is read-only. Otherwise, share is read-write.
• --dedup: if specified, dedup will be enabled (this attribute cannot be
changed after share is created)
• --hidden: if specified, share name will not be displayed in the browser
(applicable to CIFS shares only)
• --namecase: Client file/directory names are to be stored in storage in the
specified character case (applicable to CIFS shares only). If this option is not
specified or is specified with default, client file/directory names are treated
as case-insensitive and case-preserved, that is, file/directory names will be
saved in the original character case as is, and all search will be performed in
a case-insensitive manner. If specified with lower, all incoming client file/
directory names will be converted to lower case before saving or searching.
• --anonuid: Anonymous user id (for NFS only), usually 4294967294 on 32-bit
systems or 65534 on 16-bit systems. If not specified, default to 4294967294
• --anongid: Anonymous group id (for NFS only), usually 4294967294 on 32-
bit systems or 65534 on 16-bit systems. If not specified, default to
4294967294
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B

April 2012

23

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dxi4000 seriesDxi6500 seriesDxi6700 seriesDxi8500

Table of Contents