Running Report on Data on the Target Administrator Server

Sometimes, just running the report on the local data file is not enough. You might also want to know about all data available in the data file. For example, how many of them already exist on the target ActiveMatrix Administrator?

You might also want to run the report after the import. For example, after the import, you might want to run the report to see whether the number of objects in the local data file and the server are the same. That is, everything in the data file is imported. You can also run the report after running the clean target. Now, all the data on the target ActiveMatrix Administrator should be 0 denoting nothing that exists in local data file is there on server.

To do this, run the report with an additional target datafileReport.wServer.

As you can see in the following report, the data count on the local data file and the server matches. The server checks whether the given object of the same name and same type exists or not. For example, it checks whether node named node7 exists under Environment DevEnvironment. If it does, the count of nodes on the server goes up by 1.

>ant -f Environments\DevEnvironment\env_build.xml datafileReport.wServer runDataFileReport
Buildfile: <full_path_of>\Environments\DevEnvironment\env_build.xml

[propertyfile] Updating property file: <full_path_to>\import.summary.log

datafileReport.wServer:

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:32:22  INFO - Total data files processing: 5
[ImportDataFileReport] 02 Nov 2014 00:32:23  INFO - Initializing JSSE's crypto provider class com.sun.net.ssl.internal.ssl.Provider in default mode
[ImportDataFileReport] 02 Nov 2014 00:32:23  INFO - Connecting to AMX Admin server at 'http://localhost:8120' as user 'root'.
[ImportDataFileReport] 02 Nov 2014 00:32:25  INFO - Report also includes objects found on Server [http://localhost:8120]
[ImportDataFileReport] 02 Nov 2014 00:32:25  INFO -  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ImportDataFileReport] 02 Nov 2014 00:32:25  INFO - Object types found :In Data file     :On Server
[ImportDataFileReport] 02 Nov 2014 00:32:25  INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ImportDataFileReport] 02 Nov 2014 00:32:25  INFO - AMX environments :1 : 1
[ImportDataFileReport] 02 Nov 2014 00:32:25  INFO - AMX Nodes : 1 : 1
[ImportDataFileReport] 02 Nov 2014 00:32:25  INFO - SOA Applications : 3 : 3
[ImportDataFileReport] 02 Nov 2014 00:32:25  INFO -  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

BUILD SUCCESSFUL
Total time: 5 seconds

Another way to get object names from both the data file and the ActiveMatrix Administrator server is to run the report as follows:

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

The output of the above command has counts of each objects found on the data file versus the ActiveMatrix Administrator server. In addition, it also has object names found in both places. Both the objects must match and only then the same number is shown for both the data file and the server.