Hitachi

JP1 Version 12 JP1/Network Node Manager i Setup Guide


21.20.1 Enabling the auto-trim oldest incidents feature (no incident archive)

If the number of incidents (including all types of incidents except SNMP traps and including syslog messages) in the database exceeds 50,000, perform the following procedure to use the automatic trim function for incidents to delete 10,000 incidents. Incidents are deleted in order starting from the oldest incident. Note that this procedure does not create an archive for incidents.

  1. Edit the following file:

    • Windows: %NNM_PROPS%\nms-jboss.properties

    • Linux: $NNM_PROPS/nms-jboss.properties

  2. Look for the following line:

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

    com.hp.nnm.events.snmpTrapAutoTrimStartPercentage=50
  4. Look for the following line:

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

    com.hp.nnm.events.snmpTrapAutoTrimPercentageToDelete=20
  6. Look for the following line:

    #!com.hp.nnm.events.snmpTrapAutoTrimSetting=Disabled
  7. Uncomment and edit this line to read as follows:
    com.hp.nnm.events.snmpTrapAutoTrimSetting=TrimOnly
    If an archive is necessary, specify TrimAndArchive.
  8. Find the row that includes the following character string.

    com.hp.nnm.events.allowAutoTrimAllIncidents
  9. Delete the comment symbol, and make the following correction.

    com.hp.nnm.events.allowAutoTrimAllIncidents=true
  10. Save your changes.

  11. Restart NNMi by running the following commands:

    ovstop
    ovstart

The default value of com.hp.nnm.events.snmpTrapMaxStoreLimit (which sets the upper limit on the number of incidents) is 100,000. In this case, if the number of incidents in the database exceeds 50,000 (50% of the upper limit), 10,000 incidents are deleted in order, started from the oldest incident, and based on the following formula.

(com.hp.nnm.events.snmpTrapAutoTrimStartPercentage / 100) X com.hp.nnm.events.snmpTrapMaxStoreLimit X (com.hp.nnm.events.snmpTrapAutoTrimPercentageToDelete / 100)
* "X" means multiplication.