Building and Using Dashboards > Using the Dashboard Viewer > Startup Options > Command line options
Command line options
Following are the command line options for this executable:
Dashboard Viewer command line options
Option
Description
-C | --panelConfig file
Specifies the panels-initialization file to use for displaying this dashboard. file is the full pathname of the .ini file.
-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 in the Preparing Dashboards for Deployment chapter of the Dashboard Builder guide. You can specify connection details for multiple correlators by using the option multiple times in a single command. Here is an 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 | --nodirect
Suppress check box in login dialog that allows direct connection to correlator.
-d | --direct
Connect directly to correlator.
-E | --purgeOnEdit bool
Specifies whether to purge all trend data when a scenario instance 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
Exclude instances which are not owned by user. This option applies to all dashboard processes. Default is false for Builder and true for the other dashboard processes.
Exception: when the dashboard viewer is connecting to a dashboard server, the default is true and cannot be overridden.
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.
-I | --xmlRedirect
Redirect XML sources through Data Server.
-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.
-j | --singleClick
Single click for drill down and actions.
-k | --doubleClick
Double click for drill down and actions.
-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, correlators are connected as needed. If this option is not specified, the Data Server connects to correlators as needed
When --connectMode always is specified trend data starts collecting upon correlator connection. When --connectMode asNeeded is in effect trend data starts collecting after you select an attachment to the trend table in the dashboard viewer.
-N | --name name
Set the component name for identification in the correlator. The default name is Dashboard Viewer: username.
--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.
-n | --noSplash
Do not display splash screen in startup.
--noMenus
Do not display menu bar.
-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 | 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. noinfo: 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 or 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, \.
-s | --dashboardServer host:port[:modifiable]
Specifies the Data Server host and port that will appear as the defaults in the Data Server Login dialog. The host and port fields of the dialog will be modifiable only if you specify modifiable. If you do not specify modifiable, the host and port fields will be greyed out.If you use the -s option, the Connect directly to correlator check box will not appear in the Data Server Login dialog. The -s option overrides the -d option.
-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 Viewer 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 Viewer 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 varaible 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 CrossOver:Instrument,Price
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.Use this option only when you connect Viewer directly to a correlator.
-Y | --enhancedQuery
Make SQL-based instance tables available as data tables for visualization attachments. See Attaching Dashboards to Correlator Data. Use this option only when you connect Viewer directly to a correlator.
-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.
--inclusionFilter val
Set scenario inclusion filters. This option can occur multiple times in a single command.
--exclusionFilter val
Set scenario exclusion filters. This option can occur multiple times in a single command.
Copyright © 2013-2015 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.