On Tue, Jun 10, 2003 at 12:56:45PM -0400, George Kahler wrote:
Hi, I'm setting up monitoring of a qtree space usage via snmp.
To do this I had to find out what the OID is that represents this qtree. Does anyone have any suggestions on easily getting this information short of doing an snmwalk and actually looking for it in the output ???
I thought that the qtree ID number would correlate with the snmp index for the qrKBytesUsed, qrFilesUsed and rPathName. But it does not.
From the 'quota report' output it lists my qtree as ID #1 K-Bytes Files Type ID Volume Tree Used Limit Used Limit Quota Specifier ----- -------- -------- -------- -------- -------- ------- ------- --------------- tree 1 auto2 cns-spool-mail 66340484 104857600 9655 - /vol/auto2/cns-spool-mail
From the 'qtree' output the qtree is #5 Volume Tree Style Oplocks Status -------- -------- ----- -------- --------- auto2 unix enabled normal auto2 cns-mailsrv unix enabled normal auto2 cns-perweb unix enabled normal auto2 cns-roaming unix enabled normal --> auto2 cns-spool-mail unix enabled normal
And looking thru the 'snmpwalk' output it looks like it is #5
enterprises.netapp.netapp1.quota.qrTable.qrEntry.qrKBytesUsed.5 = 66313508 enterprises.netapp.netapp1.quota.qrTable.qrEntry.qrKBytesLimit.5 = 104857600 enterprises.netapp.netapp1.quota.qrTable.qrEntry.qrFilesUsed.5 = 9667 enterprises.netapp.netapp1.quota.qrTable.qrEntry.qrFileLimit.5 = -1 enterprises.netapp.netapp1.quota.qrTable.qrEntry.qrPathName.5 = "/vol/auto2/cns-spool-mail" enterprises.netapp.netapp1.quota.qrVTable.qrVEntry.qrVIndex.1.5 = 5 enterprises.netapp.netapp1.quota.qrVTable.qrVEntry.qrVType.1.5 = qrVTypeTree(3)
Just to clarify, the ".5" isn't the tree #. The "qrVIndex" is supposed to actually be the "...number that identifies this entry in the file /etc/quotas in the given volume," but I haven't actually seen that correlation. The fact that the entries end with ".5" and the qrVIndex.1.5 being "5" is purely coincidental.
So it looks like the #5 entry wins ?!
George,
I just finished pulling my hair out over this... My implementation if more of a push rather than a pull (in SNMP-speak, mine is a trap rather than a poll).
The Filer sends traps such as "Soft block limit exceeded for user 3325, tree 1 on volume students." but there doesn't seem to be any correlation/pattern as to what "tree 1" is, exactly.
I've basically manually mapped out what the tree #'s are so that my trap-receiver can take appropriate action. My only hope is that the tree #'s don't change if/when I reboot the filer...
-- Dave Le Blanc Unix Systems Administrator Computer Science Department California Institute of Technology (626)395-2402