koen janssens | 6 Apr 21:23 2012
Picon

(no subject)

http://tweested.com/ofmgo.html
 		 	   		  
Helcio Wagner | 9 Apr 20:22 2012
Picon

How to build a custom MIB/agent?

   Hi, gentlemen.

   I have developed a distributed application, and I want to remotely manage it using SNMP.
 
   What are the steps (softwares) required to (1) design a custom MIB, creating custom managed objects,
and (2) bind them to a SNMP agent? 

   Any help will be appreciated.   Best regards to everybody. 
 
---------------------------------------------
HELCIO WAGNER DA SILVA
Frank Fock | 9 Apr 22:04 2012

Re: How to build a custom MIB/agent?

Hi Helcio,

To design a custom MIB I recommend
MIB Designer (http://www.mibdesigner.com)

To create the framework code from your MIB,
I recommend AgenPro which generates Java or
C++ code from your MIB which can be extended
to instrument your application.
You can also use AgenPro to create your MIB
with a syntax highlighting text editor. Also this
is of course possible, I would not recommend it
for non MIB (SMI) experts.

The generated code can then be compiled with
your application and the instrumentation code
to form a SNMP agent.

See http://www.snmp4j.org/SNMP4J-Agent-1.4-InstrumentationGuide.pdf
for details on the instrumentation and
the AgenPro (https://agentpp.com) manual for
details on the code generation.

Best regards,
Frank

Am 09.04.2012 20:22, schrieb Helcio Wagner:
>     Hi, gentlemen.
>
>     I have developed a distributed application, and I want to remotely manage it using SNMP.
(Continue reading)

Brice Fines | 12 Apr 18:30 2012
Picon

SNMP4J 1.11.04 release date

Hi Frank,

Please, can you release SNMP4J 1.11.04, including fixes from version 
2.1.0, as a security update release.
As I explained in my previous message ( 
http://lists.agentpp.org/pipermail/snmp4j/2012-January/004774.html ), I 
would need an official release to put it in a production environment (they 
will not let me use the snapshot version), and we cannot migrate to 
version 2.x right now.
I guess the bug I reported is '[SFJ-57] Race condition in 
DefaultTcpTransportMapping when timeout occurs
  while a new message is being sent out.'.
Thanks for your support.

Regards
Brice
Frank Fock | 13 Apr 00:10 2012

Re: SNMP4J 1.11.04 release date

Hi Brice,

I will do my best to get the release out next week.

Best regards,
Frank

Am 12.04.2012 18:30, schrieb Brice Fines:
> Hi Frank,
>
> Please, can you release SNMP4J 1.11.04, including fixes from version
> 2.1.0, as a security update release.
> As I explained in my previous message (
> http://lists.agentpp.org/pipermail/snmp4j/2012-January/004774.html ), I
> would need an official release to put it in a production environment (they
> will not let me use the snapshot version), and we cannot migrate to
> version 2.x right now.
> I guess the bug I reported is '[SFJ-57] Race condition in
> DefaultTcpTransportMapping when timeout occurs
>    while a new message is being sent out.'.
> Thanks for your support.
>
> Regards
> Brice
> _______________________________________________
> SNMP4J mailing list
> SNMP4J@...
> http://lists.agentpp.org/mailman/listinfo/snmp4j

--

-- 
(Continue reading)

dajiang | 13 Apr 12:41 2012

seek clarification on SNMP v3 set operation

Hi list,

Here is my question or puzzle:

Based on SnmpRequest in the SNMP4J package, I am writing some Java code 
to do SNMP (v3) set on some device. Basically it works.
For my curiosity, I use Wireshark to capture packet exchanges between my 
code and the device; and compare them with a case whereby I use 
iReasoning MIB browser to do the SNMP v3 set operation.

To my surprise, although both methods work, they use different packet 
exchanges.
For MIB browser, the followings are the packets exchange:
192.168.1.222 is the setter, while 192.168.1.20 is the device.

No.     Time        Source                Destination           Protocol 
Length Info
       2 5.598626    192.168.1.222         192.168.1.20          
SNMP     113    get-request

No.     Time        Source                Destination           Protocol 
Length Info
       3 5.822897    192.168.1.20          192.168.1.222         
SNMP     156    report 1.3.6.1.6.3.15.1.1.4.0
No.     Time        Source                Destination           Protocol 
Length Info
       4 5.823536    192.168.1.222         192.168.1.20          
SNMP     183    encryptedPDU: privKey Unknown

No.     Time        Source                Destination           Protocol 
(Continue reading)

Jochen Katz | 14 Apr 21:15 2012

Re: seek clarification on SNMP v3 set operation

Hi,

> Here is my question or puzzle:

it would be easier, if you had disabled encryption.

> Other than exchanged packets numbers, the biggest difference is MIB 
> browser using get-request, while SNMP4J using set-request. Can someone 
> help me understand why there are differences? Do I use SNMP4J wrongly? Thx.

When sending a request to an agent, of which you don't know the engine
id, it does not matter, what kind of request you send to it. You will
always an unknown engine id report as a response.

Regards,
  Jochen
Amol Rao | 16 Apr 19:05 2012
Picon

V2 Trap Packet Fragmentation

Hi All:
  Just wanted to reach out and see if anyone encountered this situation.

I am sending out an SNMP trap (~1K size) from an agent system. When
manager receives the trap, its observe that its divided into multiple
traps and each trap carries one variable binding - which leads to
conclusion that the packets are getting fragmented at the SNMP level,
I wonder why this happens.

I did wireshark and realized that there is no UDP level fragmentation.

Both source (trap generation) and Destination (trap receiver) uses
snmp4j-1.11.jar but since on the receiving side, I have logic that
expects the trap to come in as one UDP packets, the whole thing breaks
apart. Moreover, I observed that its happening on only one system, the
same code works on another identical system.

Any pointers as to why this could be happening and what is the way around?

I am pretty sure that we are not crossing UDP packet limit, not that
it would matter at SNMP layer.

Thanks.

Cheers,
Amol
Amol Rao | 16 Apr 22:09 2012
Picon

Re: V2 Trap Packet Fragmentation

I see the following exception when trap is being sent out. Any pointers?

java.lang.NullPointerException
        at org.snmp4j.PDU.getBERPayloadLengthPDU(PDU.java:499)
        at org.snmp4j.PDU.getBERLength(PDU.java:436)
        at org.snmp4j.mp.MPv2c.prepareOutgoingMessage(MPv2c.java:118)
        at org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:444)
        at org.snmp4j.Snmp.sendMessage(Snmp.java:1078)
        at org.snmp4j.Snmp.send(Snmp.java:878)
        at org.snmp4j.Snmp.send(Snmp.java:871)
        at org.snmp4j.Snmp.send(Snmp.java:836)
        at org.snmp4j.Snmp.notify(Snmp.java:780)

Cheers,
Amol

On Mon, Apr 16, 2012 at 1:05 PM, Amol Rao <xamolrao@...> wrote:
> Hi All:
>  Just wanted to reach out and see if anyone encountered this situation.
>
> I am sending out an SNMP trap (~1K size) from an agent system. When
> manager receives the trap, its observe that its divided into multiple
> traps and each trap carries one variable binding - which leads to
> conclusion that the packets are getting fragmented at the SNMP level,
> I wonder why this happens.
>
> I did wireshark and realized that there is no UDP level fragmentation.
>
> Both source (trap generation) and Destination (trap receiver) uses
> snmp4j-1.11.jar but since on the receiving side, I have logic that
(Continue reading)

Amol Rao | 17 Apr 00:12 2012
Picon

Re: V2 Trap Packet Fragmentation

...any thoughts? anyone?

On Mon, Apr 16, 2012 at 4:09 PM, Amol Rao <xamolrao@...> wrote:
> I see the following exception when trap is being sent out. Any pointers?
>
>
> java.lang.NullPointerException
>        at org.snmp4j.PDU.getBERPayloadLengthPDU(PDU.java:499)
>        at org.snmp4j.PDU.getBERLength(PDU.java:436)
>        at org.snmp4j.mp.MPv2c.prepareOutgoingMessage(MPv2c.java:118)
>        at org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:444)
>        at org.snmp4j.Snmp.sendMessage(Snmp.java:1078)
>        at org.snmp4j.Snmp.send(Snmp.java:878)
>        at org.snmp4j.Snmp.send(Snmp.java:871)
>        at org.snmp4j.Snmp.send(Snmp.java:836)
>        at org.snmp4j.Snmp.notify(Snmp.java:780)
>
>
> Cheers,
> Amol
>
> On Mon, Apr 16, 2012 at 1:05 PM, Amol Rao <xamolrao@...> wrote:
>> Hi All:
>>  Just wanted to reach out and see if anyone encountered this situation.
>>
>> I am sending out an SNMP trap (~1K size) from an agent system. When
>> manager receives the trap, its observe that its divided into multiple
>> traps and each trap carries one variable binding - which leads to
>> conclusion that the packets are getting fragmented at the SNMP level,
>> I wonder why this happens.
(Continue reading)


Gmane