I've got a requirement to manage filer quotas from a home grown admin application. The basic functionality would be:
read user quota for user X
read group quota for group Y
set user quota for user X
set group quota for group Y
and 2) can be accomplished fairly easily via SNMP, however 3)
and 4) do not appear to be as straightforward.
Having read the quotas chapter in the storage admin guide it appears the only way to control quotas is via the /etc/quotas file. This means that whenever a quota changes (which I'd expect to occur several times a day) I need to re-write /etc/quotas and do a quota re-size or re-build.
Is there no more elegant way of doing this - via SNMP perhaps?
You are stuck with editing the quotas file. You probably found out from the manual that netapp quotas are very complex, so that is why quotas are specified in a file.
There is no way to set a single quota for a user or group on a netapp (unless you have a single volume with no qtrees in it). Each volume and qtree has its own user and group quotas, so one user can potentially have hundreds of different quotas. Fortunately the quotas file allows you to set default quotas, so you do not explicitly specify all of these quotas in practice.
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support