[pysnmp-users] snmpbulk.py blocks on select
Brought to you by:
elie
From: Snezhkov, D. <Dim...@pe...> - 2003-02-17 18:31:37
|
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> Guys, I just downloaded pysnmp-2.0.8 distribution and tried to do the following : # ./snmpbulk.py rtken CNSroCN 1.3.6.1.2.1.1.4 <<<<<< Hangs ..... Traceback (most recent call last): File "./snmpbulk.py", line 151, in ? client.dispatch() File "/opt/python/lib/python2.1/site-packages/pysnmp/bulkrole.py", line 219, in dispatch (response, src) = self.transport.receive() File "/opt/python/lib/python2.1/site-packages/pysnmp/role.py", line 155, in receive r, w, x = select.select(r, w, x, self.timeout) KeyboardInterrupt However, root@hp19rm4 [/opt/pysnmp/pysnmp-2.0.8/examples] # ./snmpbulkwalk.py rtken community 1.3.6.1.2.1.1.4 .1.3.6.1.2.1.1.4.0 ---> Name What's going on? Also, I read that snmpbulk.py script uses SNMP v.1/v.2c GET request to retrieve one or more SNMP objects from multiple SNMP agents at once. How do I specify multiple agents ? should I create a thread for each request ? Thanks, dimitry. |