perl mergeHosts.pl testResults [databaseFile] [tag[=<value>]
MergeHosts.pl is a tool which reads the statProxy test result format from testResults and merges that information into the databaseFile (usually a user configuration xml file). If databaseFile is not present, the data is merged into the hosts.xml database. Existing hosts in the data file are updated, new hosts are added, some hosts may be disabled. Specifying databaseFile allows users to add their own proxy test results to their own configuration files (so there's no need to reenter this data after each update of hosts.xml/zip, or each update of the distribution config files). This mechanism also permits users to keep their proxies confidential.
The tag allows the user to add a new tag to every host merged into the destination database. This is mainly for use by the maintainer of the hosts.xml database, and for users who wish to disable many of the hosts.xml proxies via their user configuration (using 'isEnabled=0').
perl mergeHosts.pl sp.out config-me.xml
perl statProxy.pl -t all -l secret.txt | perl mergeHosts.pl -
config-me.xml