Brian, there is no kludge to it. rsh to your filer and run a "quota report" then just grep for "tree". As you can see here, the quota type is in the first field.
[root@mspadmin2.dal.mslp.ti.com] rsh regina quota report | more K-Bytes Files Type ID Volume Tree Used Limit Used Limit Quota Specifier ----- -------- -------- -------- ------- ------- -------- -------- ----------------- tree 1 vol3 everestTLM 834940 6291456 25212 - /vol/vol3/everestTLM tree 3 vol3 abs 4114328 4194304 224515 - /vol/vol3/abs
Another way is to mount your filer's /etc directory and read the third field from the quotas file which also classifies the quota as shown below.
[root@mspadmin2.dal.mslp.ti.com] more quotas /vol/vol0/5062_2_3 tree 6G /vol/vol1/pbmic tree 6G
Myself I use the quota report becuase not only does it give me the limit but what is currently being used so that I can calculate total usage from that.
Hope this helps.
-gdg
Brian Tao wrote:
Any plans to include a switch to "quota report" to display only
tree-type quotas? I don't see anything obvious in the manual to do this. I have a couple of filers that take can take half an hour to do a complete "quota report" when they're busy, 99.9% of the time looking up and displaying derived user quotas.
I have a script that generates HTML quota reports which runs from
a central admin host. I'd prefer to run it without requiring a config file listing quota trees, or kludge together some way to see which quota trees are defined (maybe use rdfile? ick...), send multiple rsh commands, collate the results, etc. I've got the data massaging working with the output of a single "quota report ; df ; df -i". It would be nice to keep that. :) -- Brian Tao (BT300, taob@risc.org) "Though this be madness, yet there is method in't"