EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB30060: How to use MicroStrategy Cube Advisor with MicroStrategy Intelligence Server Universal 9.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


This " How to" knowledge base article explains cube advisor.

What is Strategy Cube Advisor?
 
Strategy Cube Advisor is a tool introduced in Strategy 9.x to assist in the use of the Dynamic Sourcing functionality in Strategy OLAP Services 9.x. Dynamic Sourcing examines the structure of a report to see if any existing Intelligent Cube in the system can satisfy the reporting requirements; if so, the report will used previously collected Intelligent Cube data for faster performance.
 
To maximize the use of Intelligent Cubes for standard Strategy reports, Intelligent Cubes may be designed specifically for reports that are frequently executed. Strategy Cube Advisor examines a set of existing Strategy reports and recommends corresponding Intelligent Cube designs.
 
For more information on Dynamic Sourcing and Strategy Cube Advisor please refer to “Chapter 8. Dynamic Sourcing” in the Strategy 9 OLAP Services Guide product manual.
 
Note: Dynamic Sourcing cannot be used for all report or metric designs. Reports using features not compatible with Dynamic Sourcing will continue to use the project’s data warehouse as normal.
 
Cube Advisor Workflow for Strategy Intelligence Server Universal
 
When using Strategy Intelligence Server Universal environments, the Strategy Cube Advisor may be used in two different ways:

  • Interactive mode: Run the entire process using the Graphical User Interface (GUI) Cube Advisor on a Microsoft Windows 32-bit machine, connecting to Strategy Intelligence Server Universal as a client.
  • Commandline mode: Analyze reports using Strategy Cube Advisor from the command line on a Microsoft Windows 32- or 64-bit machine, and then load the results of the analysis into the interactive Cube Advisor on a Microsoft Windows 32-bit machine to create the Intelligent Cube prototypes.

In general, it is simpler to use the interactive version, which guides the user through the entire process (like a wizard). The command line approach is useful in the following situations:

  • Files on the Strategy Intelligence Server machine are not available to the client machine running the Cube Advisor in interactive mode. The Cube Advisor depends on a Metric Level log, which the Intelligence Server will create in its own log directory. The interactive Cube Advisor requires access to this file by UNC path: \\IntelligenceServerMachine\path\to\log\MetricLevels.log. If this access is not available due to security restrictions (or lack of a Samba configuration under UNIX/Linux), it may not be possible to use the Cube Advisor interactively.
  • The Metric Levels log file already exists. Cube Advisor in interactive mode does not allow for the use of previously collected Metric Level logging.
  • If the user desires manual control over the starting and ending timestamps to process in the Metric Levels log.

If the proper conditions are met – the Strategy Cube Advisor client machine can access files on the Strategy Intelligence Server machine, an existing Metric Levels log file will not be used, and it is acceptable to set the analysis timeframe automatically – then it should be possible to perform the full analysis using Strategy Cube Advisor interactively from a remote client machine.
 
The remainder of this document discusses the three steps required to analyze reports with Strategy Cube Advisor from the command line. 

  1. Collect logging inputs
  2. Analyze reports from the command line
  3. Load cube specifications into the interactive Cube Advisor and create Intelligent Cube prototypes

1. Collect logging inputs
 
Strategy Cube Advisor uses the Metric Levels diagnostic log generated by the Intelligence Server. Optionally, the results of a Strategy Enterprise Manager report may be provided to help the Cube Advisor weigh the importance of the reports based on their frequency of execution and use of system resources. The Strategy 9 OLAP Services Guide product manual describes the specifications for this Enterprise Manager report in detail.
 
Metric Level logging is obtained by enabling the Metric Levels diagnostic log and then generating SQL for the reports to be analyzed. Logging is enabled in the Strategy Diagnostics and Performance Logging tool, and must be configured on the Intelligence Server machine. It should not be necessary to restart Strategy Intelligence Server for the log to take effect.
 
It is strongly recommended to log metric levels into a dedicated log file. Do not select DSSErrors.log for the file log.
 

ka02R000000kcdoQAA_0EM440000002EZ7.gif

 
Entries will be written into the Metric Levels log file during normal execution of user reports or subscriptions. Strategy Integrity Manager can also automate the process. It is recommended to test SQL only in Integrity Manager to save time. Strategy Cube Advisor does not need the report results, only the analysis of report requirements that is performed by the SQL Generation Engine. Also, the Integrity Manager option to use cached results should be disabled; otherwise, some reports will skip the SQL generation step and will not be recorded in the Metric Levels log.
 
Ensure that the Metric Levels log and (if provided) the exported Enterprise Manager report are available on the machine where Strategy Cube Advisor will be executed from the command line.
 
2. Analyze reports from the command line
 
Strategy Cube Advisor takes its parameters from a configuration file located on the client machine. By default, this file is C:\Program Files\Common Files\Strategy\CubeAdvisorConfiguration.txt and contains the following entries:
 
