kumar saurbh | 2 Jan 2010 09:14
Picon

Problem Regarding connection

Hi all,

I am trying to connect to the Some host with ipaddress and port 161 but when
transport.listen() method gets called it goes in listen mode but after that
the response pdu is null.

can u guys give me one example to connect with some host having details like
ipaddress,port and community string and snmp version. Plz send this to my id
saurabh1073@...

Thanks in advance.

Thanks & Regards
Kumar Saurabh

--

-- 
Thanks & Regards
Kumar Saurabh
Frank Fock | 2 Jan 2010 21:11
Favicon

Re: Problem Regarding connection

Hi Kumar,

Try to understand the difference between local and remote
IP address and port. For UDP communication you need
both a local address and port as well as a remote
address and port.

Which values are you using for local and remote and how
do you setup them in SNMP4J?

Regards,
Frank

On 02.01.2010 09:14, kumar saurbh wrote:
> Hi all,
>
> I am trying to connect to the Some host with ipaddress and port 161 but when
> transport.listen() method gets called it goes in listen mode but after that
> the response pdu is null.
>
> can u guys give me one example to connect with some host having details like
> ipaddress,port and community string and snmp version. Plz send this to my id
> saurabh1073@...
>
> Thanks in advance.
>
> Thanks&  Regards
> Kumar Saurabh
>
>
(Continue reading)

Suresh Kajla | 4 Jan 2010 10:03
Picon

Re: TestAgent with StaticIfTable

 hi

In TestAgent program* testAgent1.sysDescr  return System description*

can you please *for getting processor,services others information what
method i need to call*

its very urgent please reply me soon

thanks in advance

 ------------------------------
>
> *From:* Suresh Kajla [mailto:skkchoudhary@...]
> *Sent:* Thursday, December 31, 2009 12:18 PM
>
> *To:* Amos Nesher
> *Cc:* snmp4j
> *Subject:* Re: [SNMP4J] TestAgent with StaticIfTable
>
>
>
> thanks now i am able to run agent
>
> but when i am try to call it through mib browser then it (for version 3) it
> says authorization error
>
> can please suggest me what to do now
>
>
(Continue reading)

Amos Nesher | 4 Jan 2010 10:10

Re: TestAgent with StaticIfTable

I'm not sure I understood what you are really up to. Any way, 

To change the sysDescr you just need to override it using
testAgent1.setSysDescr(new OctetString("sys descr"));. 

You need to do it before calling the init() method.

Note that testAgent1.loadConfig(ImportModes.REPLACE_CREATE); is
overriding the sysDescr. 

So if you don't need it you can remove it. 

Other way is to override the sysDescr after it's already a mib.

:-) Amos 

________________________________

From: Suresh Kajla [mailto:skkchoudhary@...] 
Sent: Monday, January 04, 2010 11:03 AM
To: Amos Nesher
Cc: snmp4j
Subject: Re: [SNMP4J] TestAgent with StaticIfTable

 hi

In TestAgent program testAgent1.sysDescr  return System description 

can you please for getting processor,services others information what
method i need to call
(Continue reading)

Clement_Pellerin | 4 Jan 2010 16:53

SNMP4J configuration and persistence

I am using AgentConfigManager. I am confused between the configurationFactory and the
persistenceProvider? Is the configuration file only needed for the first time the agent boots? After the
agent is persisted once, would the persistence file override completely the configuration file?
Frank Fock | 4 Jan 2010 20:09
Favicon

Re: SNMP4J configuration and persistence

The configurationFactory is also needed if persistent MIB data
is available, because

(1) not all ManagedObjects may implement the
SerializableManagedObject interface
(2) a SerializableManagedObject may refuse to
load persistent data because its flag isVolatile
returns true.

Regards,
Frank

On 04.01.2010 16:53, Clement_Pellerin@... wrote:
> I am using AgentConfigManager. I am confused between the configurationFactory and the
persistenceProvider? Is the configuration file only needed for the first time the agent boots? After the
agent is persisted once, would the persistence file override completely the configuration file?
> _______________________________________________
> SNMP4J mailing list
> SNMP4J@...
> http://lists.agentpp.org/mailman/listinfo/snmp4j

--

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com
Clement_Pellerin | 4 Jan 2010 21:32

Re: SNMP4J configuration and persistence

Correct me if I'm wrong, but AgentConfigManager.configure() reads the configuration file using
MOServerPersistence.loadData() which means the configuration file is exactly equivalent to
read-only persistence in the current implementation.

I'm trying to decide how users will configure the agent USM and VACM. The cheaper the better as long as it is
full featured.
The configuration file is human-readable so it fits the bill. Unfortunately, the persistence format is
binary which makes it hard to predict the combined configuration.

Is it common to let the SNMP manager console modify the agent USM/VACM MIBs through SNMP SET requests?
If typical agents usually turn off write access to the USM/VACM MIBs, then I might simply turn off
persistence for now.

 
-----Original Message-----
From: Frank Fock [mailto:fock@...] 
Sent: Monday, January 04, 2010 2:09 PM
To: Pellerin, Clement
Cc: snmp4j@...
Subject: Re: [SNMP4J] SNMP4J configuration and persistence

The configurationFactory is also needed if persistent MIB data
is available, because

(1) not all ManagedObjects may implement the
SerializableManagedObject interface
(2) a SerializableManagedObject may refuse to
load persistent data because its flag isVolatile
returns true.

(Continue reading)

Sanjay Kumar | 5 Jan 2010 06:10
Picon
Favicon

regarding MOServerLookupListener

Hi,

I've created an agent that would fetch the data from a database for every snmpget request it receives. I just
wanted to confirm if implementing MOServerLookupListener and putting the back-end logic of connecting
to database and populating the oids is the best place.

I've put the business logic into lookupEvent. 

Please share your views if i'm correct or there's a better place to put the business logic of populating the
oids (scalars/tables).

best regards
Sanjay
karunakaran s.l | 5 Jan 2010 07:16
Picon

SNMP OID Support

Hi,
     I am not able to find the support for SNMP4j-Agent for the following
OID's, Is these OID are supported or not. If Supported please let me know
how to get those info, if not supported please provide sample implementation
"How to do it, by extending some class".

snmpOutPkts

snmpInTooBigs

snmpInNoSuchNames

snmpInBadValues

snmpInReadOnlys

snmpInGenErrs

snmpInTotalReqVars

snmpInTotalSetVars

snmpInGetRequests

snmpInGetNexts

snmpInSetRequests

snmpInGetResponses

(Continue reading)

Frank Fock | 5 Jan 2010 09:26
Favicon

Re: regarding MOServerLookupListener

Hi Sanjay,

Yes, it is OK to put the refresh logic into 
MOServerLookupListener.lookupEvent.
There are also other options of course.

Best regards,
Frank

On 05.01.2010 06:10, Sanjay Kumar wrote:
> Hi,
>
> I've created an agent that would fetch the data from a database for every snmpget request it receives. I
just wanted to confirm if implementing MOServerLookupListener and putting the back-end logic of
connecting to database and populating the oids is the best place.
>
> I've put the business logic into lookupEvent.
>
> Please share your views if i'm correct or there's a better place to put the business logic of populating the
oids (scalars/tables).
>
> best regards
> Sanjay
>
>
>
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J@...
(Continue reading)


Gmane