This post is more than 5 years old
6 Posts
0
1246
June 8th, 2011 02:00
i need a script for my daylie work (storage Report)
Hi Guys,
iam pretty new in the IT Business and I have a little Problem.
When iam logged on a NAS Celerra via Putty.exe (ssh) i wanna know how much capacity does a department used from the storage Pool.
A Department is in our Company a treequota without Soft or Hardlimit (flatrate saving :-) ). For Example: /3256 is a not quoted treequota (/3256 is the departmend name).
So i use the command:
nas quotas - list - tree -fs
for Example the Output is:
Tree | Bytes Used (1K) | Files |
---|---|---|
Tree | Used Soft Hard Timeleft | used soft hard Timeleft |
#1 | 123309213 | |
#2 | 34928378210 | |
#3 | 12923921 | |
#4 | 0 | |
#5 | 12382191 | |
So now i know how much capacity is used but i dont know wich departmend is the tree #1 #2 #3 etc.
I need a second command wich is:
nas_quotas -list -tree -fs
the Ouput is for Example:
treeid | Quota tree Path |
---|---|
#1 | /3103 |
#2 | /3278 |
I have to adjust the Tree ID with the first Command and the Tree ID in the second command to know how much capacitie my departmens use. This is a bit unfortunatlie for me. I hope you can help me with a script.
PS: The GUI does not give me any Informations :-(
dynamox
9 Legend
•
20.4K Posts
0
June 9th, 2011 05:00
i am not going to ask you for money but you will have to stare at my ugly perl script that produces this spreadsheet .. deal ?
Peter_EMC
674 Posts
0
June 8th, 2011 04:00
Running from the Controlstation something like:
$ nas_fs -query:"*IsRoot==False:Type==uxfs" -fields:TreeQuotas -format:"%q" -query:"*" -fields:Filesystem,ID,Path,BlockUsage -format:"%s,%s, %s, %s\n"|sort
all in one line
will give something like:
FS name,1, /quota1, 123
FS name,2, /quota2, 334
B_Tietz
6 Posts
0
June 8th, 2011 04:00
Hi Peter,
thanks for your fast answer.
But i have a problem with that script. I get to much informations at once. Putty cant constitute this whole bunch of informations :-(
But its the right Step iIam searching for. The Script from Windows is no must have but would be very very cool and unversial.
dynamox
9 Legend
•
20.4K Posts
0
June 8th, 2011 04:00
where will the script need to run ? Window or you ok running from control station ?
B_Tietz
6 Posts
0
June 8th, 2011 04:00
From Windows would be very nice.
Peter_EMC
674 Posts
1
June 8th, 2011 05:00
What about an additional " | less " or output redirection using " > filename"
or increasing the putty scrollback buffer :-)
dynamox
9 Legend
•
20.4K Posts
0
June 8th, 2011 07:00
do you have any scripting experience ? The task is not that complicated, you want use treeid as you index since it's the same in both outputs (nas_quotas -list and nas_quoats -report). You use this treeid to get information of folder name and quota usage.
B_Tietz
6 Posts
0
June 8th, 2011 22:00
Dear Mr. Dynamox,
i really dont have any experience wih scripting, really zero! I asked a EMC Worker in our Company he want Money for his Work. I wrote with the EMC Live Chat and they told me i have to pay for this service.
Then i call the EMC Hotline and asked, they told me that i have to try it here :-)
Very nice would be a tool i can run that extract all informations into an excel sheet. That would be awesome. Is something like that possibl or is it to difficult?
dynamox
9 Legend
•
20.4K Posts
1
June 9th, 2011 05:00
message me privately with your email address. There is some pre-work we have to do (install activeperl, install perl modules ..etc).
B_Tietz
6 Posts
0
June 9th, 2011 05:00
AWESOME!!!!!
Thats nearly exactly what iam searching for! Dynamox...BIG KISS from Germany.
Do you can send it me via E-Mail?
And how can I do something good for you?
B_Tietz
6 Posts
0
June 9th, 2011 05:00
I wrote you an PN :-)