[AGENT++] LOGGING mechanism for AGENT++,snmp++

Ramasubramanian Venkataraman venkiram_be at yahoo.co.in
Mon Jul 9 19:20:56 CEST 2007


Hi Jochen,

Now its working fine and thanks a lot for your inputs.

I have some more questions on AGENT++ :-)

1) IS there any way to change the mode of the SNMP
Agent. i.e i want to run the agent in only V3 mode so
it couldn't take any V1 requests. Al later point of
time i would like to switchover to V1 mode. 

I have searched the  snmp++,agent++ .H files. But i
don't see any such config parameter to help me.

  Could you please let me know if this can be
possible?

2) What is the queue size in AGENT++. In my test
application with the higher rate of requests, agent++
response seems to be slow. FYI, i have disabled all
the LOGGING and for a less traffic the performance is
good.

If the queue and number of threads can be configurable
please let me know.


And the next question is related to the licensing

3) The licensing attachment and the pricing lists days
that the AGENT++ code is free and the source code can
be modifed and linked to the binary.

    I would like to use this library for a commercial
purpose. 
Please let me know if I can still use the library.
Also i would like to know whether agent++ and SNMP++
come under GPL3.1.


Thanks,

Venkataraman


Jochen Katz <katz at agentpp.com> wrote:

> Hi,
> 
> > Yes the file has re-created if i delete it. Also
> the LOGS are coming in a stdout console.
> >  Am i missing anything here?
> 
> nothing that I am aware of. Logs should only be
> printed to stdout if the
> file cannot be opened/created.
> 
> I verified that it works with the patch for
> snmpNext.cpp at the end of
> this mail.
> 
> I can only suggest that you run your program in
> debug mode and set a
> break point in AgentLogImpl::set_dest(const char*
> fname)
> 
> Regards,
>   Jochen
> 
> @@ -97,6 +97,8 @@
>           return 1;
>     }
> 
> +   DefaultLog::init(new
> AgentLogImpl("logger.txt"));
> +
>     // Set filter for logging
>     DefaultLog::log()->set_filter(ERROR_LOG, 7);
>     DefaultLog::log()->set_filter(WARNING_LOG, 7);
> 
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
> 



      Get the freedom to save as many mails as you wish. To know how, go to http://in.mail.yahoo.com



More information about the AGENTPP mailing list