开发者

How to implement mib module in net-snmp with python?

in the faq, i read this "..the agent can also support MIB modules implemented in perl or (from 5.4) python." I have built net-snmp with python support, but it's not clear yet how to actually implement my own MIB module with python开发者_开发知识库 now. The python scripts i see in the python directory are related to implementing an snmp client, not an snmp agent. Probably i just miss the point somewhere. Can someone give me a hint on how to get started with this?

Thanks,

Tom


Unfortunately, net-snmp does not yet include support for agent creation in python. If you look at the README in the python directory of the net-snmp source tree, it says,

The 'netsnmp' module provides a full featured, tri-lingual SNMP (SNMPv3, SNMPv2c, SNMPv1) client API.

It looks like they've updated the FAQ and removed any mention of python.

If you are set on using python, you can checkout PySNMP as an alternative. I don't have any personal experience with it but the project is active (the most recent update was in January of this year) and it looks to have most features except AgentX support (so you can't create a subagent that connects to snmpd).


There is an AgentX library in pip for writing Python SNMP sub-agents.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