RE: SNMP logging
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Bruce, I am writing a main agent so I am not running snmpd at all since it would conflict with my agent. Is there any way how to turn on debugging in the API functions? I worked with several logging systems and all of them had some kind of set_log_level function for filtering of messages. I am unable to find it in snmp logging API. Thanks. Milan On Thu, August 9, 2007 10:35 pm, Bruce Shaw wrote: > This can be done using debug mode in the daemon. > > > Turning it all on is probably unworkable, but if you can identify the > module you're interested in, you can debug for that individual module. > > You'd run snmpd in its own window eg. > > > /usr/local/sbin/snmpd -f -Le -D ucd-snmp/lmSensors > > > In code you need to examine the DEBUGMSG line to figure out what > parameter to put at the end. > >> I am wondering, does somebody know how to set snmp logging >> > level/priority in C code? > > >> I would like to turn on the DEBUG level to get all the API messages. I >> > do NOT mean command line switches for utilities like snmpwalk. > > > > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. If you have received this email in error please notify the > system manager. This message contains confidential information and is > intended only for the individual named. If you are not the named > addressee you should not disseminate, distribute or copy this e-mail. > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users