American Megatrends MAN-STOR-ITX27-CLI Manuel D’Utilisation

Page de 60
StorTrends® iTX Software CLI (Command Line Interface) (Version 2.7) User’s Guide
 
24
 
Share, Directory & ACL Configuration 
 
These commands work on NAS shares and directory. 
 
Command 
Argument 
Description 
create dir 
-p/--path <directory path> 
-x/--xml   
For example: create –p c0_nas0/new dir 
Creates a subdirectory with the 
given complete path. 
list dir 
-p/--path <directory path> 
-x/--xml 
Displays all directories in the 
volume. 
delete dir 
-p/--path <directory path> 
-f/--force (optional) 
-x/--xml 
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 
list share 
 
Displays all shares and details of 
each. 
get share 
-t/--type {share} 
-c/--count 
-x/--xml 
Gets the number of shares. 
get share 
-t/--type {share} 
-i/--info 
-p/--path < path of the share > 
-x/--xml 
Gets the share information 
according to the path given. 
get share 
-t/--type {acl} 
-p/--path < path of the share > 
-x/--xml 
Gets the acl permissions of a share. 
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 
Adds specified share to the system. 
Note: Please make sure a directory 
with the same path is made before 
creating a share 
delete share 
-t/--type {share} 
-n/--name <name of the share > 
-x/--xml 
For example: delete -t share –n share1 share 
Deletes a share from the system. 
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 
Deletes a acl share from the 
system. 
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: 
set -t acl -p Cont0_Volume0/dir1 -
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 
 
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