Re: [pysnmp-users] SNMP not getting a value
Brought to you by:
elie
|
From: Mr.V. R. <raj...@gm...> - 2008-07-15 04:37:50
|
Good Morning to All,
Can sombody please help me on *py2exe for pysnmp.*
I will be thankful, if you help me with sample source code.
Thank You.
Raj.
On Sat, Jul 12, 2008 at 12:21 AM, Ilya Etingof <il...@gl...> wrote:
>
> A non-empty "errorIndication" means request failure, in your case -
> requestTimeout, what leads to empty result.
>
> SNMP protocol supports 32-bit width integers so 2^32 values will pass
> through.
>
> >From your description it looks like your SNMP Agent is sometimes slow
> responding to your requests. You may want to try increasing timeout value
> in your SNMP Manager script:
>
> UdpTransportTarget(
> transportAddr,
> timeout,
> retries
> )
>
> -ilya
>
> [ skipped ]
>
> > The code to get a value is:
> > --------
> > newmibs=tuple(newmibs)
> > errorIndication, errorStatus, errorIndex, varBinds =
> >
> apply(cmdgen.CommandGenerator().getCmd,(cmdgen.CommunityData('my-agent',PASSWD,0),cmdgen.UdpTransportTarget((IP,
> PORT))) + newmibs)
> > print varBinds
> > print errorIndication,errorStatus,errorIndex
> > --------
> >
> > If it's working I get:
> > --------
> > [(ObjectName('1.3.6.1.2.1.2.2.1.4.1'), Integer32('1500'))]
> > None 0 0
> > --------
> >
> > If it's not working:
> > --------
> > ()
> > requestTimedOut 0 0
> > --------
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> pysnmp-users mailing list
> pys...@li...
> https://lists.sourceforge.net/lists/listinfo/pysnmp-users
>
--
S.V.RAJKUMAR,
XOU Solutions India Private Limited
No. 37, PM Towers,
Greams Road,
Thousand Lights,
Chennai - 6 .
Mobile No : +91 - 9940632275.
|