As a follow-up to Generate list of subnets on switch using SNMP?, we would like to do the same thing for IPv6 - i.e. poll all of our routers (Juniper and Cisco, at least for now) to identify which IPv6 subnets are active on which interfaces.
For IPv4 it's fairly straightforward to get the ipAdEntAddr and ipAdEntIfIndex, and with the former we can then get the ipAdEntNetMask for each address found. (In our environment we also get the ifAlias; if the combination of these doesn't match what's in our database then we start looking for typos in either the config or the database.)
For IPv6 it's not so obvious how to do get this information; it looks like in the IP-MIB we could query the ipAddressTable, but so far all attempts I've made have returned "IP-MIB::ipAddressTable = No Such Object available on this agent at this OID". On the other hand I've tried a few things using the IPv6-MIB, but from these all I've gotten is "IPv6-MIB::ipv6MIBObjects: Unknown Object Identifier".
I'm clearly missing something; assistance would be appreciated!