Newbie wondering how to start... :-)

Kjersti Grønnevik kgr____morecom.no
Thu Feb 28 15:41:23 CET 2002


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

-----Original Message-----
From: Frank Fock [mailto:Frank.Fock____t-online.de]
Sent: 27. februar 2002 23:57
To: Kjersti Grønnevik
Cc: agentpp-dl____agentpp.com
Subject: Re: Newbie wondering how to start... :-)


Hi Kjersti,

It is difficult to give an example for a GUI application. so may be you
can phrase your question more precise?

Best regards,
Frank

Kjersti Grønnevik wrote:

> Hi,
>
> I'm a bit overwhelmed by the code....  Could someone please give me a quick startup help?
> Something like an example of how to get a variable from the mib?
> and perhaps how to set a variable?
>
> I'm using KDevelop on linux redhat 6.x, latest agent++/snmp++ and I'm trying to get a variable via MG-Soft MIB Browser on a win2000 pc.
>
> Thank you so much in advance!
>
> Regards,
> Kjersti

--
Frank Fock - AGENT++
Email: fock____agentpp.com
Fax: +49 7195 177108






More information about the AGENTPP mailing list