Start Parameters (Processes)

Start Parameters (Processes)

Start parameters of processes

Start parameters can be used to start processes. During the process configuration, these parameters are defined by means of the button Parameters in the configuration dialog box or in file Start Parameters (Processes)#default.arg. The parameters may be set also in registry on computer with running D2000 Server on which the server is being connected.

The following table includes the overview of the start parameters for processes.

Parameter

Parameter validity

Meaning

/?

/h

All client processes of D2000 system

Displays the list of permissible parameters along with explanation of their meaning for existing process.
Setting this parameter other start parameters will be ignored. After writing up a text with explanation for start process, this process will be ended.

/AF<Method>

D2000 HI, D2000 GrEditor, D2000 CNF, D2000 Application Manager, D2000 DDE Server, D2000 System Console, D2000 Tell, D2000 Browser

Forces other authentication method for verification of user's identity than the authentication method required by the process D2000 Server.
Value of <Method> parameter can be

To use a specific authentication method, it must be permitted for the in his configuration (parameter Authentication methods).

/AN<Name>

D2000 HI, D2000 GrEditor, D2000 CNF

Name is the name of a D2000 system user for automatic logon into the process after starting the process. If the /AP parameter is not entered, the name is added into the login window and password will be required.

--ANSI

D2000 GateWay Client, D2000 GateWay Server

The parameter enforces the Windows 1250 encoding for transmitted texts. If it is not entered, the texts use UTF8 encoding. The parameter must be used providing that the communication partner is of older version than 9.X and the text values are transmitted.

/AO<NameOfPicture>

D2000 HI, D2000 GrEditor

NameOfPicture is the name of picture opened after +1. logon into the process

/AP<Password>

D2000 HI, D2000 GrEditor, D2000 CNF

Password is the user's password for automatic logon into the process after starting the process. /AP means that the password is an empty string.

The parameter is also used when changing the access password to the configuration database by the kernel.exe process.

/AS

D2000 HI, D2000 GrEditor

Disables the synchronization of bitmaps when starting the process.

/ASE

D2000 System Console

Enables switching the HOT server (manual or automatic).

/ASG<group>

D2000 System Console

Automatic HOT server switching. The parameter group defines the name of a redundant group.

/ASI<interval>

D2000 System Console

Automatic HOT server switching. The parameter interval defines the time interval, after the lapse of which the HOT server is to be switched.

/B<BkpNr>

D2000 Server

BkpNr is the number of configuration database backups. Database backups is generated when starting the process. The parameter /B0 causes no generation of the backup. Number of backups (value of the parameter BkpNr) can be within 0...3. If the parameter is not entered, there are automatically used the parameters /B0 for the process D2000 Server.

--batch_mode

D2000 Event Handler

Parameter modifies an interpretation of DB_SET_PROCESS_PARAMS.

/C<ApplName>

D2000 Server

Application name.

/CT

All client processes of D2000 system

Process will use the time of the computer, where is started. If the parameter is not entered (Default), the process will use the time of the computer with running D2000 Server.

/DBCA

D2000 Archiv

The process D2000 Archiv in the active mode deletes old data from the archive database and reorganizes it (in redundant systems, the process must be also connected to HOT Server).

/DBCP

D2000 Archiv

The process D2000 Archiv in the passive mode deletes old data from the archive database and reorganizes it (or passive mode in redundant systems, but the process must be connected to SBS Server).

/DBCS

D2000 Archiv (only for Oracle database)

The process D2000 Archiv will use ALTER TABLE SHRINK SPACE instead of SQL command ALTER TABLE MOVE for reorganisation (this command is available only for Oracle 10g and above).

/DBCY

D2000 Archiv

Enables the reorganization of archive database. If the process D2000 Archiv is not started with the parameter, the process deletes old data from archive database but doesn't reorganize the archive tables (for reasons of back compatibility before the implementation of the reorganization features).

/DBCY

