Ubuntu – SNMPGet over IPv6

ipv6snmpUbuntu

So I am trying to do an snmpget via ipv6. Here are a few commands I've tried:

snmpget -v 1 -c public 'fdab:3bce:6c78:1:215:5dff:fe00:3914' sysUpTime.0
snmpget -v 1 -c public 'udp6:fdab:3bce:6c78:1:215:5dff:fe00:3914' sysUpTime.0
snmpget -v 1 -c public 'udp6:[fdab:3bce:6c78:1:215:5dff:fe00:3914]' sysUpTime.0
snmpget -v 1 -c public 'udp6:[fdab:3bce:6c78:1:215:5dff:fe00:3914]:161' sysUpTime.0
snmpget -v 1 -c public 'udp6:[fdab:3bce:6c78:1:215:5dff:fe00:3914%eth0]:161' sysUpTime.0

These responses result in Timeout: No Response from udp6:[fdab:3bce:6c78:1:215:5dff:fe00:3914]. or some variation of that sort.

I know snmp is working:

snmpget -v 1 -c public '127.0.0.1' sysUpTime.0

Results in: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (51895) 0:08:38.95

Within my /etc/snmp/snmpd.conf I've tried without an agentaddress (default for Ubuntu) or by setting it's value to 161 / 161,udp6 / upd6 / updv6 or many other variations.

My concern is perhaps Ubuntu's snmp isn't compiled with ipv6 support? How would I find that out?

Further information:

Distributor ID: Ubuntu
Description:    Ubuntu 10.04.3 LTS
Release:        10.04
Codename:       lucid

I am up to date and I am using the snmp snmpd packages. I also have a working ipv6 network and I can actually snmpget a windows machine via it's ipv6 address. Any help would be greatly appreciated.

Best Answer

Basic diagnosis steps should see this one solved:

  • Is snmpd listening on IPv6? (netstat -lun |grep :161)
  • Is the firewall configured to allow the traffic in? (ip6tables -L -n)
  • Does snmpd see the traffic, and does it appear to do something useful with it? (strace -p <snmpd PID>; check logs).