Java Getting Name/Description for OIDs in MIB

末鹿安然 提交于 2019-12-01 05:25:28

You need a MIB parser - for example Mibble (available under GPL and commercial license).

I know thread is old, but it may help others. One can use SNMP4J-SMI jar get a name description for OIDS in MIB

How to use SNMP4J-SMI with SNMP4J

Just fyi it comes under License Commercial

Very rare usage of SNMP i found dude. I also worked on SNMP. For that, SNMP4J is better library we can use in java.

http://www.snmp4j.org/

It supports v1,v2 and v3 for SNMP.

Also you can implement Mib tree walking using that, and you can fetch perticular OID name/description and value also. Its very cool and easy to use once to get into it.

Also note, that you need to provide the IP address in the device manager right? so that the device can send SNMP traps to your application which is listening on some port.

You need to open the port also for traps.

hope this helps. let me know if any queries. You need to dig more into it. You know how networking stuff works :).

thanks.

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