Purging Chart Data

Use a command line to purge the data stored with charts. You can purge all chart data, or you can specify a number of days of data you want to retain.

NOTE:  Before running the purge command, HelpSystems recommends that you back up the Intermapper Settings folder (especially the Chart Data folder.)

To purge chart data:

  1. Stop the Intermapper server.
  2. Execute the purge command.
  3. Start the Intermapper server.

Stopping and starting the Intermapper Server varies depending on your platform.

Purge Command Syntax

For Linux and OS X, the command includes the location of the Intermapper daemon configuration file. Here's the syntax those platforms (see note below):

/usr/local/bin/intermapperd -f /usr/local/etc/intermapperd.conf --chart-purge [# of days]

For Windows, use this syntax (see note below):

"C:\Program Files\InterMapper\InterMapper.exe" --chart-purge [# of days]

The most recent #of days of chart data is retained; the rest is purged.

NOTE: Both of the commands above require administrative privileges.
  • For Windows, open the cmd window using Windows menu > Windows System > Command Prompt > Misc > Run as Administrator, or similar, depending on your operating system and how you access the cmd window.
  • For Linux or OS X, the command should either be prefaced with sudo, or specified to be run as root.

Purging all Chart Data

To purge all chart data, use a # of days value of 0.

Purge Notes

  • Server must not be running - The Intermapper Server must not be running when you execute the command.
  • Enabled maps only - Only charts from devices on enabled maps are purged.
  • Administrative rights and write-access - You must have administrative rights, and write-access to the Intermapper Settings folder.
  • For Windows, open the cmd window using Windows menu > Windows System > Command Prompt > Misc > Run as Administrator, or similar, depending on your operating system and how you access the cmd window.
  • For Linux or OS X, the command should either be prefaced with sudo, or specified to be run as root.
  • If you have a large number of datasets with a substantial amount of accumulated data, the purge could take several hours to complete.