Re: Trap Messages using SampleAgent from the network not working
>This is the part I'm not sure I understand. Correct me if I'm wrong, my
>understanding is let's say PC 1 (agent) generates a trap. The trap is caused
>by let's say a hardware malfunction. Shouldn't the trap message originate
>from PC 1 and not PC 2 because PC 1 has the failing hardware and the agent
>should simply report it to PC 2? That is, PC 2 is the trap receiver
>listening on port 162?
It's my mistake, just swap agent and monitor. But as I understand, this doesn't matter.
> Address address = GenericAddress.parse("udp:255.255.255.255/162");
Here you use broadcast address, it's better to specify monitor address (192.168.x.x).
> My idea is you deploy the
agent and the agent doesn't care who monitors it. With this approach, the
agent has to know who monitors it.
But how agent will know where to send trap messages ? Sending traps to broadcast is not a good idea.
I don't know what "((SnmpTargetAddrEntryRow)addr).getAddress()" is, but I think you can look at source
code deeper.
-----Original Message-----
From: Ver Allan N. Sumabat
[mailto:allan.sumabat@...]
Sent: Sunday, July 25, 2010 17:46
To: Kazantsev, Andrey V.
Cc: snmp4j@...
Subject: RE: [SNMP4J] Trap Messages using SampleAgent from the network not working
(Continue reading)