At 17:57 2003/04/16 -0700, Deepak Soneji wrote:
I am using MRTG - MIB downloaded from netapp.com which provides me wonderful historical data.
I was wondering if there is add-on or other utility which shows the similar historical data for total filer storage capacity vs utilization charts(not volume level).
It's not terribly pretty, but using UCD-SNMP and the following Perl snippet will yield the number of giga-octets of _active_ storage across various RAID groups:
open (SNMP, "/usr/local/bin/snmpwalk -Os $filerName public raidVTotalMb |"); while (<SNMP>) { chop; ($foo, $dsize) = split (/=/); $totDisk += $dsize; } close (SNMP);
$totDisk = $totDisk / 1024; $totDisk = sprintf "%6.1f", $totDisk;
There's a pretty impressive performance penalty associated with forking off to run "snmpwalk", but if you're only looking at one or two filers every five minutes or so it's not too bad. Ideally, this should get rewritten as native Perl with the SNMP module included with UCD-SNMP.
Similar walks of the filer MIB tree can be done to add up the total space usage across volumes.
+----------------------------------------------+-----------------------+ | Carl Richard Friend (UNIX Sysadmin) | The MathWorks | | Minicomputer Collector / Enthusiast | Natick, Massachusetts | | mailto:carl_friend@mathworks.com +-----------------------+ | http://users.rcn.com/crfriend/museum/ | ICBM: 42:18N 71:21W | +----------------------------------------------+-----------------------+