RE: SNMP logging
"Bruce Shaw" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <A8E35CF33CF6584A8497CB2E7521385B02D3952B@EDM-GOA-EXCC-5A.goa.ds.gov.ab.ca> |
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