Retrieve Hardware Informations through SNMP

对着背影说爱祢 提交于 2019-12-06 13:28:53

The HOST-RESOURCES-MIB, which is where the above OID lies, will in deed describe a fair amount about the hardware on the system. But:

  1. the system would indeed need to support it. You've shown that the windows SNMP agent clearly doesn't list the right things and is functionally broken.
  2. Not every component in the system is listed there even on linux, because either the MIB shouldn't be listing those types of components or the code wasn't written to make it work.

For the linux case, you could always go work on the code and submit patches back to the original package (which for linux is certainly the Net-SNMP package).

There is also the ENTITY-MIB which is designed to model a system's hardware better, but I don't know of linux (or windows) support for it.

Finally, you could always run a different SNMP agent on the windows machine if it's not returning the right result. IE, I have heard (but don't use windows myself) that the Net-SNMP agent provides superior functionality on windows compared to the native SNMP agent.

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