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 in single-shot command mode you want this command to receive from the input stream (stdin) the names of one or more policies to display.

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

Library | Support | Terms of use | Feedback
(C) Copyright IBM Corporation 2003, 2004. All Rights Reserved.
IBM TotalStorage SAN File System v2.2