Lists the active and inactive policies.
>>-lspolicy--+----------+--+-------------------------------+----> +- –?----+ | .-default----------. | +- –h----+ '- –fmt--+-delim--character-+-' '- –help-' '-xml--------------' >--+----------------+--+------------------+---------------------> | .-off-. | | .-on--. | '- –p--+-on--+-' '- –hdr--+-off-+-' >--+---------------+--+----------------+--+-------+-------------> '- –r--number-' | .-off-. | +- –l-+ '- –v--+-on--+-' '- –s-' >--+-------------------------+--+-----------------+------------>< '- –state--+-active---+-' | .-------------. | '-inactive-' | V | | +---policy_name-+-+ '- – -----------'
Name State Last Active Modified ======================================================================== policy1 Active Jul 19, 2003 14:00:34 PM Jul 19, 2003 13:59:34 PM Description ================= Active policy
policy1,Active,Jul 19, 2003 14:00:34 PM,Jul 19, 2003 13:59:34 PM,Active policy
<IRETURNVALUE> <INSTANCE CLASSNAME="STC_PolicySet"> <PROPERTY NAME="Name" TYPE="string"><VALUE TYPE="string">policy1</VALUE> </PROPERTY> <PROPERTY NAME="State" TYPE="uint16"><VALUE TYPE="uint16">1</VALUE> </PROPERTY> <PROPERTY NAME="Description" TYPE="string"><VALUE TYPE="string"> Active policy</VALUE></PROPERTY> <PROPERTY NAME="LastModificationDate" TYPE="datetime"><VALUE TYPE="datetime">20030719135934-000000-420</VALUE></PROPERTY> <PROPERTY NAME="LastActiveDate" TYPE="datetime"><VALUE TYPE="datetime"> 20030719140034-000000-420</VALUE></PROPERTY> </INSTANCE> </IRETURNVALUE>
sfscli> lspolicy -l Name State Last Active Modified =========================================================================== policy1 Active Jul 19, 2003 14:00:34 PM Jul 19, 2003 13:59:34 PM testpolicy Inactive Mar 18, 2003 10:30:17 PM Mar 18, 2003 10:06:25 PM DEFAULT Inactive Jan 11, 2003 16:36:24 PM Jan 11, 2003 15:36:14 PM Description =================== Active policy Test policy Default Policy
$sfscli lspolicy –s –state active –hdr off | sfscli catpolicy – VERSION 1 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
catpolicy
mkpolicy
rmpolicy
statpolicy
usepolicy