Project

General

Profile

Bug #6548 ยป snmpOI-paste.txt

net-snmp 5.4.4 vs 5.7.3 hrStorageAllocationUnits - chune chune, 2016-01-10 06:29 PM

 
1
root@hipster:/usr/sbin# cat /etc/release
2
             OpenIndiana Development oi_151.1.8 X86 (powered by illumos)
3
        Copyright 2011 Oracle and/or its affiliates. All rights reserved.
4
                        Use is subject to license terms.
5
                           Assembled 19 February 2013
6
root@hipster:/usr/sbin# zfs list
7
NAME                         USED  AVAIL  REFER  MOUNTPOINT
8
pool02-data                  743K  14.0T   192K  /pool02-data
9
rpool                       12.3G  11.8G  29.5K  /rpool
10
rpool/ROOT                  4.07G  11.8G    19K  legacy
11
rpool/ROOT/openindiana      4.07G  11.8G  3.27G  /
12
rpool/ROOT/openindiana/var   809M  11.8G   659M  /var
13
rpool/dump                  4.00G  11.8G  4.00G  -
14
rpool/export                  38K  11.8G    19K  /export
15
rpool/export/home             19K  11.8G    19K  /export/home
16
rpool/swap                  4.25G  15.9G   115M  -
17
test4tb                      556K  3.51T   148K  /test4tb
18
				   
19
root@hipster:/usr/sbin# snmpd -v
20

    
21
NET-SNMP version:  5.4.4
22
Web:               http://www.net-snmp.org/
23
Email:             net-snmp-coders@lists.sourceforge.net
24

    
25
root@hipster:/usr/sbin# snmptable -v2c -c public localhost HOST-RESOURCES-MIB::hrStorageTable
26
MIB search path: /etc/net-snmp/snmp/mibs
27
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
28
SNMP table: HOST-RESOURCES-MIB::hrStorageTable
29

    
30
 hrStorageIndex                                hrStorageType    hrStorageDescr hrStorageAllocationUnits hrStorageSize hrStorageUsed hrStorageAllocationFailures
31
              1           HOST-RESOURCES-TYPES::hrStorageRam   Physical memory               4096 Bytes        524175        136850                           ?
32
              3 HOST-RESOURCES-TYPES::hrStorageVirtualMemory    Virtual memory               4096 Bytes       1393363         21544                           ?
33
             10 HOST-RESOURCES-TYPES::hrStorageVirtualMemory        Swap space               4096 Bytes       1048575             0                           ?
34
             31     HOST-RESOURCES-TYPES::hrStorageFixedDisk                 /                512 Bytes      31560574       6864849                           ?
35
             32     HOST-RESOURCES-TYPES::hrStorageFixedDisk          /devices                512 Bytes             0             0                           ?
36
             33     HOST-RESOURCES-TYPES::hrStorageFixedDisk              /dev                512 Bytes             0             0                           ?
37
             34     HOST-RESOURCES-TYPES::hrStorageFixedDisk  /system/contract                512 Bytes             0             0                           ?
38
             35     HOST-RESOURCES-TYPES::hrStorageFixedDisk /etc/svc/volatile               4096 Bytes       1371554           264                           ?
39
             36     HOST-RESOURCES-TYPES::hrStorageFixedDisk    /system/object                512 Bytes             0             0                           ?
40
             37     HOST-RESOURCES-TYPES::hrStorageFixedDisk /etc/dfs/sharetab                512 Bytes             0             0                           ?
41
             38   HOST-RESOURCES-TYPES::hrStorageNetworkDisk    /lib/libc.so.1                512 Bytes      31560574       6864849                           ?
42
             39     HOST-RESOURCES-TYPES::hrStorageFixedDisk              /var                512 Bytes      26045123       1349398                           ?
43
             40     HOST-RESOURCES-TYPES::hrStorageFixedDisk              /tmp               4096 Bytes       1371291             1                           ?
44
             41     HOST-RESOURCES-TYPES::hrStorageFixedDisk          /var/run               4096 Bytes       1371301            11                           ?
