[SNMP4J] Agent address in SNMPv2

Pavel Orehov pavel.orehov at gmail.com
Tue Jul 3 20:11:00 CEST 2007


Hi,

Sorry guys, there is an AgentIP
http://www.tcpipguide.com/free/t_SNMPVersion1SNMPv1MessageFormat-3.htm but
only in SNMPv1 trap PDU. You even have the function in PDUv1.
setAgentAddress.
I thought that it also exist in SNMPv2.

Anybody knows why it was removed from the PDU in SNMPv2 ? May be security
issues, so that the real peer address would be only valid agent IP ?

Thanks,
Pavel

On 7/3/07, Tassos Kontogiorgis <tkontogiorgis at antcor.com> wrote:
>
> I cannot also understand the AgentIP.
> I have faced the situation where a device has more than one
> interfaces/IPs and it chooses a specific one to send the PDU over UDP,
> possible the
> IP of the interface which is closer to the destination in the layer-2
> network.
>
> Gibbons, Sean wrote:
> > I wasn't aware there is an AgentIP inside of a PDU.  As far as I know, a
> > PDU contains a set of variable bindings, a message ID, an error status,
> > and an error position.
> >
> > -----Original Message-----
> > From: snmp4j-bounces at agentpp.org [mailto:snmp4j-bounces at agentpp.org] On
> > Behalf Of Pavel Orehov
> > Sent: Tuesday, July 03, 2007 10:02 AM
> > To: Tassos Kontogiorgis
> > Cc: snmp4j at agentpp.org
> > Subject: Re: [SNMP4J] Agent address in SNMPv2
> >
> > I am afraid that it gived me the real peer that sended the UDP message.
> > What I need is the AgentIP inside the PDU that might be different from
> > the real one.
> >
> > On 7/3/07, Tassos Kontogiorgis <tkontogiorgis at antcor.com> wrote:
> >
> >> Try getPeerAddress() from the ResponseEvent or the
> >> CommandResponseEvent() .
> >>
> >> Pavel Orehov wrote:
> >>
> >>> Hi,
> >>>
> >>> I would like to know why there is no agentAddress members in PDU ?
> >>>
> >>> The problem that I listen to SNMPv2 messages and I need agentAddress
> >>>
> >> from
> >>
> >>> the PDU and it is not exists.
> >>>
> >>> Thanks,
> >>> Pavel
> >>> _______________________________________________
> >>> SNMP4J mailing list
> >>> SNMP4J at agentpp.org
> >>> http://lists.agentpp.org/mailman/listinfo/snmp4j
> >>>
> >>>
> >>
> > _______________________________________________
> > SNMP4J mailing list
> > SNMP4J at agentpp.org
> > http://lists.agentpp.org/mailman/listinfo/snmp4j
> >
> >
> > Confidentiality Notice
> > This e-mail (including any attachments) is intended only for the
> recipients named above. It may contain confidential or privileged
> information and should not be read, copied or otherwise used by any other
> person. If you are not a named recipient, please notify the sender of that
> fact and delete the e-mail from your system.
> >
> >
> >
> >
>
>



More information about the SNMP4J mailing list