
Command Reference
47
HP StorageWorks NAS 8000 Command Reference
Share Settings
Before network users can access the NAS server, you must give them permission. This is a
security concern. Each platform grants permission differently:
■
Windows: Shares are permissions that let you control Microsoft Windows users' access to
data. You can create shares for any directory within a file volume, including the root. Once
a share is created, users may attach to the share via the Network Neighborhood in
Windows and store and retrieve files and directories. If you are operating under share-level
security, you can limit access to shares by creating read-only or read/write passwords.
Windows-specific commands are covered in SMB settings.
■
UNIX: You create an export so that users can mount that volume/directory on their
systems. However, you must first specify the access mode. If you specify a read-only or
read/write access mode, users can use the
mount
command to access the volume from a
UNIX workstation. This restriction is only for general access to the system. User-level
restrictions also apply to all of the files and directories on the volume. Unix-specific
commands are covered in NFS settings.
Shares and exports let you control which data clients can access. Host access allows you to
control which client machines are allowed access to the HP NAS 8000, regardless of the user.
getStorageShareList
Returns a list of shares and exports that exist for the specified file volume, or for all file
volumes if none is specified.
■
inParam[0] = Volume name (if “*”, then do all shares for all volumes)
■
inParam[1] = Optional - if present, anything (true, 1, yes) means output Volume & Share
■
outParam[0:N] = Share path list - If inParam[1] exits, format is
'VolumeName:_*_:SharePath'
getStorageShareCount
Returns the number of shares on the specified file volume.
■
inParam[0] = File volume name
■
outParam[0] = Share count
addStorageShare
Creates a new share/export for the specified file volume.
■
inParam[0] = Volume name
■
inParam[1] = Share path
removeStorageShare
Removes the specified share/export from the specified file volume.
■
inParam[0] = Volume name
■
inParam[1] = Share path
OR (see getStorageShareList). This facilitates webFilter usage.
■
inParam[0] = Volume name:_*_:Share path
getStorageSharePath
Returns the path to the specified share/export.