I don't know if this has been asked before but I'm having no luck finding anything on the web or in the support site.
We have a PHP application which access a share on Isilon with quota on. Is there an API we can use to find out what the quota is? The only thing I found is the Rest API for version 7, which we have no intention of upgrading to at this point. Any help is appreciated.
Thanks for you both. I had a look at both options and it appears the SNMP option is the most attractive. We are currently exposing the share as NFS and we mounted the parent directory but the quotas are active on the subdirectory level.
I also checked out the "container" flag Peter suggested and it too appears to be a good option (minimal change to code), but unfortunately the client sees the parent directory so not much good there.
Peter_Sero
6 Operator
•
1169 Posts
980
0
Posted February 27th, 2013 20:00
Ray, you can use SNMP:
Enable and configure in the WebGUI: Cluster -> Cluster Settings -> SNMP
For example, enable v2c, set read-only community = public
From the same WebGUI page, download the ISILON-MIB.txt file
to a place on your client machine
where snmpwalk expects to find MIB files.
Query (on the client):
snmpwalk -v2c -m ISILON-MIB -c public CLUSTER 'quotas'
where CLUSTER = resolvable hostname or IP of your cluster
Need to parse the SNMP output of course...
(Added:)
If you need only the directory quota (rather than user quota),
make sure to set the "container" flag in the quota definition.
Then, a regular "df" on the client will show the hard threshold
and the current usage as Size and Used parameters (resp.) of
the mounted volume.
Peter