Hello Guenter,
The SampleAgentConfig.properties file is used to
configure the content of the agent's managed objects,
but not to configure what those objects are.
To add a managed object (table or scalar) to an
agent you will have to register a MOScalar or
DefaultMOTable instance as shown in TestAgent or
AgentConfigManager.
If you only want to provide static data, you can
use a simplified approach through the StaticMOGroup
as shown by the SnapshotAgent example which reads
object and object data information from a SNMP4J
or MIB Explorer snaphost file. This approach can
be used to provide an ad-hoc agent - a so called
simulation agent.
Hope this helps.
Best regards,
Frank
Guenter Wildmann wrote:
Hello!
I am trying to publish integer values via snmp. They should appear on an
enterprise oid.
How do I write the properties-file correctly to have them available in
the
agents mib?
I changed the SampleAgentConfig.properties to have the sysObjectID point
to my enterprise OID
snmp4j.agent.cfg.oid.1.3.6.1.2.1.1.2.0={o}1.3.6.1.4.1.123
and added the line
snmp4j.agent.cfg.oid.1.3.6.1.4.1.123.0={i}10
But this does not work. Every hint welcome.
Ciao, Guenter
_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j