首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 一个异步的、基于过程的包裹net-snmp

一个异步的、基于过程的包裹net-snmp

资 源 简 介

Multi-core SNMP Version 0.1.0 This is a process based wrapper around the Python binding for Net-SNMP. It uses multiprocessing from Python 2.6 or greater to create a worker pool that processes SNMP requests. Net-SNMP with Python bindings are synchronous, but this API solves that problem. Want to help? Shoot me an email. Example Here is an example of it running on localhost on a mac laptop ``` mac% time python multisnmp.py Unordered results: ("Darwin mac.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386",) ("Darwin mac.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386",) Stopping Process #0 Stopping Process #1 python multisnmp.py 0.18s user 0.08s system 107% cpu 0.236 total ``` Download You can download the script here: http://multicore-snmp.googlecode.com/files/multicore_0.1.0.py

文 件 列 表

multicore.py

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.181835s