Proxy "registration"

Frank Fock Frank.Fock____t-online.de
Wed Dec 6 22:26:54 CET 2000


Hi Corrado,

There is no general solution for your problem. You may
however add your own failure detection by subclassing
MibProxy and adding a static (class) member to the
subclass that holds information about failed targets for
a request (ID). The failed targets could then be skipped
when accessed a second time while processing the same
request.

Hope that helps.

Best regards,
Frank

Corrado Giacomini wrote:

> First of all I apologize if this is a request for help ... again.. :-)
> but I can't find any valid solution to my problem so I query all of you
> for an help..
> I have an agent++ running (not SNMPv3..) I want it to proxy all request
> of
> mib2 objects (except those in the system group) to a ucdsnmpd running
> on a different box then the one on which my agent++ is running.
> My agent++  implements the mib2 system group.
> So my code more or less looks like this:
>
> mib.add(new sysGroup());
> mib.add(new MibProxy("1.3.6.1.2.1.2", READONLY, src));
> mib.add(new MibProxy("1.3.6.1.2.1.3", READONLY, src));
> mib.add(new MibProxy("1.3.6.1.2.1.4", READONLY, src));
> mib.add(new MibProxy("1.3.6.1.2.1.5", READONLY, src));
> mib.add(new MibProxy("1.3.6.1.2.1.6", READONLY, src));
> mib.add(new MibProxy("1.3.6.1.2.1.7", READ-ONLY, src));
> mib.add(new MibProxy("1.3.6.1.2.1.8", READ-ONLY, src));
> ....
> This way of registering a proxy has a drawback
> in the fact that if a NOC is walking the mib while the
> ucdsnmp (src) is down then the agent got stuck for a long time
> since is retrying five time for each registered entry  and between
> each retry there is a timeout period..
>
> I also tried this in order to register ucdsnmp only once:
> mib.add(new MibProxy("1.3.6.1.2.1", READONLY, src)); // all mib2 tree
> mib.add(new sysGroup()); // Hoping it overwrites the system group..
> But of course it doesn't work.
> Basically I want to avoid agent++ the retry to contact the ucdsnmpd for
> each
> added entry once it got a timeout on the first one.
> is it feasible ?
>
> -Corrado

--
Frank Fock - AGENT++
Email: frank____fock.de
Fax: +49 7195 177108





More information about the AGENTPP mailing list