This topic describes how to use a command line utility to export the XML configuration file that configures the server.
There are two versions of the XML export tool. One version is integrated with WebSphere® Sensor Events, and the other is a stand-alone version that can be used to export the configuration of another server, such as the configuration of a WebSphere Premises Server 6.1.0.1 server.
Both versions of the utility come installed in the IBM_RFID_HOME\premises\tools\xmlexport directory.
The XML that results from the integrated export tool is built by the target WebSphere Sensor Events server. This means that if you choose an output path of C:\test.xml or /root/test.xml, the XML file is generated on the target server. If you want to save the XML file to the host server, the one that is running the export script, be sure to specify a valid network path for the target server. This means that the target server must have the host server mapped or mounted in order for it to be able to write the resulting XML file back to that host server.
Also be sure that when you specify the output path for the XML file, the address should be in the correct format for the target WebSphere Sensor Events server. For example, if you run the script on a server with a Linux® operating system and the target server has a Windows® operating system, then the output path should be in a format like this: C:\\test.xml
The following parameters are defined for the integrated version of the utility:
The arguments must be passed in this order: target_hostname port xml_output_file log_output_file
This version of the export utility can be used from a WebSphere Premises Server 6.1.0.1 server or from a WebSphere Sensor Events server against a local or remote server. If the target server is a WebSphere Sensor Events server, use the integrated version of the utility.
You can edit the xmlexport6101 script if you are using non-default installation paths.
The following parameters are defined for the stand-alone version of the utility:
The arguments must be passed in the order: db_type db_name db_user db_password target_hostname xml_output_file log_output_file