This appendix includes the following topics:
About importing and exporting customized reports
The following section describes how to export a customized report from one Precise system and import it to another Precise system.
Before you begin, find the source Tier ID and the destination Tier ID in the PS_INAP_APP_TIER or PS_FSEC_ENV_CONTENTS tables.
To export/import a customized report
In the source Precise system, create the ForesightExportRequest.xml file in the Precise root folder. For example:
<root name="Export">
<report-name>In Sybase Breakdown</report-name>
<apptier>1201</apptier>
</root>The report-name value is case-sensitive.
- Run the following command:
infra\bin\psin_http_requestor -dp -x fs-export-import FS < ForesightExportRequest.xml > out.xml
- Check the out.xml file in the
<precise_root>
directory to view the status. - Copy the exported report .zip file from the source Precise root directory to the destination Precise installation in:
<i3_root>\distribution
The .zip file name consists of
<technology code>_<report name> (SY_In Sybase Breakdown.zip)
. For cross-Tiers the Tech code isALL (ALL_CA_Rep.zip)
. - In the destination Precise system, create the ForesightImportRequest.xml file in the Precise root directory. For example:
<root name="Import">
<report-name>SY_In Sybase Breakdown.zip</report-name>
<apptier<1174</apptier>
</root> - Run the following command:
infra\bin\psin_http_requestor -dp
x fs
- Check the out.xml file in the Precise root folder to view the status.
About copying customized reports
The following section describes how to copy customized reports from one Tier to another with the CLI utility.
To copy a customized report
- Run the following commands from the Precise root folder:
- Windows
<i3_root>\infra\bin\psin_cli.bat -i3-user <user> {-i3-clear-password <i3 clear password> | -i3-encrypted-password <i3 encrypted password>}
-action fs-copy-foresight-custom-report-parametersfile <parameters-file.xml>
- UNIX
./infra/bin/psin_cli.sh -i3-user <user> {-i3-clear-password <i3 clear password> |
-i3-encrypted-password <i3 encrypted password>}
-action fs-copy-foresight-custom-report
-parametersfile <parameters-file.xml>
- Example:
<i3_root>\infra\bin\psin_cli.bat -i3-user admin -i3-clear-password admin
-action fs-copy-foresight-custom-report -parametersfile my_parameters_file.xml
- Windows
Create the parameters-file.xml file in the Precise root folder and make sure it contains the following:
<parameters>
<parameter name="source-environment" value="Default"/>
<parameter name="source-apptier" value="SQL Server"/>
<parameter name="source-report" value="My_report"/>
<parameter name="destination-environment" value="Default"/>
<parameter name="destination-apptier" value="SQL Server"/>
</parameters>
and make sure to apply the information in the following notes.The parameter values are case-sensitive.
The "source-report" name must not contain blanks.
The new report name will have a suffix with a serial number (for example: "My_report_1").
To copy a Cross-Tier report, use the "Cross-AppTier" string for both the "source-apptier" and "destination-apptier" parameters.