Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要通过 SNMP v2 获取和设置一些值。我正在寻找使用 SNMP4J(或任何其他库)通过 OID 获取和设置值的简单代码示例。
我使用 snmp4j.jar 和 java 编写了一个简单的应用程序。我已经提到了如何通过在你的 Windows 机器上运行 snmp 代理来测试这个应用程序。
这里给出一个简单的应用
网上有很多:
上一个关于SO的问题
http://blog.jayway.com/2010/05/21/introduction-to-snmp4j/
这应该让你开始。