2009/7/8 François Dumont <francoisdumon...@gmail.com>:
> This is the initial GET that crashes.

OK - it sounds as if a trivial script with *just* a single GET
request should still crash.  Nothing else - no prompting,
no SET requests, nothing.   Just something like:

    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)


Can you please confirm whether this is indeed the case.
Does the above script (suitably tweaked to match your
actual usage) crash or not?
   It would probably be sensible if you posted the corrected version
of the script as well, so I know *exactly* what you are working with.



>                  In fact, I noticed that before, but I
> used snmpwalk instead with the following line :
>
> print("Type = %s") %(result, )

No - you are complicating things too much again.
The next step after a GET request would be GETNEXT
(not a full walk).


> and it printed :
>
> rbQoSProfileType 25 = None ( None )

I'm sorry - but it's impossible to offer sensible advice based on
such fragmentary information.   Please can you always post
the *FULL* text of the test scripts you are using, including all
the information you provide, and the complete output.
(both expected, and actual)

   You say that you "used snmpwalk", but give no indication *how*
you used it.   It's actually a waste of my time to have to keep
guessing about the details that you don't mention.
   (Sorry if that comes over a bit harshly, but it is very frustrating).


> I am wondering why a GET crashes while a WALK doesn't
> (but doesn't give the correct answer) ?

Forget about the walk - there's no such request anyway.
Concentrate on a single GET, and we can take it from there.

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
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

Reply via email to