ports/109713: snmpwalk does not return expected value

Helmut Schneider jumper99 at gmx.de
Thu Mar 1 10:10:10 UTC 2007


>Number:         109713
>Category:       ports
>Synopsis:       snmpwalk does not return expected value
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 01 10:10:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Helmut Schneider
>Release:        6.2
>Organization:
>Environment:
FreeBSD orakel 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007     root at dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386
>Description:
Using net-snmp-5.3.1 I try to query Real Memory which from my understanding should return the amount of built-in RAM:

[root at orakel ~]# snmpwalk -c public -v2c localhost HOST-RESOURCES-MIB::hrStorageDescr.2
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Real Memory
[root at orakel ~]# snmpwalk -c public -v2c localhost HOST-RESOURCES-MIB::hrStorageSize.2
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 193455
[root at orakel ~]# snmpwalk -c public -v2c localhost HOST-RESOURCES-MIB::hrStorageSize.2
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 193457
[root at orakel ~]# snmpwalk -c public -v2c localhost HOST-RESOURCES-MIB::hrStorageSize.2
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 193516
[root at orakel ~]# snmpwalk -c public -v2c localhost HOST-RESOURCES-MIB::hrStorageSize.2
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 193457
[root at orakel ~]#

[root at orakel ~]# snmpwalk -c public -v2c localhost HOST-RESOURCES-MIB::hrStorageAllocationUnits.2
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
[root at orakel ~]#

4096 Bytes*193457=792399872 Bytes=755 MBytes

I would expect Real Memory to be constant.

Anyway:

[root at orakel ~]# dmesg | grep -i memory
real memory  = 1073664000 (1023 MB)
avail memory = 1041477632 (993 MB)
[root at orakel ~]#

e.g. Windows (yeah, I know...) behaves as expected.
>How-To-Repeat:
Install net-snmp, start snmpd, query values.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list