Hi, I'm trying to do a snmpset request in Python using the net-snmp library, but I don't really understand how does it work. I know that for a snmpwalk request, I have to do this (and it works) :
import netsnmp > > oid = "ipIfConfigIpAddress" > Version = 2 > DestHost = "10.0.0.1" > Communuty = "private" > > result = netsnmp.snmpwalk(oid, Version = Version, DestHost = DestHost, > Community = Community) > But with snmpset, it doesn't work (certainly because I don't use it as it has to be used) : oid = netsnmp.Varbind('ipIfConfigIpAddress') > > result = netsnmp.snmpset(oid, Version = Version, DestHost = DestHost, > Community = Community) > > It returns "Segmentation fault". Could you please tell me how to proceed ? I have looked at the README file<https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/trunk/net-snmp/python/README>but I don't really understand how to do. Thank you very much, François DUMONT
------------------------------------------------------------------------------
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users