Re: [pysnmp-users] GETNEXT and maxRows
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2015-02-12 15:24:17
|
Hi Frédéric, Just checked the latest (development) pysnmp operation: with maxRows=1 it sends just one GETNEXT: http://pysnmp.cvs.sourceforge.net/viewvc/pysnmp/pysnmp/?view=tar ilya On 02/12/2015 06:14 PM, Frédéric Perrin wrote: > Hi list, > > It seems that nextCmd() always sends one request too many. IOW, with the > following: > >>>> print cmdgen.CommandGenerator().nextCmd( > ... cmdgen.CommunityData("public"), > ... cmdgen.UdpTransportTarget(("192.168.100.240", 161)), > ... "1.3.6.1.2.1.1.4.0", > ... lexicographicMode = True, > ... maxRows = 1) > (None, Integer('noError'), Integer(0), [[(ObjectName(1.3.6.1.2.1.1.5.0), > OctetString('dut-1'))]]) > > Wireshark shows two GETNEXT being sent (and responded to), even though > only the first response is returned to me. I was expecting only one > request to be sent, as per maxRows. > > Am I doing something wrong? Or is there an off-by-one somewhere in > pysnmp? > > I'm running with python-pysnmp4 4.2.5-1 on Debian Sid. > > Cheers, > |