MDSchneider
2 Bronze

Storage Allocated by Storage Group via CLI?

So, in SMC I can select the root folder for Storage Groups and recieve all the groups and the amount of storage associated with each, I can export this to csv as well. Very nice to do some accounting, but annoying to have to go through the GUI.

Any clues how I automatically retrieve this data via CLI? I can't find an option... I can list the storage groups, but not their associates allocation... ?

-Matt

0 Kudos
2 Replies
dynamox
6 Thallium

Re: Storage Allocated by Storage Group via CLI?

a little scripting project ?

get a list of all storage groups

symsg -sid <SID> list

assign this list to a variable and loop through them

expr `symsg show sgc_myhost -sid <SID>  | grep TDEV |awk '{a+=$5};END{print a}'` / 1024

0 Kudos
SKT2
4 Tellurium

Re: Storage Allocated by Storage Group via CLI?

since my devices are associated with an initiator group, i could find the total space used by each ig(equal to each serverSG in my opinion) . It will list total capacity

symaccess list -devinfo -ig hostname_hbax

0 Kudos