2009/7/8 François Dumont <[email protected]>:
> I confirm that with this script (there is nothing else in the script except
> this) :
>
>> import netsnmp
>>
>> profileNb = "25"
>> qosType = "0"
>> value = "rbQoSProfileType"
>>
>> oid = netsnmp.Varbind(value, profileNb, qosType)
>> result = netsnmp.snmpget(oid, DestHost = "10.0.0.1", Community =
>> "private", Version = 2)
>> print("%s") %(result)
>
> It gives the segmentation fault.
OK -good.
Now - the next things to try are:
- The shell command
"snmpget -v 2c -c private 10.0.0.1 rbQoSProfileType.25"
- The shell command
"snmpget -v 2c -c private 10.0.0.1 rbQoSProfileType.24"
- The shell command
"snmpgetnext -v 2c -c private 10.0.0.1 rbQoSProfileType.24"
What results do you see from these two?
Then tweak the script above to read
profileNb = "24"
and run it again. Does it crash or not?
Now tweak it to read
result = netsnmp.snmpgetnext( .... )
and run it again. Does it crash or not?
Dave
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users