Niels Baggesen wrote:

With this command:
   snmpwalk.exe -M mibs -m ALL -v1 -c public 10.0.0.21

I've getting lines with junk in the output:
   IPV6-MIB::ipv6NetToMediaValid.1.'................'.12 = INTEGER: true(1)

It is trying to show an OCTET STRING as a string, which in most cases is useful but fails miserably for IPv6 addresses which in the IPV6-MIB does not have a DISPLAY-HINT.

Try doing snmpwalk with the -Ob option, then you will see something like this:

ipv6NetToMediaValid.1.16.255.2.0.0.0.0.0.0.0.0.0.0.0.0.0.12 = INTEGER: true(1)

You should see similar data from IP-MIB in a more readable form.

Perfect! But I have no idea what a "DISPLAY-HINT" should do.

With:
  snmpwalk.exe -M mibs -m ALL -v1 -c public 10.0.0.21 
IPV6-MIB::ipv6NetToMediaValid

I get no more junk:
  IPV6-MIB::ipv6NetToMediaValid.1.16.255.2.0.0.0.0.0.0.0.0.0.0.0.0.0.12 = 
INTEGER: true(1)
  IPV6-MIB::ipv6NetToMediaValid.1.16.255.2.0.0.0.0.0.0.0.0.0.0.0.0.0.22 = 
INTEGER: true(1)
  IPV6-MIB::ipv6NetToMediaValid.1.16.255.2.0.0.0.0.0.0.0.0.0.0.0.1.0.2 = 
INTEGER: true(1)
  
IPV6-MIB::ipv6NetToMediaValid.5.16.32.2.109.189.32.120.0.1.93.187.117.76.81.91.63.96
 = INTEGER: true(1)
  ...

BTW Bart, I use the latest from SF's git.


--
--gv


_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to