Administer > Administer SNMP Traps > Configuring the Auto-Trim Oldest SNMP Trap Incidents Feature > Enabling the Auto-Trim Oldest SNMP Trap Incidents Feature (Incident Archive Enabled)

Enabling the Auto-Trim Oldest SNMP Trap Incidents Feature (Incident Archive Enabled)

Suppose you want to enable the auto-trim oldest SNMP trap incidents feature to trim 60,000 SNMP trap incidents (including syslog messages) after the number of SNMP trap incidents in the NNMi database exceeds 80,000. For this example, you want NNMi to archive the SNMP trap incidents before trimming them. Complete the following steps:

  1. Edit the following file:

    • Windows: %NNM_PROPS\nms-jboss.properties
    • Linux: $NNM_PROPS/nms-jboss.properties
  2. Locate the text block containing the following line:

    #!com.hp.nnm.events.snmpTrapAutoTrimStartPercentage=50
  3. Uncomment and edit the line to read as follows:

    com.hp.nnm.events.snmpTrapAutoTrimStartPercentage=80
  4. Locate the text block containing the following line:

    #!com.hp.nnm.events.snmpTrapAutoTrimPercentageToDelete=25
  5. Uncomment and edit the line to read as follows:

    com.hp.nnm.events.snmpTrapAutoTrimPercentageToDelete=75
  6. Locate the text block containing the following line:

    #!com.hp.nnm.events.snmpTrapAutoTrimSetting=Disabled
  7. Edit the line to read as follows:

    com.hp.nnm.events.snmpTrapAutoTrimSetting=TrimAndArchive
  8. Restart NNMi:

    1. Run the ovstop command on the NNMi management server.
    2. Run the ovstart command on the NNMi management server.

The default value of com.hp.nnm.events.snmpTrapMaxStoreLimit is 100,000. With this configuration, after NNMi stores 80,000 SNMP trap incidents (including syslog messages) from the NNMi database, it archives, then trims 60,000 SNMP trap incidents from the NNMi database using the following formula:

com.hp.nnm.events.snmpTrapAutoTrimStartPercentage X
com.hp.nnm.events.snmpTrapMaxStoreLimit X
com.hp.nnm.events.snmpTrapAutoTrimPercentageToDelete

Tip See the nnmtrimincidents.ovpl reference page, or the Linux manpage, for information about the trap incidents archive file, including how to customize the default archive file path