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.
我已向现有 MIB 树添加了一个新节点。在 MIB 定义文件中,它是 Counter32,因为它在 c 文件中将是 unsigned long。我在 C 文件中使用 OID 中的数据类型作为 ASN_COUNTER 并返回硬编码值。但是当我做 snmpwalk、snmpget 或使用推理 mib 浏览器查看价值时,它给了我一些垃圾价值。
如果我遗漏了什么,有人可以帮忙吗?
我正在修改 net snmp 定制软件。
谢谢。