Re: Adding timestamp in snmpd.log

2020-03-20 Thread Anders Wallin
It's explained in the manual, see https://linux.die.net/man/1/snmpcmd Anders Wallin On Fri, Mar 20, 2020 at 8:03 AM Krishna Vivek Vitta < krishna.vivekvi...@citrix.com> wrote: > Hi Anders > > > > Is there a mechanism to enable/control log level ? What are the options > that I need to include in

RE: Adding timestamp in snmpd.log

2020-03-20 Thread Krishna Vivek Vitta
Hi Anders Is there a mechanism to enable/control log level ? What are the options that I need to include in snmpd.conf ? I assume, the logging level is debug(default) which prints all messages Thank you Krishna Vivek From: Anders Wallin Sent: 02 December 2019 16:22 To: Krishna Vivek Vitta Cc

Re: Adding timestamp in snmpd.log

2020-03-20 Thread dga via Net-snmp-users
Hi, I use following method: Once snmpd is started, I launch following cmmand: snmpd -f -DnstAgentSubagentObject -Lf /tmp/snmp.log Then you can see debug traces in /tmp/snmp.log Bellow example of syntax to create a trace in the log file: snmp_log(LOG_ERR, "Example of debug trace !\n"); Rega