Den 30-03-2010 10:17, 陳雪姬 skrev: > snmpget -v 2C -c IPv6Ready > udp6:3ffe:501:ffff:100::303ffe:501:100:0213:49ff:fe00:2 > 1.3.6.1.2.1.4.37.1.4.4.254.128.0.4.0.0.0.0.2.20.56.255.254.238.127.125.4 > > the result is index out of range > > we try to debug this and found out that ipDefaultRouterLifetime > > 1.3.6.1.2.1.4.37.1.4.4.254( value is not allow after 115 but when using > IPv6 link-local address with FE80 254 value should be considered within > normal range) > > We also try this snmp get operation on snmp++ platform > > snmpGet 3ffe:501:ffff:100:0213:49ff:fe00:2 > 1.3.6.1.2.1.4.37.1.4.4.254.128.0.4.0.0.0.0.2.20.56.255.254.238.127.125.4 > -v 2 -CIPv6Ready > > Oid = > 1.3.6.1.2.1.4.37.1.4.4.254.128.0.4.0.0.0.0.2.20.56.255.254.238.127.125.4 > > Value = 1800
You OID is wrong. The length of the InetAddress is not IMPLIED, so you need the length of the address in front of the 254. snmpget complains because your OID expects 254 bytes of address data, and they are not present. Note also, you have specified a type of ipv6z(4), which requires 20 bytes of address, but you have only specified 16. The correct OID would (could) be 1.3.6.1.2.1.4.37.1.4.2.16.254.128.0.4.0.0.0.0.2.20.56.255.254.238.127.125.4 /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected] The purpose of computing is insight, not numbers --- R W Hamming ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
