I cleaned up two more small scripts of mine sufficiently that I don't mind showing them to other people.
The first is "netapp-qdiff", which essentially subtracts one quota report from another, and shows you what changed between the two. It only works on NetApp 5.0 right now, but if 4.x capability is wanted, I'll consider trying to add it.
The second is "netapp-qformat", which prints out the quota report in a format that my small brain can read. It lines things up, converts to MB, prints decimal fractions for small usages, and sorts by tree name and disk usage. It should work for both NetApp 4.x and 5.0.
The two scripts can work together, so here's what the output of a netapp-qdiff piped through netapp-qformat might look like. It's a little wide, just like the 5.0 quota report format:
M-Bytes Files Type ID Volume Tree Used Limit Used Limit Quota Specifier ----- -------- -------- -------- ------- ------- -------- -------- ----------------- tree 1 vol0 local 0 0 2 - /local tree 2 vol0 transmeta-ht 10 0 57 - /transmeta-htdocs user joe vol0 transmeta-ht 8 0 10 - user bob vol0 transmeta-ht 2 0 47 - user mary vol0 transmeta-ht 0.1 0 4 - user jill vol0 transmeta-ht 0.1 0 3 - user billy vol0 transmeta-ht 0 0 -1 - user pat vol0 transmeta-ht 0 0 -2 -
Also, instead of continuing to post my scripts here, I stuck the last three at URL:http://www.pathname.com/~quinlan/netapp/.
So, is anyone finding this stuff useful or does everyone here administer their filers from Windows?
- Dan