Share, Directory & Acl Configuration - American Megatrends StorTrends User’s guide User Manual

Command line interface version 2.7
Table of Contents

Advertisement

Share, Directory & ACL Configuration
These commands work on NAS shares and directory.
Command
Argument
create dir
-p/--path <directory path>
-x/--xml
For example: create –p c0_nas0/new dir
list dir
-p/--path <directory path>
-x/--xml
delete dir
-p/--path <directory path>
-f/--force (optional)
-x/--xml
list share
get share
-t/--type {share}
-c/--count
-x/--xml
get share
-t/--type {share}
-i/--info
-p/--path < path of the share >
-x/--xml
get share
-t/--type {acl}
-p/--path < path of the share >
-x/--xml
add share
-n/--name <name of the share >
-p/--path <path to be added>
- s/--prototype {cifs/nfs/upnp/apple/http/ftp}
-x/--xml
For example: add –n share0 –p c0_nas0/new –s cifs
–s ftp share
delete share
-t/--type {share}
-n/--name <name of the share >
-x/--xml
For example: delete -t share –n share1 share
delete share
-t/--type {acl}
-p <directory path>
-u/--username <username> or -g/--groupname
<groupname>
-x/--xml
For example: delete -t acl -p c0_v0/test1 -u test1
share
set share
-t/--type {acl}
-x/--xml
-p/--path <directory path>
-m/--mode
<USERNAME:MODE{user/group}:PERMISSION
S:INHERITANCE:ALLOW:LEVEL>
-e/--enable or -d/--disable
-v/--voltype (0 for NT 1 for posix)
-i/--inherited (0 to not inherit 1 otherwise)share
For example:
m user1:user:agf:3:1:0 -m user2:user:agh:5:0:0 -m
group1:group:gd:3:1:1 -e -v 1 -i 0 share
StorTrends® iTX Software CLI (Command Line Interface) (Version 2.7) User's Guide
24
set -t acl -p Cont0_Volume0/dir1 -
Description
Creates a subdirectory with the
given complete path.
Displays all directories in the
volume.
Deletes a subdirectory with the
given complete path. The complete
path should also include the
volume path exported by the
system. The subdirectory should be
empty before deletion.
Note: the parent directory cannot
be deleted For example: c0_nas0
Displays all shares and details of
each.
Gets the number of shares.
Gets the share information
according to the path given.
Gets the acl permissions of a share.
Adds specified share to the system.
Note: Please make sure a directory
with the same path is made before
creating a share
Deletes a share from the system.
Deletes a acl share from the
system.
Sets the acl permission of the share
(maximum of 4 ACL permissions
can be entered at a time. And 237
acl permissions maximum per
share).
The -e/-d option is to enable or
disable ACL recursively for the
root folder and sub folders
ALLOW FOR NT
0 - Allow ACE 1 - Deny ACE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Stortrends itx

Table of Contents