[SNMP4J] agent address problem
Sreenivasa Rao Iruvanti, TLS-Chennai
Isreenivas at hcl.in
Wed Feb 20 10:42:37 CET 2008
Hello All,
I'm using snmp4j trap receiver at 162 port and other trap receiver at
10000 port. When a send a trap from agent initially it's receiving at
162 and sending the same to 10000 port. But when I send these trap
details to database, it's saving local machine ipaddress as agent
address rather than actual agent ipaddress. This is because I'm
directing trap from 162 to 10000 port which are running on my machine.
How do I get the actual agent ipaddress when trap is directed to 10000
port? The following is snippet of code to direct trap from 162 to 10000.
e.getMessageDispatcher().sendPdu(
new UdpAddress(InetAddress.getLocalHost(),10000),
e.getMessageProcessingModel(),
e.getSecurityModel(),
e.getSecurityName(),
e.getSecurityLevel(),
command,
false);
Thanks & regards
Sreenivas
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
More information about the SNMP4J
mailing list