Well the config that would be used for a given node. Doesn't OpenNMS
> keep a bunch of objects representing these configs or does it create a
> new SnmpAgentConfig everytime it wants to do a snmp query to a node?


To get an SnmpAgentConfig ask the SnmpPeerFactory (this should probably be
renamed to SnmpAgentConfigFactory).  You can look up the config by the ip
address.

SnmpPeerFactory.getInstance().getAgentConfig("192.168.1.1");


Hope that helps,
Matt
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to