Enterprise Administration > File Vaulting and Replication > FvLoader and ReplicaLoader > Listing Domains
  
Listing Domains
To list containers and domains, you can append several command line arguments to the command java.wt.fv.FvLoader. The arguments can be invoked by entering the following syntax at the command prompt:
java wt.fv.FvLoader -argument [options]
Listing containers or domains requires two invocations of FvLoader, which are described in the next two sections.
The -listContainers Argument Obtains Data
The first FvLoader invocation produces output that includes the container and domain information. Use the argument -listContainers to print a list of external container paths to the console. The output can be redirected to a file using piping. The output can be used only as input for the -listDomains argument, which is explained after the following example.
Example:
C:\> java wt.fv.FvLoader - listContainers
/
/wt.inf.container.OrgContainer=PTC
C:\>
Piping Example:
C:\> java wt.fv.FvLoader - listContainers | tee c:\temp\cont.txt
The -listDomains Argument Presents Data
Use the argument -listDomains to accept the output of -listContainers to list domains and format the list. Two formatting options allow you to specify the list. The argument has the following syntax:
-listDomains <containerPath> includeDescendentContainers
This invocation of FvLoader prints a list of domain paths to the console. The output may be redirected to a file using piping. The two arguments, explained below, are optional. If none are specified, the command prints all domains in the system.
containerPath—If specified, only the domains which reside in a specified container print to the console. If the argument contains spaces, place double quotation marks around it. You type the path to complete the specification.
includeDescendentContainers—If the argument is specified, the domains residing in the descendent containers of the containerPath are printed as well.
For example, the command would take the following form if you want to include domains residing in the descendent containers and use the container path /wt.inf.container.OrgContainer=PTC:
java wt.fv.FvLoader - listDomains
/wt.inf.container.OrgContainer=PTC includeDescendentContainers
Examples with output:
C:\> java wt.fv.FvLoader - listDomains /wt.inf.container.OrgContainer=PTC
[/wt.inf.container.OrgContainer=PTC]/PTC
[/wt.inf.container.OrgContainer=PTC]/Default/Project
[/wt.inf.container.OrgContainer=PTC]/Default/Project/
Administration
C:\>
C:\> java wt.fv.FvLoader - listDomains "/wt.inf.container.OrgContainer=PTC/
wt.inf.library.WTLibrary=Windchill PDM"
[/wt.inf.container.OrgContainer=PTC/wt.inf.library.WTLibrary=Windchill PDM]/
ChangeItems
C:\>
C:\> java wt.fv.FvLoader - listDomains /wt.inf.container.OrgContainer=PTC
includeDescendentContainers
[/wt.inf.container.OrgContainer=PTC]/PTC
[/wt.inf.container.OrgContainer=PTC]/Default/Project
[/wt.inf.container.OrgContainer=PTC]/Default/Project/
Administration
[/wt.inf.container.OrgContainer=PTC/wt.inf.library.WTLibrary=Windchill PDM]/
ChangeItems
C:\>