Re: Translating pysnmp oids to human readable strings

2009-03-09 Thread Shantanu Joshi
SpamMePlease PleasePlease writes: > On Fri, Mar 6, 2009 at 2:14 PM, Shantanu Joshi wrote: >> >> SpamMePlease PleasePlease writes: >> > .. snip > > The thing is that I have copied the file (as you may see, I did 'ls > -lA' on it. If the file wasnt there, the error message was different. > Also,

Re: Translating pysnmp oids to human readable strings

2009-03-07 Thread SpamMePlease PleasePlease
On Sat, Mar 7, 2009 at 8:33 PM, wrote: > SpamMePlease PleasePlease wrote: >> On Fri, Mar 6, 2009 at 2:14 PM, Shantanu Joshi >> wrote: >> > >> > SpamMePlease PleasePlease writes: >> > >> >> I actually tried to load the new file with following code: >> >> >> >> print builder.MibBuilder().getMib

Re: Translating pysnmp oids to human readable strings

2009-03-07 Thread rdmurray
SpamMePlease PleasePlease wrote: > On Fri, Mar 6, 2009 at 2:14 PM, Shantanu Joshi wrote: > > > > SpamMePlease PleasePlease writes: > > > >> I actually tried to load the new file with following code: > >> > >> print builder.MibBuilder().getMibPath() > >> mibBuilder = builder.MibBuilder().loadModu

Re: Translating pysnmp oids to human readable strings

2009-03-07 Thread SpamMePlease PleasePlease
On Fri, Mar 6, 2009 at 2:14 PM, Shantanu Joshi wrote: > > SpamMePlease PleasePlease writes: > >> >> I actually tried to load the new file with following code: >> >> print builder.MibBuilder().getMibPath() >> mibBuilder = builder.MibBuilder().loadModules('jnx-bgpmib2') >> >> but I am experiencing

Re: Translating pysnmp oids to human readable strings

2009-03-06 Thread Shantanu Joshi
SpamMePlease PleasePlease writes: > > I actually tried to load the new file with following code: > > print builder.MibBuilder().getMibPath() > mibBuilder = builder.MibBuilder().loadModules('jnx-bgpmib2') > > but I am experiencing the error: > > rivendell # python snmp.py > ('/usr/lib/python2.4/s

Re: Translating pysnmp oids to human readable strings

2009-03-06 Thread SpamMePlease PleasePlease
On Fri, Mar 6, 2009 at 11:37 AM, SpamMePlease PleasePlease wrote: > On Fri, Mar 6, 2009 at 9:03 AM, Shantanu Joshi wrote: >> >> SpamMePlease PleasePlease writes: >> >>> On Fri, Mar 6, 2009 at 6:56 AM, Shantanu Joshi >>> wrote: You need to parse the MIB file to get the human-readable names

Re: Translating pysnmp oids to human readable strings

2009-03-06 Thread SpamMePlease PleasePlease
On Fri, Mar 6, 2009 at 9:03 AM, Shantanu Joshi wrote: > > SpamMePlease PleasePlease writes: > >> On Fri, Mar 6, 2009 at 6:56 AM, Shantanu Joshi >> wrote: >>> You need to parse the MIB file to get the human-readable names >>> corresponding to the OIDs. The pysnmp library already provides this >>

Re: Translating pysnmp oids to human readable strings

2009-03-06 Thread birdsong
On Mar 5, 11:22 pm, SpamMePlease PleasePlease wrote: > On Fri, Mar 6, 2009 at 1:10 AM, birdsong wrote: > > On Mar 5, 2:30 pm, SpamMePlease PleasePlease > > wrote: > >> On Thu, Mar 5, 2009 at 10:12 PM, birdsong wrote: > >> > On Mar 5, 1:05 pm, birdsong wrote: > >> >> On Mar 5, 12:32 pm, SpamMeP

Re: Translating pysnmp oids to human readable strings

2009-03-06 Thread Shantanu Joshi
SpamMePlease PleasePlease writes: > On Fri, Mar 6, 2009 at 6:56 AM, Shantanu Joshi wrote: >> You need to parse the MIB file to get the human-readable names >> corresponding to the OIDs. The pysnmp library already provides this >> functionality. I haven't used this feature myself (I mainly use p

Re: Translating pysnmp oids to human readable strings

2009-03-05 Thread SpamMePlease PleasePlease
On Fri, Mar 6, 2009 at 1:10 AM, birdsong wrote: > On Mar 5, 2:30 pm, SpamMePlease PleasePlease > wrote: >> On Thu, Mar 5, 2009 at 10:12 PM, birdsong wrote: >> > On Mar 5, 1:05 pm, birdsong wrote: >> >> On Mar 5, 12:32 pm, SpamMePlease PleasePlease >> >> >> wrote: >> >> > Hey list, >> >> >> > I

Re: Translating pysnmp oids to human readable strings

2009-03-05 Thread SpamMePlease PleasePlease
On Fri, Mar 6, 2009 at 6:56 AM, Shantanu Joshi wrote: > You need to parse the MIB file to get the human-readable names > corresponding to the OIDs. The pysnmp library already provides this > functionality. I haven't used this feature myself (I mainly use pysnmp > to automate SNMP walk requests, li

Re: Translating pysnmp oids to human readable strings

2009-03-05 Thread Shantanu Joshi
You need to parse the MIB file to get the human-readable names corresponding to the OIDs. The pysnmp library already provides this functionality. I haven't used this feature myself (I mainly use pysnmp to automate SNMP walk requests, like the one in your code), but the documentation at found the be

Re: Translating pysnmp oids to human readable strings

2009-03-05 Thread birdsong
On Mar 5, 2:30 pm, SpamMePlease PleasePlease wrote: > On Thu, Mar 5, 2009 at 10:12 PM, birdsong wrote: > > On Mar 5, 1:05 pm, birdsong wrote: > >> On Mar 5, 12:32 pm, SpamMePlease PleasePlease > > >> wrote: > >> > Hey list, > > >> > I was given a task, to reproduce functionality of command spec

Re: Translating pysnmp oids to human readable strings

2009-03-05 Thread SpamMePlease PleasePlease
On Thu, Mar 5, 2009 at 10:12 PM, birdsong wrote: > On Mar 5, 1:05 pm, birdsong wrote: >> On Mar 5, 12:32 pm, SpamMePlease PleasePlease >> >> >> >> wrote: >> > Hey list, >> >> > I was given a task, to reproduce functionality of command specified >> > below by writing proper python functions to re

Re: Translating pysnmp oids to human readable strings

2009-03-05 Thread birdsong
On Mar 5, 1:05 pm, birdsong wrote: > On Mar 5, 12:32 pm, SpamMePlease PleasePlease > > > > wrote: > > Hey list, > > > I was given a task, to reproduce functionality of command specified > > below by writing proper python functions to reuse in some monitoring > > script: > > > rivendell# snmpwalk

Re: Translating pysnmp oids to human readable strings

2009-03-05 Thread birdsong
On Mar 5, 12:32 pm, SpamMePlease PleasePlease wrote: > Hey list, > > I was given a task, to reproduce functionality of command specified > below by writing proper python functions to reuse in some monitoring > script: > > rivendell# snmpwalk -Os -mALL -v1 -cgabilgathol 10.0.6.66 > .1.3.6.1.4.1.263

Translating pysnmp oids to human readable strings

2009-03-05 Thread SpamMePlease PleasePlease
Hey list, I was given a task, to reproduce functionality of command specified below by writing proper python functions to reuse in some monitoring script: rivendell# snmpwalk -Os -mALL -v1 -cgabilgathol 10.0.6.66 .1.3.6.1.4.1.2636.5.1.1.2 jnxBgpM2PeerIdentifier.0.ipv4."".unknown."".0.1.38.101.87.