Configuring Data Purging

Data collected by the Operations Agent is stored for 172800 seconds (two days) by default. To configure data purging from the command line, follow the steps:

  1. Log on to the Operations Agent node.
  2. Run the command to set the time interval to purge data:

    AutoPurgeIntervalSecs defines the schedule at which the purge task would get triggered. By default, the purge task is started at 6 AM.

    On Windows x64 system:

    %ovinstalldir%bin\win64\ovconfchg -ns oacore -set AutoPurgeIntervalSecs <interval>

    In this instance, <interval> specifies the duration after which data is removed from the metrics data store. <interval> is always specified in seconds.

    On Windows x86 system:

    %ovinstalldir%bin\win32\ovconfchg -ns oacore -set AutoPurgeIntervalSecs <interval>

    On AIX:

    /usr/lpp/OV/bin/ovconfchg -ns oacore -set AutoPurgeIntervalSecs <interval>

    On UNIX/Linux/Solaris/HP-UX:

    /opt/OV/bin/ovconfchg -ns oacore -set AutoPurgeIntervalSecs <interval>

  3. Run the following command to set the data retention period:

    On Windows x64 system:

    %ovinstalldir%bin\win64\ovconfchg -ns oacore -set KeepDataForSecs <retention_period>

    In this instance, <retention_period> specifies the duration to store data in the metrics data store. <retention_period> is specified in seconds.

    On Windows x86 system:

    %ovinstalldir%bin\win32\ovconfchg -ns oacore -set KeepDataForSecs <retention_period>

    On AIX:

    /usr/lpp/OV/bin/ovconfchg -ns oacore -set KeepDataForSecs <retention_period>

    On UNIX/Linux/Solaris/HP-UX:

    /opt/OV/bin/ovconfchg -ns oacore -set KeepDataForSecs <retention_period>

  4. Run the following command to start agent processes:

    On Windows x64 system:

    %ovinstalldir%bin\win64\ovc -start oacore

    On Windows x86 system:

    %ovinstalldir%bin\win32\ovc -start oacore

    On AIX:

    /usr/lpp/OV/bin/ovc -start oacore

    On UNIX/Linux/Solaris/HP-UX:

    /opt/OV/bin/ovc -start oacore

  5. To see the set data retention period and data purging interval, run the following command:

    ovconfget oacore