Newbie wondering how to start... :-)

Frank Fock Frank.Fock____t-online.de
Thu Feb 28 19:10:02 CET 2002


Hi Kjersti,

You are using "private" as the community for your SET request.
Please note that AGENT++ uses "public" as community for
all type of requests by default.

Hope this helps.

Best regards,
Frank

Kjersti Grønnevik wrote:

> Hi Frank,
>
> When I try to set a variable (which is readwrite)in the MG-Soft MIB Browser, I get:
> RequestList: add request: auth failure: (ipaddr), (private)
> in the agent konsole.
>
> I find a bit hard to see which functions to call to handle the set-request.
>
> Perhaps there are a standard way to handle this?
>
> I have not added any code except for the myMib.cpp and myMib.h created by agentGen.sta
> and the line
> mib.add(new myMib());
> in the function init(Mib& mib) in main  (former agent.cpp in the static table example)
>
> I have found 1 example in
> http://www.agentpp.com/doc2.x/node1.html to handle the get-request, and it workes when I "hard code" the oid value.
> (coffee temeratur)
> where  *((SnmpInt32*)value) = (long)get_coffee_temperatur();
> are used to get the oid value.
>
> Best regards,
> Kjersti





More information about the AGENTPP mailing list