usepolicy

Directs the metadata server to make an existing policy the active policy and applies its rules to all subsequent file creations.

Read syntax diagramSkip visual syntax diagram
>>-usepolicy--+--------+--+---------+--+-policy_name-+---------><
              +- -?----+  '- -quiet-'  '- - ---------'
              +- -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.
–quiet
Turns off confirmation messages for this command.
policy_name
Specifies the name of the policy to activate.
Specifies that in single-shot command mode you want this command to receive from the input stream (stdin) the name of the policy to activate.

Prerequisites

You must have Administrator privileges to use the command.

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

Example

Activate a policy The following example activates the policy test_policy:
sfscli> usepolicy  test_policy
Are you sure want to use this policy?  New files 
should be allocated to a pool that is accessible to the 
clients where the file is needed. [Y/N] Y
Policy test_policy is now the active policy.

Parent topic: Administrative commands

Related tasks
Activating a policy

Related reference
catpolicy
lspolicy
mkpolicy
rmpolicy
statpolicy

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