Re: python module for netsnmp

Bogdana Botez <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Well, I tried another python snmp module and it worked from the first try.
Still I don't know what was the problem with netsnmp, tough..

Bogdana Botez wrote:
> You meant this: snmpget -v 2c -c private 127.1:8333 
> MY-MIB::<numeric_or_string_oid>.0
>
> This works.
>
> The command line tools all work with MY-MIB and the agent (snmpset, 
> snmpget. snmpwalk etc). I also use a MIB browser and I'm able to manage 
> it just fine. Only the python library seems to get blocked somewhere.
>
> Bogdana
>
>
>
> Dave Shield wrote:
>   
>> On 16/04/07, Bogdana Botez <[email protected]> wrote:
>>     
>>> Q: > What happens if you try a "snmpget" request with the same 
>>> numeric OID?
>>>  > Does that return a value or not?
>>>
>>> A: I've just checked - it returns None:
>>> In [15]: oid = netsnmp.Varbind(<numeric_OID_here>,'0')
>>> In [19]: netsnmp.snmpget(oid, Version=2, RemotePort=8333,
>>> Community="private")
>>> Out[19]: (None,)
>>>       
>> Sorry - that's not quite what I meant.
>> What happens if you try the "snmpget" *command-line*
>> tool with the same OID?
>>
>> Dave
>>
>>     
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.