HP StoreOnce Backup System CLI Reference Guide

nas create share
Description of Command Function
Creates either a CIFS or NFS share.
Command Syntax
nas create share [SETX] SHAREX proto {CIFS|NFS} [name <name>] [desc
<description>] [readonly {yes|no}] [encrypt {yes|no}] [dedupe {yes|no}]
[version {1|2}]
Command Authority
Administrator
Command Object Requirements
SET
X
This required object defines the service set where the NAS share is to be created. X
is the numeric index of the service set. This object is required for a multi-node system and
optional for a single-node system. If it is omitted for a single-node system, it defaults to SET1.
If the object is specified (either for a multi-node or single-node system), it must be specified in
the exact position as given by the command syntax (i.e., it must immediately follow the share
command).
SHARE
X
This optional object defines a share index. X is the numeric index of the share.
This object must be specified in the exact position as given by the command syntax (i.e., it
must immediately follow the share command if the SETX object is omitted; otherwise, it must
immediately follow the SETX object).
Command Parameter Requirements
proto This required parameter specifies the NAS share protocol, which is either CIFS or
NFS.
name This optional parameter specifies the NAS share name. If omitted, it defaults to
Share_X1_X2 on multi-node systems and Share_X2 on single-node systems. X1 is derived
from the SETX object, and X2 is derived from the SHAREX object.
desc This optional parameter specifies the NAS share description. If omitted, it defaults to
an implementation dependent, short, descriptive name.
readonly This optional parameter specifies a read-only flag for a NAS share. If omitted, it
defaults to no and NAS share sets to read-write.
encryption The optional parameter specifies NAS the share description. If omitted, it defaults
to no.
dedupe The parameter enables deduping of share data.
Requirements for Command Execution
The command entry must conform to command syntax.
The service set SETX object must be valid.
The share SHAREX object must be valid.
Successful Command Output
Upon successful completion of the command, the following message is displayed, and then the
CLI returns to the user prompt:
Command Successful
nas create share 101