SNMP: Create custom OID

本秂侑毒 提交于 2019-12-06 01:47:53

问题


I need custom OIDs for monitoring some of my software states. But I just can't understand: how can I create custom OID (like .1.3.6.1.4.1.30891.100.103) in Windows XP system? I need few of them to write there some info and read it when needed but I have no idea how to create them in the system.


回答1:


You should do this by writing an extension of Windows SNMP agent. The following article shows how,

http://www.codeproject.com/KB/IP/SNMP_Agent_DLL__Part1_.aspx




回答2:


There are a few options to register OIDs, including:

  • Private Enterprise Numbers (which are then publicly listed)
  • UUID-based OIDs

In both cases, this defines a prefix and you can do what you want with the rest of the tree.

I'd suggest reading this as well if you're not sure what to choose: http://www.oid-info.com/faq.htm (more specifically "How to get an OID assigned?").



来源:https://stackoverflow.com/questions/3458138/snmp-create-custom-oid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!