Check the size of your storage value. -2071986176 decimal is FFFFFFFF84800000 hex, but this is a 4-byte word. The same value (-2071986176 decimal) is 84800000 hex as a 2-byte word. 84800000 hex is 2222981120 decimal, which is the value being reported by your df command.
It appears that df uses DWORD values and snmpget uses QWORD values.
-----Original Message----- From: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com] On Behalf Of Buerger, Andreas Sent: Thursday, June 21, 2007 12:06 PM To: toasters@mathworks.com Subject: faulty snmp output?
Hi,
I am just testing with some SNMP on our Filers. During some tests I mentioned something, I can't explain.
The SNMP query dfKBytesTotal returns negative output on some volumes:
snmpget -v 1 -t 30 -Osq -c public FILER
NETWORK-APPLIANCE-MIB::dfKBytesTotal.19 dfKBytesTotal.19 -2071986176 dfKBytesTotal.20 0
The equal command directly issued from the filer returns the following:
ssh FILER df -k VOLUME
Filesystem total used avail capacity Mounted on /vol/VOLUME/ 2222981120KB 2030845132KB 192135988KB 91% /vol/homes02/ /vol/VOLUME/.snapshot 0KB 40077688KB 0KB ---% /vol/homes02/.snapshot
Does anybody have an idea why the snmp output is negative and not same as the df -k from the filer?
Here some information of the test environment:
MIB Version: Version 1.19.3, March 2007 (on filer and localhost) Filer: FAS3050 with OnTap 7.0.2
Best regards Andreas
----------------------------------------- Wincor Nixdorf Int. GmbH WN CIO4 Computing & Storage Heinz-Nixdorf-Ring 1 33106 Paderborn
Phone: +49 5251 693 4215 Fax: +49 5251 693 4200 Mail: andreas.buerger@wincor-nixdorf.com -----------------------------------------
Confidentiality Notice:
This e-mail is intended only for the personal and confidential use of the individual to whom it is addressed and may contain information that is privileged, confidential and protected by law. If you are not the intended recipient, you are hereby notified that any use or disclosure of this information is strictly prohibited. If you have received this message in error, please notify the sender immediately by reply e-mail and delete the original message. Your compliance is appreciated.