Start a Conversation

Unsolved

This post is more than 5 years old

825

May 12th, 2011 12:00

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

2 Intern

 • 

20.4K Posts

May 12th, 2011 13:00

a little scripting project ?

get a list of all storage groups

symsg -sid list

assign this list to a variable and loop through them

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

2 Intern

 • 

1.3K Posts

June 11th, 2011 17:00

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

No Events found!

Top