[Sorry for the delay in responding]

On 22/03/07, anand anand <[EMAIL PROTECTED]> wrote:
>    I have put the following option in the snmp.conf file :-
>              doDebugging = 1.
>
> after running net-snmp for 48 hrs the log file size grows very huge,
> ..... Is there any way i can dynamically turn off logging

Try setting NET-SNMP-AGENT-MIB::nsDebugEnabled to be 0.
That should turn off debug output.

Alternatively, you could try turning on selected debug tokens,
rather than turning on all debugging output (which does generate
a *lot* of output).
   Look through the source for DEBUG...() statements, for the
tokens that might be of interest to you.


>    or limit the size of the log file. For example : Say the log file
> size grows to 30 MB. After this size limit the log are overwriiten.

I don't believe there's a way to limit log files in this way, no.
Certainly not within the Net-SNMP library itself.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to