Hello coders,
Is the option 'logging' works in snmpd.conf in net-snmp?
I got the following results from net for snmpd.conf for logging. My requirement is to limit the size of snmpd.log
--------------------------------------------------------------------------------------
logging FileName Enablement
logging size=Limit level=DebugLevel
The following definitions apply to the fields in the logging entries:
FileName: Specifies the complete path and file name of the log file.
Limit: Specifies the maximum size in bytes of the specified log file. If the limit is specified as 0, the file size is unlimited.
DebugLevel: Specifies the level of logging, which can be one of the following:
0 All NOTICES, EXCEPTIONS, and FATAL messages
1 Level 0 plus DEBUG messages
2 Level 1 plus a hexadecimal dump of incoming and outgoing packets
3 Level 2 plus an English version of the request and response packets
Enablement Specifies whether logging is active. The following options are available:
enabled Turns logging on.
disabled Turns logging off.
Eg: snmpd.conf
logging file=/var/log/snmpd.log enabled
logging size=500 level=1
--------------------------------------------------------------------------------------------
Very greatful for reply, If you have used options for logging.
Rgds
Mahesh
Title: snmpd.conf + logging option
- snmpd.conf + logging option kanakamahesh.anasuri
- Re: snmpd.conf + logging option Dave Shield