snmpget and snmpbulkget return different OIDs

"Michael W. Lucas" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Am I holding this wrong, or is it worth a bug report? Verified on
FreeBSD and CentOS.

$ snmpget localhost sysUpTimeInstance
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (320554) 0:53:25.54

$ snmpbulkget -Cn1 localhost sysUpTimeInstance
SNMPv2-MIB::sysContact.0 = STRING: [email protected]

Packet sniffing shows that both query .1.3.6.1.2.1.1.3.0.

If I use numbers and drop the trailing 0, I get the correct response:

$ snmpbulkget -Cn1 localhost .1.3.6.1.2.1.1.3
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (381676) 1:03:36.76

An snmpwalk -On shows the OID as having the trailing .0, as I would
expect.

.1.3.6.1.2.1.1.1.0 = STRING: FreeBSD freebsdtest 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC amd64
.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.8072.3.2.8
.1.3.6.1.2.1.1.3.0 = Timeticks: (389235) 1:04:52.35

Thanks,
==ml


-- 
Michael W. Lucas 	https://mwl.io/
author of: Absolute OpenBSD, SSH Mastery, git commit murder,
Immortal Clay, PGP & GPG, Absolute FreeBSD, etc, etc, etc...


_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.