Re: [pysnmp-users] snmpwalk.py and switch stack members
Brought to you by:
elie
From: Olav <ne...@st...> - 2003-07-28 12:35:42
|
A list for users of pure-Python SNMP framework <pysnmp-users.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/pysnmp-users>, <mailto:pys...@li...?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=pysnmp-users> Ilya Etingof <il...@gl...>: > > Please, try the snmpwalk.py attached and let me know if it helps. > Hi again! I've tried the modified snmpwalk.py, but it still fails. I don't think the problem is snmpwalk.py anymore, but rather (I guess) role.py. The error is the same. Traceback (most recent call last): File "D:\pysnmp\examples\snmpwalk.py", line 135, in ? client.send_and_receive(req.encode(), (None, 0), cb_fun) File "d:\pysnmp\pysnmp\mapping\udp\role.py", line 180, in send_and_receive raise error.NoResponseError('No response arrived in %d secs * %d retries' % (self.timeout, self.retries)) pysnmp.mapping.udp.error.NoResponseError: No response arrived in 1 secs * 5 retries But when I do a trace, I can see that the response contains the data I'm looking for: Internet Protocol, Src Addr: 10.1.10.65 (10.1.10.65), Dst Addr: 10.1.0.10 (10.1.0.10) User Datagram Protocol, Src Port: 1041 (1041), Dst Port: snmp (161) Simple Network Management Protocol Version: 1 (0) Community: my_community!@sw1 PDU type: GET-NEXT (1) Request Id: 0x000001d4 Error Status: NO ERROR (0) Error Index: 0 Object identifier 1: 1.3.6.1.2.1.1.1 (SNMPv2-MIB::sysDescr) Value: NULL Frame 19 (187 bytes on wire, 187 bytes captured) Ethernet II, Src: 00:01:e7:db:83:00, Dst: 00:01:03:04:cb:2c Internet Protocol, Src Addr: 10.1.0.10 (10.1.0.10), Dst Addr: 10.1.10.65 (10.1.10.65) User Datagram Protocol, Src Port: 1507 (1507), Dst Port: 1041 (1041) Simple Network Management Protocol Version: 1 (0) Community: my_community!@sw1 PDU type: RESPONSE (2) Request Id: 0x000001d4 Error Status: NO ERROR (0) Error Index: 0 Object identifier 1: 1.3.6.1.2.1.1.1.0 (SNMPv2-MIB::sysDescr.0) Value: STRING: HP J4121A ProCurve Switch 4000M, revision C.09.09, ROM C.06.01 (/sw/code/build/vgro(c09)) Olav ------------------------------------------------------------ Få din egen @start.no-adresse gratis på http://www.start.no/ |