catpolicy

Displays the rules of the specified policies.

Read syntax diagramSkip visual syntax diagram
                              .-------------.
                              V             |
>>-catpolicy--+----------+--+---policy_name-+-+----------------><
              +- –?----+  '- – -----------'
              +- –h----+
              '- –help-'

Parameters

–? | –h | –help
Displays a detailed description of this command, including syntax, parameter descriptions, and examples. If you specify a help option, all other command options are ignored.
policy_name
Specifies the names of one or more policies to display.
Specifies that you want to read the names of one or more policies to display from stdin (for example, – << /work/policies_list.txt).

Prerequisites

You must be logged in to the operating system on the engine hosting the master metadata server to run this command.

Example

Display the rules in a policy The following example displays the rules for the DEFAULT and the ActivePolicy policies
sfscli> catpolicy  DEFAULT_POLICY activePolicy
DEFAULT_POLICY:
   VERSION 1
/* Default Policy Set
	Assign all files to default storage pool.
  When no rule applies to a file, default storage pool is assigned.
*/
activePolicy:
VERSION 1 /* Do not remove or change this line!*/
   rule 'stgRule1' set stgpool 'pool1' for FILESET ('cnt_A')
   rule 'stgRule2' set stgpool 'pool2' where NAME like '%.doc'
   rule 'stgRule3' set stgpool 'pool3' where DAYOFWEEK(CREATION_DATE) == 1
   rule 'stgRule4' set stgpool 'pool4' where USER_ID <= 100

Parent topic: Administrative commands

Related reference
lspolicy
mkpolicy
rmpolicy
statpolicy
usepolicy

Terms of use | Feedback
(C) Copyright IBM Corporation 2003, 2004. All Rights Reserved.