开发者

Can jboss snmp adapter(snmp agent) be extended to support my defined MIB?

I have our own MIB files, and I know in many cases, I have to write snmp agent to support my own MIB.

But this time, I think if I can make jboss snmp adapter(JBossSNMPAdapter) to support my MIB, it will be much easier. So that, through jboss snmp adapter, I can query by its oid. I know JBossSNMPAdapter already suppport MIB-II.

I wonder if jboss snmp adapter can suppport user defined MIB so that user can quer开发者_如何学JAVAy by oid? And how to configure? Are there some materials about this (jboss snmp adapter)?

Thanks a lot


Yes, this is quite straightforward to do.

Inside the snmp-agent.sar directory, you'll see a file called attributes.xml. This file associates SNMP OIDs with JMX attributes.

So for each item in your MIB, you need to expose that information via a JMX MBean, and then add the OID->JMX association to attributes.xml.

The agent itself neither knows nor cares about your MIB, so you need to be careful to specify the OIDs in attributes.xml properly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