7.9.6 Specifying the types of history information to be deleted and the deletion timing
This subsection describes how to specify the types of history information to be deleted and the deletion timing.
- Organization of this subsection
(1) Specifying the types of history information to be deleted
On the Task tab, in Run, specify -s TARGET=(change-log-code-to-be-deleted) following the file name. You can specify multiple codes.
If nothing is specified, the task deletes only the change log for asset information.
Codes for the change log that can be deleted are as follows:
-
A
Asset information history. The corresponding class is AssetUpdateRecord.
-
M
Maintenance log. The corresponding class is Maintenance.
-
U
Device change log. The corresponding classes are UpdateRecord and InstalledUpdateRecord.
If you specify multiple codes, specify them consecutively, such as -s TARGET=AMU.
(2) Specifying the duration for retaining history information
On the Task tab, in Run, specify the value following the file name in the format shown below:
-
Change log and maintenance log for asset information
-s TARGET=A (or M) -s MONTH=(retention-period)
Specify the retention period in number of months (0 to 120). Specifying 0 deletes all change log information.
If nothing is specified, the task deletes all change log data that is at least six months old.
-
Device change log
-s TARGET=U -s UMONTH=(retention-period)
Specify the retention period in number of months (0 to 120). Specifying 0 deletes all change log information.
If nothing is specified, the task deletes all change log data.
- Specification example
-
This example shows the specification for deleting asset information logs and maintenance logs that are more than three months old.
"C:\jp1asset\exe\jamscript.exe"
-f "C:\jp1asset\scriptbatch\RemoveRecord.txt"
-s TARGET=AM -s MONTH=3
Here, C:\jp1asset refers to the Asset Console installation folder.