Hitachi

JP1 Version 12 JP1/Network Node Manager i Setup Guide


21.20.3 Rotate archive files

In default setting, there is not upper limit of the file size of the archive file created by the auto-trim feature. You can rotate the archive file in specific file size and save disk usage. Suppose you want to rotate the archive files 3 times when the size reaches 10MB. 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.autoTrimArchiveRotationEnabled=false
  3. Uncomment and edit the line to read as follows:

    com.hp.nnm.events.autoTrimArchiveRotationEnabled=true
  4. Locate the text block containing the following line:

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

    com.hp.nnm.events.autoTrimArchiveRotationArchiveSize=10
  6. Locate the text block containing the following line:

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

    com.hp.nnm.events.autoTrimArchiveRotationRotateNumber=3
  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.
    Important

    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.

With this settings, trimmed incidents are archived into the following file. Note that the file name doesn't contain the time stamp.

When the file size of the archive file reached the specified value in MB (10 in this example), the archive file is renamed to "incidentArchive.csv.gz.1". The new incidents are archived into the new incidentArchive.csv.gz. "incidentArchive.csv.gz.<n>" is renamed to "incidentArchive.csv.gz.<n+1>" by the rotation. If the value of "n" in the archive file name is the same as the specified value (3 in this example), the file is removed by the rotation, instead of being renamed.