45
             42     HOST-RESOURCES-TYPES::hrStorageFixedDisk           /export                512 Bytes      24695763            38                           ?
46
             43     HOST-RESOURCES-TYPES::hrStorageFixedDisk      /export/home                512 Bytes      24695763            38                           ?
47
             44     HOST-RESOURCES-TYPES::hrStorageFixedDisk      /pool02-data                512 Bytes      71203761           384                           ?
48
             45     HOST-RESOURCES-TYPES::hrStorageFixedDisk            /rpool                512 Bytes      24695784            59                           ?
49
             46     HOST-RESOURCES-TYPES::hrStorageFixedDisk          /test4tb                512 Bytes             0           296                           ?
50

    
51
###############################################################################################################################################################
52
###Built net-snmp 5.7.3 from source here and symlinked snmpd and snmptrapd (relying on $PATH worked but did not report proper filesystem size for some reason)#
53
###svcadm disable net-snmp && cd /usr/sbin && mv snmpd snmpd.orig && mv snmptrapd snmptrapd.orig && ln /usr/local/sbin/snmpd /usr/sbin/snmpd && ln /usr/local/sbin/snmptrapd /usr/sbin/snmptrapd && svcadm enable net-snmp
54
###############################################################################################################################################################			 
55
root@hipster:/usr/sbin# snmpd -v
56
NET-SNMP version:  5.7.3
57
Web:               http://www.net-snmp.org/
58
Email:             net-snmp-coders@lists.sourceforge.net
59

    
60
root@hipster:/usr/sbin# snmptable -v2c -c public localhost HOST-RESOURCES-MIB::hrStorageTable
61
MIB search path: /etc/net-snmp/snmp/mibs
62
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
63
SNMP table: HOST-RESOURCES-MIB::hrStorageTable
64

    
65
 hrStorageIndex                                hrStorageType    hrStorageDescr hrStorageAllocationUnits hrStorageSize hrStorageUsed hrStorageAllocationFailures
66
              1           HOST-RESOURCES-TYPES::hrStorageRam   Physical memory               4096 Bytes        524175        136814                           ?
67
              3 HOST-RESOURCES-TYPES::hrStorageVirtualMemory    Virtual memory               4096 Bytes       1393315         21970                           ?
68
             10 HOST-RESOURCES-TYPES::hrStorageVirtualMemory        Swap space               4096 Bytes       1048575             0                           ?
69
             31     HOST-RESOURCES-TYPES::hrStorageFixedDisk                 /                512 Bytes      31560562       6864849                           ?
70
             37     HOST-RESOURCES-TYPES::hrStorageFixedDisk /etc/svc/volatile               4096 Bytes       1371097           264                           ?
71
             40     HOST-RESOURCES-TYPES::hrStorageFixedDisk    /lib/libc.so.1                512 Bytes      31560562       6864849                           ?
72
             42     HOST-RESOURCES-TYPES::hrStorageFixedDisk              /var                512 Bytes      26045111       1349398                           ?
73
             43     HOST-RESOURCES-TYPES::hrStorageFixedDisk              /tmp               4096 Bytes       1370834             1                           ?
74
             44     HOST-RESOURCES-TYPES::hrStorageFixedDisk          /var/run               4096 Bytes       1370844            11                           ?
75
             45     HOST-RESOURCES-TYPES::hrStorageFixedDisk           /export                512 Bytes      24695751            38                           ?
76
             46     HOST-RESOURCES-TYPES::hrStorageFixedDisk      /export/home                512 Bytes      24695751            38                           ?
77
             47     HOST-RESOURCES-TYPES::hrStorageFixedDisk      /pool02-data               8192 Bytes    1883498427            24                           ?
78
             48     HOST-RESOURCES-TYPES::hrStorageFixedDisk            /rpool                512 Bytes      24695772            59                           ?
79
             49     HOST-RESOURCES-TYPES::hrStorageFixedDisk          /test4tb               2048 Bytes    1885339444            74                           ?
80

    
    (1-1/1)