Developing Apama Applications > Building Dashboards > Using Dashboard Builder > Command line options
Command line options
The Dashboard Builder executable supports options that can be specified on the start-up command line to override the default values used by the Builder. This section documents these options.
Synopsis
The executable for the Dashboard Builder is dashboard_builder.exe. It has the following syntax:
dashboard_builder.exe [options] [.rtv-file-path]
If you specify the full pathname of an rtv file, the Builder will open it.
Options
Following are the command line options for this executable:
Dashboard Builder command line options
Option
Description
-B | --namedServer
logical-name:host:port
Sets the host and port for a specified logical Data Server name. This overrides the host and port specified by the dashboard builder for the given server logical name. This option can occur multiple times in a single command. See Working with multiple Data Servers for more information.
-c | --correlator
logical-name:host:port:bool
Sets the correlator host and port for a specified logical correlator name. bool is one of true and false, and specifies whether to use the raw channel for communication. This overrides the host, port, and raw-channel setting specified by the Dashboard Builder for the given correlator logical name—see Changing Correlator Definitions for Deployment on page 834 in Using Studio.This option can occur multiple times in a single command. For example:
-c default:localhost:15903:false
-c work1:somehost:19999:true
These options set the host and port for the logical names default and work1.
-D | --dashboard directory
Start with the dashboard found in the specified directory.
-E | --purgeOnEdit bool
Specifies whether to purge all trend data when a scenario instance or DataView item is edited. bool is one of true and false. If this option is not specified, all trend data is purged when an instance is edited. In most cases this is the desired mode of operation.
-F | --filterInstance arg
Filter scenario instances. This is ignored for Dashboard Server Viewer. Values can be true or false.
-f | --logfile file
Full pathname of the file in which to record logging. If this option is not specified, the options in the log4j properties file will be used.
-G | --trendConfigFile file
Trend configuration file for controlling trend-data caching.
-h | --help
Emit usage information and then exit.
-J | --jaasFile file
Full pathname of the JAAS initialization file to be used by the Data Server. If not specified, the Data Server uses the file JAAS.ini in the lib directory of your Apama installation.
-L | --xmlSource file
XML data source file. If file contains static data, append :0 to the file name. This signals Apama to read the file only once.
-m | --connectMode mode
Correlator-connect mode. mode is one of always and asNeeded. If always is specified all correlators are connected to at startup. If asNeeded is specified, the Data Server connects to correlators as needed. If this option is not specified, the Data Server connects to correlators as needed.
-N | --name name
Set the component name for identification in the correlator. The default name is Dashboard Builder: username.
-n | --noSplash
Do not display splash screen in startup.
-O | --optionsFile file
Use the specified OPTIONS.ini file at startup.
-P | --maxPrecision n
Maximum number of decimal places to use in numerical values displayed by dashboards. Specify values between 0 and 10, or -1 to disable truncation of decimal places. A typical value for n is 2 or 4, which eliminates long floating point values (for example, 2.2584435234). Truncation is disabled by default.
-q | --sql options
Configures SQL Data Source access. options has the following form:
[retry:ms | fail:n | db:name | noinfo | nopererr | quote]
retry: Specify the interval (in milliseconds) to retry connecting to a database after an attempt to connect fails. Default is -1, which disables this feature.fail: Specify the number of consecutive failed SQL queries after which to close this database connection and attempt to reconnect. Default is -1, which disables this feature.db: Name of SQL database. Only databases using ODBC drivers can be added on the command linenoinfo: Query database for available tables and columns in your database. If a Database Repository file is found, it is used to populate drop down menus in the Attach to SQL Data dialog.nopererr: SQL errors with the word permission in them will not be printed to the console. This is helpful if you have selected the Use Client Credentials option for a database. In this case, if your login does not allow access for some data in their display, you will not see any errors.quote: Encloses all table and column names specified in the Attach to SQL Data dialog in quotes when an SQL query is run. This is useful when attaching to databases that support quoted case-sensitive table and column names. Note: If a case-sensitive table or column name is used in the Filter field, or you are entering an advanced query in the SQL Query field, they must be entered in quotes, even if the -sqlquote option is specified.
-R | --purgeOnRemove bool
Specifies whether to purge all scenario or DataView data when an instance or item is removed. bool is one of true and false. If this option is not specified, all scenario and DataView data is purged when an instance or item is removed.
-S | --sub variable:value
Specifies a value to substitute for a given dashboard variable. This can be used to parameterize a dashboard at startup. This option can occur multiple times in a single command. For example:
-S $foo:hello -S $bar:can't -S $tom:"my oh my"
-S $jerry:"\"yikes\""
If the value contains a space, enclose the value in double quotes. If the value contains a double quote, you must escape it by using a backslash character, \.
-T | --maxTrend depth
Maximum depth for trend data, that is, the maximum number of events in trend tables. If this option is not specified, the maximum trend depth is 1000. Note that the higher you set this value, the more memory the Data Server requires, and the more time it requires in order to display trend and stock charts.
-t | --title value
Text for the title bar of the Dashboard Builder main window.
-u | --updateRate rate
Data update rate in milliseconds. This is the rate at which the Data Server pushes new data to deployed dashboards in order to inform them of new events received from the correlator. rate should be no lower than 250. If the Dashboard Viewer is utilizing too much CPU you can lower the update rate by specifying a higher value. If this option is not specified, an update rate of 500 milliseconds is used.
-V | --version
Emit program name and version number and then exit.
-v | --loglevel level
Logging verbosity. level is one of FATAL, ERROR, WARN, INFO, DEBUG, and TRACE. If this option is not specified, the options in the log4j properties file will be used.
-w | --disconnectWarning bool
By default, the Dashboard Builder will display a warning dialog when the connection to a correlator is lost. Specify false to disable the display of this dialog.
-X | --extensionFile file
Full pathname of the JAAS initialization file to be used by the Data Server. If not specified, the Data Server uses the file EXTENSIONS.ini in the lib directory of your Apama installation.
-x | --queryIndex
table-name:key-list
Add an index for the specified SQL-based instance table with the specified compound key. table-name is the name of a scenario or DataView. key-list is a comma-separated list of variable names or field names. If the specified scenario or DataView exists in multiple correlators that are connected to the dashboard server, the index is added to each corresponding data table.Example:
--queryIndex
Products_Table:prod_id,vend_id
You can only add one index per table, but you can specify this option multiple times in a single command line in order to index multiple tables.
-Y | --enhancedQuery
Make SQL-based instance tables available as data tables for visualization attachments. See Attaching Dashboards to Correlator Data in Building Dashboards.
-z | --timezone zone
Default time zone for interpreting and displaying dates. zone is either a Java timezone ID or a custom ID such as GMT-8:00.  Unrecognized IDs are treated as GMT.  See Appendix A of the Dashboard Viewer guide for the complete listing of permissible values for zone.
--exclusionFilter val
Set scenario exclusion filters. This option can occur multiple times in a single command.
--inclusionFilter val
Set scenario inclusion filters. This option can occur multiple times in a single command.
Copyright © Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.