Listing Rules
Use the following arguments to print a list of existing vaulting policy rules for a site to the console:
java wt.fv.FvLoader-listFvPolicyRules <site name>
This output can be redirected to a file using piping. You can use the output for batch deletion or recreation of policy rules through FvLoader.
Use the following arguments to print a list of replication rules for remote sites to the console:
java wt.dataops.replication.ReplicaLoader-listReplicationRules <site name>
See the prefixes R, RR, RemoveLocalR, and RemoveReplicaR in the preceding sections.
* 
Note that output and the input for the following prefixes is almost identical:
-listFvPolicyRules
-listReplicationRules
It is required that you specify the site name. If you specify the name of an existing site, only rules related to the file vaults on that site are printed to the console. To print the rules for all sites, specify the following constant argument:
ALL_SITES
For example, imagine that there are three sites in the system. There is a main site with the name main, a remote site with the name replica_11, and a remote site with the name replica_99. File vaults on the sites main and replica_11 have rules associated with them. File vaults on the site replica_99 do not have rules associated with them.
C:\> java wt.fv.FvLoader -listFvPolicyRules <main>
where
<main> = the site name
###Current Policy rules for site [main]
LocalPolicyRule,v1,wt.doc.WTDocument,[/wt.inf.container.OrgContainer=PTC]/ Default/
Project,ALL
LocalPolicyRule,v1,wt.part.WTPart,[/wt.inf.container.OrgContainer=PTC]/Default/
Project,ALL
C:\> java wt.dataops.replication.ReplicaLoader -listReplicationRules <replica_11>
where
<replica_11> = the site name
The output will be of the following form:
[Rule Name]==>RuleName
[TargetVault]==>replica vault 1, [ObjectType]==> Document,
[LifeCycleState]==>ACCEPTED, [Context}==>wt.pdmlink.PDMLinkProduct:
10196;ALL
C:\> java wt.dataops.replication.ReplicaLoader -listReplicationRules
replica99
The following command lists rules for all of the sites.
C:\> java wt.fv.FvLoader -listFvPolicyRules ALL_SITES
###Current Policy rules for site [main]
LocalPolicyRule,v1,wt.doc.WTDocument,[/wt.inf.container.OrgContainer=PTC]/ Default/
Project,ALL
LocalPolicyRule,v1,wt.part.WTPart,[/wt.inf.container.OrgContainer=PTC]/Default/
Project,ALL
###Current Policy rules for site [replica_11]
replica_vault_1,wt.doc.WTDocument,[/wt.inf.container.OrgContainer=PTC]/Default/
Project,ALL
replica_vault_1,wt.part.WTPart,[/wt.inf.container.OrgContainer=PTC]/Default/
Project,ALL
C:\>
In the output, each line has a LocalPolicyRule prefix, which specifies the type of the rule. This rule is used for external vaulting.
If you take any line of output and change the prefix to the appropriate prefix for rule creation or deletion, you get a command that is ready to be used in the FvLoader batch execution. Be careful not to mix the prefixes for rules used in external vaulting and content replication.
Original output:
LocalPolicyRule,v1,wt.part.WTPart,[/wt.inf.container.OrgContainer=PTC]/Default/
Project,ALL
Delete command for the same rule:
RemoveLocalR,v1,wt.part.WTPart,[/wt.inf.container.OrgContainer=PTC]/Default/
Project,ALL
Create command for the same rule:
R,v1,wt.part.WTPart,[/wt.inf.container.OrgContainer=PTC]/Default/Project,ALL
* 
Do not keep the CSV file in edit mode while executing FvLoader and ReplicaLoader commands.
* 
By default, the fvLoader.csv uses a comma separator (,). However, you can configure the separator using the following property: You can set any separator for this property, and then the same can be used in fvLoader.csv.
wt.fv.FvLoaderSeparator
Est-ce que cela a été utile ?