8.3.3 Configuring trap logs
NNMi can record all incoming SNMP traps in a log file (text or CSV file). The traps are recorded at the following location:
Windows: %NnmDataDir%log\nnm
Linux: $NnmDataDir/log/nnm
Use the nnmtrapconfig.ovpl script to configure the trap log file. You can select the following formats:
CSV (default): Traps are recorded in CSV format (trap.csv).
LOG: Traps are recorded in text format (trap.log).
BOTH: Traps are recorded in both CSV and text formats (two log files).
OFF: Traps are not recorded.
For example, to record traps in the BOTH mode, use the following command:
nnmtrapconfig.ovpl -setProp trapLoggingMode BOTH -persist
When the -persist argument is used, all trap server properties remain enabled, even after the trap service has been restarted. When the -persist argument is not used, all trap server properties are enabled only until the service is stopped.
Traps are written to a rolling log file. When the log file reaches the defined maximum size (defined by the nnmtrapconfig.ovpl script), the file is renamed to trap.format.old, and a new file replaces the existing file.
For details, see the nnmtrapconfig.ovpl Reference Page. Also see Configure Trap Logging in NNMi Help.