Request/responses with proxy forwarder

Rachna Bajaj rbajaj____traxit.com
Thu Dec 20 16:26:55 CET 2001


Hi all,
I am very new to SNMP and to agent++.My requirement is to write a
snmp agnet for our own server.This server handles sone kind of
session-establishment.
I have to define my own mib for a few of the parameters of the server.
Can somebody help me and explain to me how should I proceed using
agent++ and how helpful will it be using agent++.Is there any other API
available which might be easier to use?
Thanks ,
Rachna

----- Original Message -----
From: "Jochen Katz" <katz____agentpp.com>
To: "Ram Krishnaswamy" <RKrishnaswamy____pathfire.com>
Cc: <agentpp-dl____agentpp.com>
Sent: Thursday, December 20, 2001 8:44 AM
Subject: Re: Request/responses with proxy forwarder


> Hi,
>
>
> > (responses) dialup <-- Back-channel <-- Agent <--- Satellite
> (requests)
> >                               |
> >                               |
> >                          Dell, NAS agents
>
> > Do you think your second solution, extending pdu/target/address class,
> solve
> > this problem? If it does, can you describe it in a little bit more
> detail?
>
> I thought of a flag that is added to only one of these classes. It
> should be initialized to false and copied in the methods that copy or
> create a new object (like operator=(),...). During processing of a
> request, the flag could be set through a new method. I did this, when I
> added the SNMPv3 variables to the Pdu class.
>
> But maybe there is an easier way:
>
> > > One solution that I was thinking of was to let SNMP++ code know that
> > the
> > > request is for a proxy agent (thereby bypassing back-channel
> manager).
>
> If you can ensure that all get, get-next requests must be sent to the
> proxies and all responses or traps must be sent to the back channel
> manager, you could extend the call to send_snmp_request() to indicate
> the type of snmp-message, that is sent.
>
> > But
> > > the question I have is what happens to the response from the proxy
> > agent?
>
> I don't see a problem here: it is received, processed and the response
> to the original request is sent out.
>
> > > How do I differentiate between proxy agent request/response versus
> > sending
> > > the response to back-channel manager? If this is possible, how can
> > > this be done?
>
> Which one in the graphic is the agent++ agent? I thought it is the
> "Agent" but now I think, it is located as "Dell/NAS agents"...
>
> If it's the "Agent", then I would suggest the send_snmp_request()
> solution. If not, the extension to the Address class or the ip-list
> should work.
>
> Kind regards,
>   Jochen
>
>




More information about the AGENTPP mailing list