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

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

Suppose you want to enable the auto-trim oldest SNMP trap incidents feature to trim 30,000 SNMP trap incidents (including syslog messages) after the number of SNMP trap incidents in the NNMi database exceeds 60,000. For this example, you do not 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=60
  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=50
  6. Locate the text block containing the following line:

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

    com.hp.nnm.events.snmpTrapAutoTrimSetting=TrimOnly
  8. Restart the NNMi management server:

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

When making file changes under High Availability (HA), you need to make the changes on both nodes in the cluster. For NNMi using HA configurations, if the change requires you to stop and restart the NNMi management server, you must put the nodes in maintenance mode before running the ovstop and ovstart commands.

The default value of com.hp.nnm.events.snmpTrapMaxStoreLimit is 100,000. With this configuration, after NNMi stores 60,000 SNMP trap incidents (including syslog messages) from the NNMi database, it trims 30,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