NET-SNMP DevIO on Solaris
Mike Brodbelt <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm trying to create useful graphs out of the Device I/O counters on
Solaris machines. One thing that's noticeable here is that when you
compare Solaris to Linux, net-snmp produces much more useful disk names
for Linux machines:-
snmptable -v 2c -c public localhost 1.3.6.1.4.1.2021.13.15.1
SNMP table: UCD-DISKIO-MIB::diskIOTable
diskIOIndex diskIODevice diskIONRead diskIONWritten diskIOReads diskIOWrites diskIOLA1 diskIOLA5 diskIOLA15
1 hda 0 0 0 0 ? ? ?
2 sda 271848448 357657088 10388 15342 ? ? ?
3 sda1 528896 270336 387 17 ? ? ?
4 sda2 15377408 6448640 1098 915 ? ? ?
5 sda3 2048 0 2 0 ? ? ?
6 sda5 190223360 54537216 5052 1990 ? ? ?
7 sda6 5690368 686592 973 95 ? ? ?
8 sda7 41849856 51960320 2262 7963 ? ? ?
9 sda8 887296 3168768 345 661 ? ? ?
10 sda9 16956416 200525312 1565 10650 ? ? ?
11 sda10 181248 0 111 0 ? ? ?
12 sdb 626688 0 88 0 ? ? ?
13 sdb1 191488 0 374 0 ? ? ?
14 sdb2 2048 0 2 0 ? ? ?
15 sdb5 191488 0 374 0 ? ? ?
compared to Solaris:-
snmptable -v 2c -c public localhost 1.3.6.1.4.1.2021.13.15.1.1
SNMP table: UCD-DISKIO-MIB::diskIOTable
diskIOWrites diskIOReads diskIONWritten diskIONRead diskIODevice diskIOIndex
492179 79214 1428984320 414330378 sd5 1
8 4 0 16 sd0 2
6 10 0 16 sd1 3
2529381 344693 2042794496 1269037962 sd6 4
Apart from the differences caused by differing Net-SNMP versions and MIB
layout, the device names on Solaris aren't very useful. Unlike Linux
device nodes, where one tends to know which bit of disk they refer to,
Solaris sd* devices correspond to instances of the sd driver, and aren't
the way one normally thinks about disks in a Sun machine.
I can translate them using a small C program:-
./disklist sd
Device Driver Instance Name = sd0, SVR4 name = /dev/dsk/c1t0d0s0
Device Driver Instance Name = sd1, SVR4 name = /dev/dsk/c2t0d0s0
Device Driver Instance Name = sd5, SVR4 name = /dev/dsk/c0t2d0s0
Device Driver Instance Name = sd6, SVR4 name = /dev/dsk/c0t3d0s0
The code for this is available from Sun at:-
http://access1.sun.com/codesamples/disknames.html
Is there any way I can shoehorn this translation into the agent, so I
get presented with the SVR4 names - either through configuration or by
hacking that short bit of code in? Failing that can it be a feature
request for the next version :-)
Thanks,
Mike
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users