|Summary: this page describes the CAST Report Generator Corefor Dashboards release.|
CAST Report Generator is now provided as an cross-platform ZIP file alongside the traditional Microsoft Windows GUI "installable" release. In other words this release can run on both Microsoft Windows and Linux operating systems and can be simply unzipped to the install location (no installer is provided). The primary goal of this release is to provide reporting capabilities to the CAST RestAPI - this integration is first and foremost used by the CAST dashboards to generate reports from within the dashboard interface (see CAST Dashboard Package - Report Generation configuration and Security Dashboard - Report Generation).
Where can I obtain the CAST Report Generator
You can obtain the CAST Report Generator Core for Dashboards from the CAST Product Center - this requires a CAST login. Download the latest release, unpack the ZIP, and you will find another ZIP called ReportGeneratorCLIforAllOS.zip alongside the traditional GUI based ReportGeneratorSetup.exe:
Extract the ZIP called ReportGeneratorCLIforAllOS.zip and deploy the files as described below in Installation process.
- No PDF export capabilities.
- No GUI, CLI only.
To install and use the CAST Report Generator for Dashboards, the following is required:
.NET Core 2.2.x runtime
CAST Report Generator Core for Dashboards requires the .NET Core 2.2.x runtime. This is available for both Microsoft Windows and for Linux operating systems:
The runtime can be downloaded as an installer from https://dotnet.microsoft.com/download/dotnet-core/2.2 - choose the .NET Core Installer for the 2.2.x runtime that matches your Windows environment:
Package manager instructions are provided for many different Linux distributions at https://dotnet.microsoft.com/download/dotnet-core/2.2 - choose the Package Manager Instructions option here:
Then select the relevant Linux distribution to view the installation instructions:
Supported Operating Systems
CAST Report Generator Core for Dashboards only requires that .NET Core runtime is present on the operating system. Therefore any operating system that supports the installation of .NET Core can be used for the CAST Report Generator Corefor Dashboards. CAST has tested Microsoft Windows and CentOS (Linux).
Folder access permissions
The user that Apache Tomcat is running as must have read/write access to the following locations:
- folder into which the Report Generator Core for Dashboards is unzipped
- "Logs" sub-folder.
In Linux environments, typically the "rw-" permission is sufficient.
Installing CAST Report Generator Core for Dashboards consists only of unzipping the downloaded ReportGeneratorCLIforAllOS.zip file to a location on the target server, for example:
Restart Apache Tomcat
Apache Tomcat (if installed on the same server as Report Generator Corefor Dashboards) must be restarted so that the changes are taken into account.
Using CAST Report Generator
As mentioned previously, the primary goal of this release is to provide reporting capabilities to the CAST RestAPI - this integration is first and foremost used by the CAST dashboards to generate reports from within the dashboard interface (see CAST Dashboard Package - Report Generation configuration and Security Dashboard - Report Generation). However, it is also possible to use CAST Report Generator Core for Dashboards yourself via its CLI. The CLI instructions are identical to those provided for the standard CAST Report Generator GUI - see here for more instructions.
You must specify the CAST Report Generator Core for Dashboards in a specific way:
dotnet %path_to_CastReporting.Console.Core.dll% -webservice %webservice% -username %username% -password %password% -application %application% -domain %domain% -template %template% -file %file%
dotnet "D:\data\CAST\ReportGeneratorCore\CastReporting.Console.Core.dll" -webservice "http://<server>:<port>/CAST-RESTAPI/rest/" -username cio -password cast -application "Jurassic Park" -domain "AED" -template "Executive-summary.docx" -file "D:\temp\Core_Report.docx"
The CAST Report Generator Core for Dashboards saves a log of all interactions in the folder into the Logs folder (located in the folder in to which you have unzipped the CAST Report Generator Corefor Dashboards). One log file per day is generated:
For example ReportGenerator_20190328.log.
One of the following codes will be returned on completion of the CLI: