2

On a NetApp filer's command line I'm running "sysstat -u" to show disk utilization, (actually the utilization of the single busiest disk). By disk utilization, I mean "percent of time the disk is busy", not "how much space on the disk is being used to store data/metadata".

Is there a way to get disk utilization info through SNMP? The netapp.mib file doesn't appear to expose this. It does have CPU utilization, disk usage & capacity information, etc, but not disk utilization. The MIB-II (rfc1213) seems to be the only other information exposed by the filer through SNMP. I hope I am missing something.

The "CP (consistency point) time" metric is exposed through the NETAPP-MIB in SNMP, but this seems to only partially correlate with disk utilization under write load, and not really at all under read load.

Andrew
  • 151
  • 1
  • 7

3 Answers3

3

Disk utilization as reported by sysstat is not exposed through SNMP.

Andrew
  • 151
  • 1
  • 7
0

If they support the HOST-RESOURCES-MIB, that's the standard place for reporting disk partitioning information. But, it'll only work if they actually support it.

Wes Hardaker
  • 774
  • 5
  • 6
  • `snmpwalk -c public -v1 HOST-RESOURCES-MIB::hrSystem` gives the expected result when host is a solaris box, but no output is generated when host is the filer. Looks like HOST-RESOURCES-MIB is not supported. Thanks, though. – Andrew Mar 17 '11 at 19:29
  • yeah, unfortunately it looks like there is no answer you're going to like then :-( – Wes Hardaker Mar 18 '11 at 13:25
0

You can get it via SSH using a bash script. This example script is named netapp.diskutil:

#!/bin/bash
ssh $1 -l root 'sysstat -c1 -u' | tail -n1 | rev | cut -d " "  -f1 | rev | cut -d "%" -f1

An example using the script:

# ./netapp.diskutil netapp1
12

You have to set up key authentication for this to work.

jscott
  • 24,484
  • 8
  • 79
  • 100