[Bug 1314760] Re: first hrSWInstalledIndex is 0, should be 1
Vince N
1314760 at bugs.launchpad.net
Wed Apr 30 20:36:09 UTC 2014
apport information
** Tags added: apport-collected saucy
** Description changed:
According to RFC 2790 the hrSWInstalledIndex should start at 1:
hrSWInstalledIndex OBJECT-TYPE
SYNTAX Integer32 (1..2147483647)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"A unique value for each piece of software installed
on the host. This value shall be in the range from 1
to the number of pieces of software installed on the
host."
::= { hrSWInstalledEntry 1 }
However, when grabbing the hrSWInstalledTable, my first entry is at index 0.
Example:
$ snmpbulkget -v2c -c public -Cn1 -Cr1 -ObentU localhost 1.3.6.1.2.1.25.6.3
.1.3.6.1.2.1.25.6.3.1.1.0 = INTEGER: 0
For a CentOS 6 host the behavior is according to spec:
$ snmpbulkget -v2c -c public -Cn1 -Cr1 -ObentU centos6_srv.example.com 1.3.6.1.2.1.25.6.3
.1.3.6.1.2.1.25.6.3.1.1.1 = INTEGER: 1
I found this issue while trying to read HOST-RESOURCES-MIB::hrSWRunPerfTable with pysnmp, but kept getting an exception:
ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(-2147483648, 2147483647)), ValueRangeConstraint(1, 2147483647)) failed at: "ValueRangeConstraint(1, 2147483647) failed at: "0"" at Integer32
+ ---
+ ApportVersion: 2.12.5-0ubuntu2.2
+ Architecture: amd64
+ DistroRelease: Ubuntu 13.10
+ InstallationDate: Installed on 2011-04-30 (1095 days ago)
+ InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
+ MarkForUpload: True
+ Package: net-snmp (not installed)
+ ProcVersionSignature: Ubuntu 3.11.0-19.33-generic 3.11.10.5
+ Tags: saucy
+ Uname: Linux 3.11.0-19-generic x86_64
+ UpgradeStatus: Upgraded to saucy on 2013-10-18 (194 days ago)
+ UserGroups: adm admin cdrom dialout libvirtd lpadmin netdev plugdev sambashare wireshark
** Attachment added: "ProcEnviron.txt"
https://bugs.launchpad.net/bugs/1314760/+attachment/4101742/+files/ProcEnviron.txt
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in Ubuntu.
https://bugs.launchpad.net/bugs/1314760
Title:
first hrSWInstalledIndex is 0, should be 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1314760/+subscriptions
More information about the Ubuntu-server-bugs
mailing list