Running Report on Data Files

When you run export, the Export.report.txt file contains information about how many ActiveMatrix objects were exported. However, this information could become stale when you run import. For example, what if Environment folders were deleted or added to the existing exported data folder?

To get an up-to-date report, run the following ant target to get a report of what is actually there in given exported data folder. Again, just like any other target, you can run the target from the top-level build.xml or from any sub-level folder's *_build.xml.
>ant -f build.xml runDataFileReport
Buildfile: <full_path_of>\build.xml
[propertyfile] Updating property file: <full_path_of>\import.summary.log

common.runDataFileReport:
     [echo] Running data file report to detect number of AMX objects found in data_files under [<full_path_of_export_folder>][total **/*_data.xml found :17]
[ImportDataFileReport] 02 Nov 2014 00:05:45  INFO - Total data files processing: 17
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - Object types found                 :In Data file
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - AMX environments : 2
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - AMX Nodes : 2
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - SOA Applications : 3
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - Hosts : 4
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - DAAs : 4
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - Log Appenders : 3
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - Global Substitution Variables :2
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - Global Resource Templates   : 8
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - Top Level Permissions : 2
[ImportDataFileReport] 02 Nov 2014 00:05:46  INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

runDataFileReport:

BUILD SUCCESSFUL
Total time: 4 seconds
Another example running report for just one Environment:
>ant -f Environments\DevEnvironment\env_build.xml runDataFileReport
Buildfile: <full_path_of>\Environments\DevEnvironment\env_build.xml
[propertyfile] Updating property file: <full_path_of>\import.summary.log

runDataFileReport:
     [echo] Running data file report to detect number of AMX objects found in data_files under [<full_path_of>\Environments\DevEnvironment][total **/*_data.xml found :5]
[ImportDataFileReport] 02 Nov 2014 00:06:09  INFO - Total data files processing: 5
[ImportDataFileReport] 02 Nov 2014 00:06:09  INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ImportDataFileReport] 02 Nov 2014 00:06:09  INFO - Object types found :In Data file
[ImportDataFileReport] 02 Nov 2014 00:06:09  INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ImportDataFileReport] 02 Nov 2014 00:06:09  INFO - AMX environments : 1
[ImportDataFileReport] 02 Nov 2014 00:06:09  INFO - AMX Nodes : 1
[ImportDataFileReport] 02 Nov 2014 00:06:09  INFO - SOA Applications : 3
[ImportDataFileReport] 02 Nov 2014 00:06:09  INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BUILD SUCCESSFUL
Total time: 3 seconds

Now, what if besides the count, you also want a name of each object in the data file?

You can get it by by running the same report as above with one more optional target, datafileReport.wDetails.

As you can see here, the Details column has the ActiveMatrix object's name. If you have many objects, the output might not be easy to read on the console. Iin that case, you can view it in import.admin.cmdline.log.

>ant -f Environments\DevEnvironment\env_build.xml datafileReport.wDetails runDataFileReport

Buildfile: <Full_path_to>\Environments\DevEnvironment\env_build.xml
 [propertyfile] Updating property file: <Full_path_to>\import.summary.log

datafileReport.wDetails:

runDataFileReport:

[echo] Running data file report to detect number of AMX objects found in data_files under [<Full_path_to>\Environments\DevEnvironment][total **/*_data.xml found :5]
[ImportDataFileReport] 02 Nov 2014 00:19:29  INFO - Total data files processing: 5
[ImportDataFileReport] 02 Nov 2014 00:19:30  INFO -  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ImportDataFileReport] 02 Nov 2014 00:19:30  INFO - Object types found :In Data file   : Details

[ImportDataFileReport] 02 Nov 2014 00:19:30  INFO -  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ImportDataFileReport] 02 Nov 2014 00:19:30  INFO - AMX environments : 1 :[DevEnvironment]

[ImportDataFileReport] 02 Nov 2014 00:19:30  INFO - AMX Nodes : 1                  :[node7]

[ImportDataFileReport] 02 Nov 2014 00:19:30  INFO - SOA Applications                  : 3 :[MyApps1, MyUseCase.app, MyApp2]

[ImportDataFileReport] 02 Nov 2014 00:19:30  INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BUILD SUCCESSFUL
Total time: 3 seconds