RE: Adding timestamp in snmpd.log

Krishna Vivek Vitta <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thank you Anders for swift response.

"[snmp] logTimestamp 1"

What does [snmp] indicate in above line ? Is it compulsory ?

Our application frequently alters the contents of snmpd.conf in including trap destintions and managers. This may lead the entry “logTimestamp 1” being missed out in snmpd.conf.

Can timestamp be logged automatically without including the above option in snmpd.conf ?

Is there option as part of execution in snmpd or is there any change that can be included in source code ?



Thank you
Krishna Vivek

From: Anders Wallin <[email protected]>
Sent: 29 November 2019 20:34
To: Krishna Vivek Vitta <[email protected]>
Cc: [email protected]
Subject: Re: Adding timestamp in snmpd.log

add
"[snmp] logTimestamp 1"
 in snmpd.conf

Regards
Anders Wallin


On Fri, Nov 29, 2019 at 3:57 PM Krishna Vivek Vitta <[email protected]<mailto:[email protected]>> wrote:
Hi team,

We have a snmpd agent running in a Freebsd box.

The following command is being used to run snmpd:

“Snmpd -c snmpd.conf -Lf snmpd.log -p snmpd.pid”

Is there any option to add timestamp being logged for every trace in snmpd.log ? Kindly assist


Thank you
Krishna Vivek

_______________________________________________
Net-snmp-users mailing list
[email protected]<mailto:[email protected]>
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.