[英]Query by snimpy's Session takes too much time
I use snimpy
library to get query by OID
. 我使用snimpy
库通过OID
获取查询。
This query execution time takes about ~15sec 's: 该查询的执行时间约为15秒:
from snimpy.snmp import Session
s = Session(host, "83L80N3")
oid, host_cpu = s.get((1, 3, 6, 1, 4, 1, 9, 9, 109, 1, 1, 1, 1, 5, 1))[0]
but system snmpget
executes immediately. 但是系统snmpget
立即执行。
Did i missed something? 我错过了什么吗?
显式设置“ localhost”。
s = Session("localhost", "83L80N3")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.