D2000 DBManager

Enables the debug information on the status of the Oracle cluster.
The parameter can be used only when the database TNS points to cluster and contains FAILOVER section (recovering the connection after one of the instances of Oracle cluster fails). If the FAILOVER section is not included in the database TNS, no debug information will be generated on a failure or disconnecting a cluster instance.

Warning: The parameter can be used just for dbmanager_ora.exe.

/DBCP

D2000 Archiv

Only in passive mode, the process D2000 Archiv can delete old data from the archive database and reorganize it (ORACLE).

/DBD<number_of_days>

D2000 Archiv

The process D2000 Archiv limits the maximum archive depth to the number of day defined by the parameter <number_of_days>.
The limitation is to be applied to all objects of Historical values, no matter how the objects are configured.

/DBD<number_of_requests>

D2000 DBManager

The process D2000 DBManager will log performance warnings when a number of requests queued for a non-transactional connection exceeds the value number_of_requests. This parameter can be used for performance tuning. More...

/DBIV<flag>

D2000 Archiv

The process D2000 Archiv ignores all values with the same flag as defined by the parameter <flag>.
The parameter can be used to ignore several flags at the same moment (e.g. the process started with the parameter /DBIVI /DBIVG ignores all values with the flags of I or G).

/DBPO

D2000 Archiv

Activates the archive attribute (Archiv keeps only primary data). Requirements on statistic and calculated archive objects are ignored.
Parameter can be controlled by TELL command SET_OPTION DBPO ON/OFF.

/DBS<size>

D2000 DBManager

Support for long strings (e.g. for working with CLOB columns of Oracle database). By default, D2000 DBManager works with strings upto 4000 characters long. With this parameter, a reserved maximum size for a string can be changed.
Note: Increase of reserved size will affect memory consumption.

/DBSH

D2000 Archiv

The process D2000 Archiv shares the archive database with another process D2000 Archiv (e.g. at work with database cluster). There are 2 possible configurations:

  1. Two (or more) archive processes (SELF.ARC), where one is connected to the HS Server, the other (s) is connected to SBS Server (s). If SELF.ARC is connected to the SBS Server, it works in the ReadOnly mode. If it is connected to the HS Server, works as usual.

  2. Two (or more) instance archive processes (SELF.ARC_1, SELF.ARC_2, etc.), that are connected to the HS Server. The active instance works as usual, the passive one (s) works in the ReadOnly mode.

/DBSH

D2000 DBManager

Parameter is meaningful only in redundant systems.
The process D2000 DBManager will close all databases connections if

  • its D2000 server changes its state to SBS

  • DbManager is run as an instance (supported since version D2000 8.0) and the instance becomes passive

When the server changes its status to HS again (resp. when the instance becomes active), the connections to the databases will be restored.

Note: Without the parameter /DBSH in a redundant system with two (or possibly more according to the degree of redundancy) processes D2000 DBManager it is necessary to consider the fact that a total number of open database connection may be as much as twice the value in a non-redundant system. That can cause problems, e.g. for Oracle database if its value of the pfile parameter processes is not sufficiently large.

/DC

D2000 HI

Disables the cache for pictures. The aim is to decrease memory requirements of process at the expense of slowing-down the picture opening.

--DEFAULT-TOOLBAR-COLOR

D2000 HI

Paint toolbars using default grey color. If not specified, toolbars are painted white.

/DG

D2000 HI

Decreases the memory requirements of the process at work with graphs at the expense of slowing-down the drawing of graphs which contains a lot data.

/DI

D2000 HI, D2000 GrEditor, D2000 Archiv

Shows specialized information (debug info) when starting the process.

/DL

D2000 HI, D2000 GrEditor

Enables writing the contents of Listener window to *.LOG file (HI.LOG or GRE.LOG).

/DM<nickname>

D2000 Server

