|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-19 05:39 UTC] ras at e-gerbil dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
Description: ------------ snmp2_walk() is occasionally (but consistently) returning the wrong value for certain OIDs on certain devices. snmp2_real_walk(), snmp2_get, and other external utilities all report the correct value. Reproduce code: --------------- $test1 = snmp2_get($dev, $comm, "ifHCInOctets.163"); $test2 = snmp2_real_walk($dev, $comm, "ifHCInOctets"); $test3 = snmp2_walk($dev, $comm, "ifHCInOctets"); $proof = snmp2_walk($dev, $comm, "ifIndex"); print "SNMP2_GET test: $test1\n"; print "SNMP2_REAL_WALK test: {$test2['.1.3.6.1.2.1.31.1.1.1.6.163']}\n"; print "SNMP2_WALK test: {$test3[83]}\n"; print "Proof that I'm looking at the right ifindex: {$proof[83]}\n"; Expected result: ---------------- I expect snmp2_walk() to return correct results. :) Actual result: -------------- SNMP2_GET test: 1280817516439889 SNMP2_REAL_WALK test: 1280817516439889 SNMP2_WALK test: 3545696399506456 Proof that I'm looking at the right ifindex: 163