The mmapplypolicy -L command

Use the -L flag of the mmapplypolicy command when you are using policy files to manage storage resources and the data stored on those resources. This command has different levels of diagnostics to help debug and interpret the actions of a policy file.

The -L flag, used in conjunction with the -I test flag, allows you to display the actions that would be performed by a policy file without actually applying it. This way, potential errors and misunderstandings can be detected and corrected without actually making these mistakes.

These are the trace levels for the mmapplypolicy -L flag:
Value
Description
0
Displays only serious errors.
1
Displays some information as the command runs, but not for each file.
2
Displays each chosen file and the scheduled action.
3
Displays the information for each of the preceding trace levels, plus each candidate file and the applicable rule.
4
Displays the information for each of the preceding trace levels, plus each explicitly excluded file, and the applicable rule.
5
Displays the information for each of the preceding trace levels, plus the attributes of candidate and excluded files.
6
Displays the information for each of the preceding trace levels, plus files that are not candidate files, and their attributes.
These terms are used:
candidate file
A file that matches a policy rule.
chosen file
A candidate file that has been scheduled for an action.
This policy file is used in the examples that follow:
/* Exclusion rule */
RULE 'exclude *.save files' EXCLUDE WHERE NAME LIKE '%.save'
/* Deletion rule */
RULE 'delete' DELETE FROM POOL 'sp1' WHERE NAME LIKE '%tmp%'
/* Migration rule */
RULE 'migration to system pool' MIGRATE FROM POOL 'sp1' TO POOL 'system' WHERE NAME LIKE '%file%'
/* Typo in rule : removed later */
RULE 'exclude 2' EXCULDE
/* List rule */
RULE EXTERNAL LIST 'tmpfiles' EXEC '/tmp/exec.list'
RULE 'all' LIST 'tmpfiles' where name like '%tmp%'
These are some of the files in file system /fs1:
.  ..  data1  file.tmp0  file.tmp1  file0  file1  file1.save  file2.save

For more information on the mmapplypolicy command , see mmapplypolicy command.