503
Using Celerra Command Scripts
List the name of the server with ID 2
nas_server -query:id==2 -format:'%s\n'
-fields:name`"
View which volume file system is built on
nas_fs -query:Name==my_fs -format:%d
-fields:VolumeID
View the block count of meta volume
nas_volume -query:Name==my_meta3 -format:%d
-fields:Blocks
View the block size of meta volume
nas_volume -query:Name==JAH_meta3 -format:%d
-fields:BlockSize
Find which server IDs use fs123
nas_fs -query:name==fs123 -format:'%s\n'
-fields:ServersNumeric
List all non-root disks that are not in use
nas_disk -query:inuse==n:IsRoot==False
-format:"%s\n" -fields:name
List unused volumes that contain “dc” in
the volume name
nas_volume -query:inuse==n:IsRoot==False:name=dc
-format:"%s\n" -fields:name
List all available disks on a particular
storage device (symm_id is a script/env
variable)
nas_disk -query:inuse==n:Sym-
mID==$symm_id:IsRoot==False -format:"%s\n"
-fields:name
Table 2
Task and query examples (Sheet 2 of 2)
Task
Example
Содержание Celerra
Страница 6: ...Celerra Network Server Command Reference Manual 6 Contents...
Страница 10: ...10 Celerra Network Server Command Reference Manual Preface...
Страница 16: ...16 Celerra Network Server Command Reference Manual Overview...
Страница 276: ...276 Celerra Network Server Command Reference Manual The nas Commands...
Страница 347: ...server_devconfig 347 The server Commands server_4 chain 0 chain 16 done server_5 server_5 chain 0 chain 16 done...