Developer mode: enables the parallel running of several D2000 Server processes on one computer for development purposes. The value of <nickname> will be displayed in the topic of text console window of D2000 Server process (if the console window is visible, see the parameter /X) and it will be also added to the name of shared memory used for interprocess communication.
To avoid collision and change the standard number of TCP port (3119) all processes D2000 Server (with the exception of a single one using standard TCP port 3119 and standard name of shared memory) must be run using the parameters /P and /DM.
Example:

ServerA: kernel.exe /P:1001 /CApp1 /DMThisIsApp1
ServerB: kernel.exe /P:1002 /CApp2 /DMThisIsApp2

local connection to ServerA via shared memory: hi.exe /P:1001 /DMThisIsApp1
local connection to ServerB via shared memory: hi.exe /P:1002 /DMThisIsApp2

local connection to ServerA via TCP/IP: hi.exe /P:1001 /TP
local connection to ServerB via TCP/IP: hi.exe /P:1002 /TP

remote connection to ServerA: hi.exe /Sserver_name /P:1001 /TP
remote connection to ServerB: hi.exe /Sserver_name /P:1002 /TP

Note: Starting with the version 7.02.006 the process D2SMC supports parameters /DM and /P. Multiple instances of D2SMC can be executed, each of them connected to a different D2000 Server running in developer mode.

/DP

Processes with text console

(Debug Pipe) – The process will display the course of communication with D2000 Server.

/DPA
/DPP
/DPR

D2000 HI, D2000 GrEditor

Mode of receiving messages from the process D2000 Server:
/DPR - when receiving
/DPP - before processing
/DPA - both the modes

/DUMP
/DUMP_MEDIUM
/DUMP_FULL

All client processes of D2000 system

The monitoring process procdump.exe is started up along with the given process. It monitors the unhandled exceptions that may occur in the given process. If the process crashes due to this exception, a dump file is created in the log file of D2000 system (subdirectory dumps). Dump file contains the information about the process at the time of its crash, from which a user may determine the reason of the crash.
Size of dump file and contents depend on the used parameter:

  • /DUMP - generates the file with the basic information about process, such as threads and their call-stacks. Size of this file is quite small. Mostly, the information in this file is sufficient for analyzing the reasons of crash.

  • /DUMP_MEDIUM - generates the file with the information about process and a part of memory that is formed by heap. Size of this file is bigger than when using /DUMP parameter.

  • /DUMP_FULL - generates the file containing the full process image at the time of crash. Size of this file can be very large (equal to the size of the process in memory). Use this parameter only in the extraordinary situations!

/DW

Processes with text console

Not minimizing the text window of the process after starting. If the parameter is not defined, the window will be minimized after starting.

/E+<debug_category>
/E-<debug_category>

All processes of D2000 system

Enables (+) / disables (-) displaying of debug information of given category (debug_category) on start of the process.
Debug information is designed for internal development purposes.

To enable / disable displaying of debug information and to view it you may also use the process D2000 System Console.

Warning: Displaying debug information may cause system overload.

/E+DBG.CHECK.OBJECTS

D2000 Server

After the process D2000 Server has been started it executes the check of configuration of all objects.

/E+DBG/E+RTM.USELOCALCACHE

D2000 HI

It activates the use of the cache data that are transferred from D2000 Server to D2000 HI. It enables, especially for slow networks (WiFi), to speed up the start of D2000 HI. The parameter must be entered when starting the process. When it is started for the first time, it creates the cache, which stores a lot of files into the subdirectory localstore (on the client side) in the application directory (for example, one for each event and picture).

/F<Period>

All client processes of D2000 system

Period is the sending period of WatchDog messages between CLIENT process and the process D2000 Server. It is set in seconds, where zero means not sending the message. Default value is /F60.
Note: As a parto of the WatchDog message, the D2000 Server sends the current time. This allows remote client processes (running on another computer) to calculate the local time difference from the D2000 Server time. This difference is then used as a correction for all times of new values generated by the client process.

