[SNMP4J] specifying community name in an agent

Jeff Ramin ramin at berbee.com
Tue Jul 29 15:21:01 CEST 2008


That would be great, but from looking at the javadoc, I don't see
how to do that.

Could somebody please let me know how I would change the community
name of MOServer object, assuming that's how I would accomplish a
change of community name?

Thanks.


Frank.Fock at t-online.de wrote:
> No, I meant that you can change the objects
> that are modified with the properties after
> that modification programmatically at any time.
> 
> Best regards,
> Frank
> 
> -----Original Message-----
>> Could you clarify? Are you saying: read the prop file, change
>> whatever props I need to, then use it in the AgentConfigManager
>> constructor?
>>
>> That will work before the AgentConfigManager is created, but is
>> there a way to change parameters (such as community name) after it
>> has been constructed?
>>
>> Thanks.
>>
>>
>> Frank Fock wrote:
>>> Hi Jeff,
>>>
>>> You can overwrite the settings from the property
>>> file programatically at any time after it has been read.
>>>
>>> Best regards,
>>> Frank
>>>
>>> Jeff Ramin wrote:
>>>> Hi folks.
>>>>
>>>> I've written an agent (embedded within an application) based on
>>>> the SampleAgent that you get with the snmp4j-agent code.
>>>>
>>>> This agent uses a property file for configuring the agent (an
>>>> MOInputFactory
>>>> is created using a PropertyMOInput object; the MOInputFactory is
>>>> then used
>>>> in the constructor of AgentConfigManager).
>>>>
>>>> This is ok, except I want to be able to set some of those
>>>> properties programmatically. For example, the community name for
>>>> the agent.
>>>>
>>>> Is there a way to use the property file for setting most
>>>> parameters, but overriding one or more after the fact?
>>>>
>>>> Thanks!
>>>>
>>>>
>>>>
>> --
>> Jeffrey Ramin
>> Berbee
>> ramin at berbee.com
>> 608.298.1024
>> _______________________________________________
>> SNMP4J mailing list
>> SNMP4J at agentpp.org
>> http://lists.agentpp.org/mailman/listinfo/snmp4j
>>
> 
> 

-- 
Jeffrey Ramin
Berbee
ramin at berbee.com
608.298.1024



More information about the SNMP4J mailing list