I am using the following code:
import pysnmp
from pysnmp.entity.rfc3413.oneliner import cmdgen
errorIndication, errorStatus, errorIndex, \
varBindTable = cmdGen.nextCmd (
cmdgen.CommunityData(agent, community_string),
cmdgen.UdpTransportTarget ( (ip, port) ),
(str(oid))
)
where ip is the ipv4 address. How can I use a ipv6 address. I have read that pysnmp supports ipv6 as well. I dont know how to use the addresses here.
Thanks.