# Strategy Cube Advisor config version 0.1
Projectname"Name of Project"
Logfilename"Location of Metric Levels Log file"
TotalReports"Total of number of reports for which cube recommendations were sought"
EmFileName"Location of the Enterprise Manager File"
Start"yyyy-mm-dd hh:mm:ss.mss"
End"yyyy-mm-dd hh:mm:ss.mss"
IgnoreReportsThatHitCube"Yes"
IgnoreReportsNotInStatisticsLog"Yes"
Substitute the correct values for the environment for each entry.

  • ProjectName: This field represents the name of the project for which the analysis is being performed.  
  • Logfilename: This field represents the location of the Metric Levels Log file. In the event that the log file is generated on a remote Intelligence Server machine, copy the log file to a folder on the same machine where Cube Advisor will be run. The full path is recommended.
  • TotalReports: Optional. This field represents the total number of reports for which cube recommendations were sought. If not given, the number of reports will be calculated from the Metric Levels log.
  • EmFileName: This field represents the location of the Enterprise Manager file. This file must be available on the machine running Strategy Cube Advisor. The full path is recommended.
  • Start and End: These fields represent the timestamps of the first and last report entries in the Metric Levels Log to consider. Timestamps may be read from the Metric Levels log. Each line begins with the timestamp, in the format yyyy-mm-dd hh24:mi:ss.mss. (Following that is the time difference from GMT, which should not be included in the timestamp.) For instance, the boldface portion of the sample entry would be copied into either the start or end timestamps.
     
    2009-03-11 13:10:05.132-05:00 "Strategy Tutorial","B19DEDCC11D4E0EFC000EB9495D0F44F","New Report","4750CD8B48589122925A76A9CD6B2E61","0","Year","8D679D5111D3E4981000E787EC6DE8A4","000000000000000000000800","Year","8D679D5111D3E4981000E787EC6DE8A4","0"
     
    Note: If either the Start or End parameter is omitted, all the reports in the Metric Levels log would be considered for cube recommendation analysis.
     
  • IgnoreReportsThatHitCube: This flag tells Cube Advisor to ignore reports that are already supported for dynamic sourcing by existing Intelligent Cubes, to avoid creating redundant Intelligent Cubes.
  • IgnoreReportsNotInStatisticsLog: This flag tell Cube Advisor to ignore reports that are not found in the Enterprise Manager File, because it is not possible in that case to estimate the report’s impact on system resources.

After preparing the Cube Advisor configuration file, execute the analysis using the following commands:
 
cd
CubeAdvisor.exe \path\to\CubeAdvisorConfiguration.txt
 
If the Cube Advisor executable and Cube Advisor configuration file are both located under \Program Files\Common Files\Strategy, the console commands would be:
 
c:
cd \Program Files\Common Files\Strategy
CubeAdvisor.exe CubeAdvisorConfiguration.txt
 
Messages will be printed to the console either indicating success or describing issues encountered.
 
3. Load cube specifications into the interactive Cube Advisor and create Intelligent Cube prototypes
 
In this stage, analysis results will be loaded into an interactive Cube Advisor session and the basic Intelligent Cube prototypes will be created. When using Strategy Cube Advisor 9.x, this stage must be performed on a Microsoft Windows 32-bit machine.
 
The commandline analysis results are saved in a file called Project-Name.details.txt, in the current working directory at the time CubeAdvisor.exe was run. This file must be available on the client machine running the Cube Advisor interactively, if it is a different machine.
 
Once the analysis results are available, perform the following steps.

  • Launch Strategy Cube Advisor from the Start menu > Programs > Strategy > Tools > Cube Advisor.
  • Log into the three-tier project source and choose the project that was analyzed in stage 2.
  • From the Report Selection panel, go to the File menu > Open... and select the Project-Name.details.txt file.

ka02R000000kcdoQAA_0EM440000002EZH.gif
ka02R000000kcdoQAA_0EM440000002EZ9.gif
  • Strategy Cube Advisor will present all of the suggested cubes. The user can review the attributes and metrics that will go into each Intelligent Cube report, and the user reports that will be able to use data from the corresponding Intelligent Cube. If any Intelligent Cube designs are undesired, they may be enabled or disabled individually using the check boxes next to each cube index.

ka02R000000kcdoQAA_0EM440000002EZN.gif
  • If an Enterprise Manager report was included in the analysis, Strategy Cube Advisor may present a dashboard-style visualization as well.
     
  • Click “Create Cube Design” to have Strategy Cube Advisor automatically create Intelligent Cube objects in the project. Subsequently, the objects may be edited in Strategy Desktop.

ka02R000000kcdoQAA_0EM440000002EZJ.gif

Note: It is not required to create Intelligent Cube objects after loading the Project-Name.details.txt file. Strategy Cube Advisor analysis results may be archived separately as a historical record of previous analyses and cubes that might have been created. An analysis file may be loaded at any time for review without impact to the Strategy metadata.
 
A record of objects created in the project may be found in the Intelligence Server’s log directory, in the file MstrCubeAdvisor.CubeDesign.log.


Comment

0 comments

Details

Knowledge Article

Published:

April 7, 2017

Last Updated:

April 7, 2017