Hitachi

JP1 Version 12 JP1/Network Node Manager i Setup Guide


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:

Use the nnmtrapconfig.ovpl script to configure the trap log file. You can select the following formats:

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.