1 Introduction
This document describes how to configure a file group preventive maintenance policy, which automatically deletes files in the logical file system. Automatic file deletion is used to avoid storage issues in the Managed Element (ME) and is applied to files that are no longer of interest for the user.
The following two automatic file deletion policy aspects can be configured:
- Automatic deletion, where files are automatically deleted when a limit is exceeded. Files are deleted when the number of files in a file group subtree, or a size of a file group subtree exceeds a limit.
- Automatic deletion, where each file in a file group subtree is kept a maximum, specified time.
The procedure in this document focuses on the latter case.
Carefully read the following information before proceeding.
File group preventive maintenance policies must not be configured for the predefined file groups PerformanceManagementReportFiles, AlarmLogs, and AlertLogs. These file groups are subject to internal preventive maintenance policies.
It is recommended not to configure more than one FileGroupPolicy Managed Object (MO) per file group subtree, to keep the configuration simple.
1.1 Prerequisites
This section describes the prerequisites, which must be fulfilled before using the procedure.
1.1.1 Conditions
The following conditions must apply:
- The user has appropriate access rights to the FileGroup MO, matching the visible directories that have been set according to the security rules described in Section 6 in File Management.
- A file group exists.
The file group is called Function1Files in this document.
- The retention time to set is known.
- An Ericsson Command-Line Interface (ECLI) session in Exec mode is in progress.
2 Procedure
To configure a file group preventive maintenance policy in the logical file system:
- Navigate to the FileM MO, for example:
>dn ManagedElement=NODE06ST,SystemFunctions=1,FileM=1
- Enter Config mode:
(FileM=1)>config
- Create the FileGroupPolicy MO, for example:
(config-FileM=1)>FileGroupPolicy=3daysRetention
- Associate the policy to the chosen file group:
(config-FileGroupPolicy=3daysRetention)>fileGroup="ManagedElement=NODE06ST,SystemFunctions=1,FileM=1,LogicalFs=1,FileGroup=Function1Files"
- Define the attribute values of the new MO, for example:
(config-FileGroupPolicy=3daysRetention)>retentionTime=4320
This example value means that files older than 3 days (4320 minutes) in the file group are deleted automatically. Attribute fullFileGroupAction is left at the default value (that is, DISCARD_OLDEST).
- Commit the definition:
(config-FileGroupPolicy=3daysRetention)>commit
- Verify that the new file group policy exists and the attribute
values are correct, for example:
(FileGroupPolicy=3daysRetention)>show -v
The following is an example output:
FileGroupPolicy=3daysRetention fileGroup="ManagedElement=NODE06ST,SystemFunctions=1,FileM=1,⇒ LogicalFs=1,FileGroup=Functions1Files" fileGroupPolicyId=3daysRetention fullFileGroupAction=DISCARD_OLDEST <default> maxFileGroupSize=0 <default> maxNumberFiles=0 <default> retentionTime=4320 userLabel=[] <empty>

Contents