Install ServiceAnalytics Deploying Crystal Reports Server (CRS) Version
The ServiceManager release bundle is supplemented by the ServiceAnalytics CRS version module disk image. For the CRS version, the MSI installer is serviceanalytics_CRS.msi, the ZIP installation bundle is serviceanalytics-CRS-release.zip.
Installers and Licensing
For this version of ServiceAnalytics it will also be necessary to separately install and license Crystal Reports ServerTM.
You are expected to have knowledge of Crystal Reports Server Administration in order to integrate ServiceAnalytics.
Integrating to CRS
The following steps are required to configure ServiceAnalytics to work with a Crystal Report Server (CRS). The items in italics are examples
Publish the ServiceAnalytics reports on the Crystal Report Server
Copy the ServiceAnalytics reports onto the Report Server.
- Create a new user or pick an existing user account to manage the reports. For example we could create a new user called ServiceAnalytics. N.B. Usually new accounts can only be created by the System Administrator. Subsequent operations must be performed by logging on as the account user who will be responsible for the reports.
- Create a folder on the CRS for this user, for example in the users Favorites folder create a unique folder, for example Analytics.
- Using the CRS Publishing Wizard applications publish all the ServiceAnalytics reports from
<install-dir>\<tomcat>\webapps\SERVICEManager\coreReports\reports
to the folder created above.
If you have any Custom Reports, you will also need to install these. Using the same user as above, the following further steps are required
1. | Create a folder on CRS to hold the reports; the name of the folder will be the name of the custom reports menu, the folder description (if any) will appear as a message on the status bar. | |||||||||||||||||||||||||||||||||||||||
2. | Each custom report will need to have its data source redefined; some experience of Crystal Report Developer would be advantageous. The following example assumes changing to a JDBC data source.
| |||||||||||||||||||||||||||||||||||||||
3. | Load the reports using the CRS Publishing Wizard. You can create sub folders to store reports and these will be shown as sub menu items. | |||||||||||||||||||||||||||||||||||||||
4. | Any report which use Dynamic Cascading parameters needs further details updating prior to been available for running.
|
Make ServiceAnalytics libraries available to Crystal Reports Server
For the reports to run the Crystal Reports Server needs to access various .jar files belonging to the ServiceAnalytics product. The location of these files needs to be defined in the CRConfig.xml
file belonging to the Crystal Reports Server.
Assuming that ServiceManager is installed on the same server, the following changes are required:
<DataDriverCommon> <Classpath> <inst-dir>\webapps\SERVICEManager\WEB-INF\classes; <inst-dir>\common\lib\jtds-1.2.jar; <inst-dir>\common\lib\ojdbc14.jar; <inst-dir>\common\lib\orai18n.jar; <inst-dir>\webapps\SERVICEManager\WEB-INF\lib\sp-common.jar; <inst-dir>\webapps\SERVICEManager\WEB-INF\lib\sp-util.jar; <inst-dir>\webapps\SERVICEManager\WEB-INF\lib\sp-logging.jar; <inst-dir>\webapps\SERVICEManager\WEB-INF\lib\hibernate3.jar; <inst-dir>\webapps\SERVICEManager\WEB-INF\lib\dom4j-1.6.1.jar; ... ${CLASSPATH} </Classpath> ... </DataDriverCommon>
The CRConfig.xml
file must be further updated to specify the location of the Crystal Report Java Bean
<JavaBeans> <JavaBeansClassPath> <inst-dir>\webapps\SERVICEManager\WEB-INF\lib\sp-reports.jar </JavaBeansClassPath> </JavaBeans>
where <inst-dir> refers to the ServiceAnalytics installation directory, for example: C:\Program Files\SERVICEPower\SERVICEManager\Tomcat
These values can be adjusted according to the location of the CRS and ServiceManager. If CRS is installed on another server from ServiceManager then the .jar files above will need to be copied to the CRS server machine and located and referenced in the CRS CRConfig.xml
Database connectivity
When using Crystal Reports Server, the ServiceScheduling database(s) that CRS connects to in order to retrieve data for the reports must be specified in an additional properties file called sp_reports.properties
. This file must be created by the user as defined below and the directory in which it is located must be added to the CLASSPATH defined in the CRConfig.xml
file.
#example #<prefix>.DriverClass=<database driver class> #<prefix>.DatabaseURL=<database URL> #<prefix>.UserName=<username> #<prefix>.Password=<password> # sqlServer connection details JTDS database1.DriverClass=net.sourceforge.jtds.jdbc.Driver database1.DatabaseURL=jdbc:jtds:sqlserver://host1:1433;databaseName=SqlDatabase database1.UserName=user1 database1.Password=user1 # ORACLE connection details database2.DriverClass=oracle.jdbc.driver.OracleDriver database2.DatabaseURL=jdbc:oracle:thin:@host2:1521:sid database2.UserName=user2 database2.Password=user2 servicemanager.log4j.config.file=<location of logging.properties file>
The prefix (e.g. database1
, datebase2
etc) must be defined in the service_manager.properties as follows:
core.reports.connectivity=<prefix>