/FI

D2000 Event Handler

Timeout for processing a request. It is given in seconds.
Default value is /FI120.
More...

/FM

D2000 Topology

Using this parameter the topology will use complete calculation instead of partial More..

/FS

D2000 HI, D2000 GrEditor, D2000 CNF

Time to display error report if attempting to establish connection with D2000 Server has failed. Default value is 60 s. For the value of /FS0, there will be displayed neither the start window nor the error report.

--fullscreen

D2000 HI

Switches to full-screen mode - it hides a header and toolbars of the main window and maximized dialog windows (pictures) as well. This functionality can be changed to special mode of HI. See more in the chapter Specific displaying of HI.

/GTWC<ipAddress:portNr>

D2000 Gateway Client

IP address and port of D2000 Gateway Server, to which D2000 Gateway Client connects to. Parameter may be specified several times (in systems with redundant networks and/or redundant D2000 Gateway Servers).

/GTWL<portNr>  

D2000 Gateway Server

TCP port to listen for incoming D2000 Gateway Clients.

/H

D2000 Server

Increases the priority for D2000 Server. Result is to get a better response during communication with network client processes.

/HW

All client processes of D2000 system

Parameter allows the process to logon to WDDemon application that checks the functionality of client processes.
Parameter may be used only if the WatchDog message sending period (the parameter /F) is different from 0 (zero).

/KA<ArchivSize>

D2000 KOM

The parameter enables a function of the KOM Archiv. <ArchivSize> is the size of archive file - buffer within the range of 1...400 megabytes.

/KC<ApplName>

D2000 KOM

The parameter is valid just for the process KOM with the function KOM Archiv, that is starting without the process D2000 Server.
<ApplName> must be the same as for the parameter /C of the server, the process KOM is attempting to connect to.

/KD<seconds>

D2000 KOM

This parameter is meaningful only for values which are acquired with timestamp information.

If the value of the parameter seconds is positive, only those values from communication will be accepted which have the timestamps newer than current time minus seconds (i.e. TimeNew > Clock - seconds).

If the value of the parameter seconds is negative, only those values from communication will be accepted which have the timestamps newer than the timestamp of current value minus the absolute value of seconds (i.e. TimeNew > TimeOld - |seconds| ). Moreover if the current value is invalid, newly acquired value with old timestamp will have its timestamp updated to current timestamp and it will be accepted. This feature enables KOM process to accept valid values (with updated timestamps) from communication (which may come with old timestamp) right after the startup - when all tags have invalid values with current timestamp.
Special case is setting the parameter seconds=-1, which causes the old values not to be discarded, but in case that current value is invalid, a newly acquired value with old timestamp will have its timestamp updated to current timestamp and will be accepted.
If the parameter /KD is not set or if it has a default value seconds=0 then the values will not be discarded/modified as described above.

Discarded values will be logged in the subdirectory TRACE of the application directory - in a file named DISCARDED_VALUES_SELF_KOM.log (for SELF.KOM) or DISCARDED_VALUES_name_KOM.log (for name.KOM).

Values with modified time will be logged in the subdirectory TRACE of the application directory - in a file named CHANGED_VALUES_SELF_KOM.log (for SELF.KOM) or CHANGED_VALUES_name_KOM.log (for name.KOM).

The format of rows in both log files is following: current time - timestamp of current value - timestamp of newly acquired value - I/O tag's name - current value - newly acquired value.

/KD<seconds>

D2000 DBManager

This parameter concerns the warnings timeout expired, that the process DBManager writes to the log files and publishes via system variable SystemError, if a database operation takes more than 60 seconds to complete.
Via this parameter a pre-set value of 60 seconds can be changed. It can be set to a higher value e.g. if DBManager executes SQL queries (e.g. runs stored procedures), that can take longer time to complete and generate undesirable alarms.
More information is available in document D2000 DBManager - logs evaluation.

/KDBC