OPC Publisher command-line arguments

This article describes the command-line arguments that you can use to set global settings for Open Platform Communications (OPC) Publisher.

Command-line arguments for version 2.5 and earlier

  • Usage: opcpublisher.exe <applicationname> [<iothubconnectionstring>] [<options>]

  • applicationname: (Required) The OPC Unified Architecture (OPC UA) application name to use.

    You also use the application name to register the publisher in the IoT hub device registry.

  • iothubconnectionstring: (Optional) The IoT hub owner connection string.

    You ordinarily specify the connection string only when you start the application for the first time. The connection string is encrypted and stored in the platforms certificate store.

    On subsequent calls, the connection string is read from the platforms certificate store and reused. If you specify the connection string on each start, the device, which is created for the application in the IoT hub device registry, is removed and re-created each time.

To control the application, you can use any of several of environment variables:

  • _HUB_CS: Sets the IoT hub owner connection string
  • _GW_LOGP: Sets the file name of the log file to use
  • _TPC_SP: Sets the path to store certificates of trusted stations
  • _GW_PNFP: Sets the file name of the publishing configuration file

Note

Command-line arguments overrule environment variable settings.

Argument Description
--pf, --publishfile=VALUE The file name to use to configure the nodes to publish.
Default: /appdata/publishednodes.json
--tc, --telemetryconfigfile=VALUE The file name to use to configure the ingested telemetry.
Default: ''
-s, --site=VALUE The site that OPC Publisher is working in. If it's specified, this domain is appended (delimited by a : to the ApplicationURI property when telemetry is sent to the IoT hub. The value must follow the syntactical rules of a DNS hostname.
Default: <not set>
--ic, --iotcentral OPC Publisher sends OPC UA data in an Azure IoT Central-compatible format (DisplayName of a node is used as a key, which is the field name in Azure IoT Central). Ensure that all DisplayName values are unique (automatically enables the fetch display name).
Default: false
--sw, --sessionconnectwait=VALUE Specifies the wait time, in seconds, that the publisher is trying to connect to disconnected endpoints and starts monitoring unmonitored items.
Minimum: 10
Default: 10
--mq, --monitoreditemqueuecapacity=VALUE Specifies how many notifications of monitored items can be stored in the internal queue if the data can't be sent quickly enough to the IoT hub.
Minimum: 1024
Default: 8192
--di, --diagnosticsinterval=VALUE Shows OPC Publisher diagnostics information at the specified interval, in seconds (need log level information). -1 disables the remote diagnostics log and diagnostics output. 0 disables the diagnostics output.
Default: 0
--ns, --noshutdown=VALUE Same as runforever.
Default: false
--rf, --runforever You can't stop OPC Publisher by pressing a key on the console. It runs forever.
Default: false
--lf, --logfile=VALUE The file name of the log file to use.
Default: <hostname>-publisher.log
--lt, --logflushtimespan=VALUE The timespan, in seconds, when the log file should be flushed.
Default: 00:00:30
--ll, --loglevel=VALUE The log level to use. Allowed: fatal, error, warn, info, debug, verbose.
Default: info
--ih, --iothubprotocol=VALUE The protocol to use for communication with the IoT hub (allowed values: Amqp, Http1, Amqp_WebSocket_Only, Amqp_Tcp_Only, Mqtt, Mqtt_WebSocket_Only, Mqtt_ Tcp_Only) or the Azure IoT Edge hub (allowed values: Mqtt_Tcp_Only, Amqp_Tcp_Only).
Default for the IoT hub: Mqtt_WebSocket_Only
Default for the IoT Edge hub: Amqp_Tcp_Only
--ms, --iothubmessagesize=VALUE The maximum size of a message that can be sent to the IoT hub. When telemetry of this size is available, it is sent. 0 enforces immediate send when telemetry is available.
Minimum: 0
Maximum: 262144
Default: 262144
--si, --iothubsendinterval=VALUE The interval, in seconds, when telemetry should be sent to the IoT hub. If the interval is 0, only the iothubmessagesize parameter controls when telemetry is sent.
Default: 10
--dc, --deviceconnectionstring=VALUE If OPC Publisher can't register itself with the IoT hub, you can create a device with the name \<applicationname> manually and pass in the connection string of this device.
Default: none
-c, --connectionstring=VALUE The IoT hub owner connection string.
Default: none
--hb, --heartbeatinterval=VALUE OPC Publisher uses this as a default value, in seconds, for the heartbeat interval setting of nodes without a heartbeat interval setting.
Default: 0
--sf, --skipfirstevent=VALUE OPC Publisher uses this as default value for the skipfirstevent setting of nodes without a skipfirstevent setting.
Default: false
--pn, --portnum=VALUE The server port of the publisher OPC server endpoint.
Default: 62222
--pa, --path=VALUE The endpoint URL path part of the publisher OPC server endpoint.
Default: /UA/Publisher
--lr, --ldsreginterval=VALUE The LDS(-ME) registration interval, in milliseconds (ms). If 0, the registration is disabled.
Default: 0
--ol, --opcmaxstringlen=VALUE The maximum string length that OPC can transmit or receive.
Default: 131072
--ot, --operationtimeout=VALUE The operation time-out of the publisher OPC UA client, in milliseconds.
Default: 120000
--oi, --opcsamplinginterval=VALUE OPC Publisher uses this as default value, in milliseconds, to request the servers to sample the nodes with this interval. This value might be revised by the OPC UA servers to a supported sampling interval. Check the OPC UA specification for details about how this is handled by the OPC UA stack.
A negative value sets the sampling interval to the publishing interval of the subscription this node is on.
0 configures the OPC UA server to sample in the highest possible resolution and should be used with care.
Default: 1000
--op, --opcpublishinginterval=VALUE OPC Publisher uses this as default value, in milliseconds, for the publishing interval setting of the subscriptions established to the OPC UA servers. Check the OPC UA specification for details about how this is handled by the OPC UA stack.
A value less than or equal to 0 lets the server revise the publishing interval.
Default: 0
--ct, --createsessiontimeout=VALUE Specifies the time-out, in seconds, that's used when you create a session to an endpoint. On unsuccessful connection, it attempts a backoff up to five times the specified time-out value.
Minimum: 1
Default: 10
--ki, --keepaliveinterval=VALUE Specifies the interval, in seconds, that the publisher sends keep-alive messages to the OPC servers on the endpoints that it's connected to.
Minimum: 2
Default: 2
--kt, --keepalivethreshold=VALUE Specifies the number of keep-alive packets that a server can miss before the session is disconnected.
Minimum: 1
Default: 5
--aa, --autoaccept OPC Publisher trusts all servers that it establishes a connection to.
Default: false
--tm, --trustmyself=VALUE Same as trustowncert.
Default: false
--to, --trustowncert The OPC Publisher certificate is put into the trusted certificate store automatically.
Default: false
--fd, --fetchdisplayname=VALUE Same as fetchname.
Default: false
--fn, --fetchname Enable reading the display name of a published node from the server. This setting increases the run time.
Default: false
--ss, --suppressedopcstatuscodes=VALUE Specifies the OPC UA status codes for which no events should be generated.
Default: BadNoCommunication, BadWaitingForInitialData
--at, --appcertstoretype=VALUE The owned application certificate store type.
Allowed values: Directory, X509Store
Default: Directory
--ap, --appcertstorepath=VALUE The path where the owned application certificate should be stored.
Default (depends on store type):
X509Store: CurrentUser\UA_MachineDefault
Directory: pki/own
--tp, --trustedcertstorepath=VALUE The path of the trusted certificate store.
Default: pki/trusted
--rp, --rejectedcertstorepath=VALUE The path of the rejected certificate store.
Default: pki/rejected
--ip, --issuercertstorepath=VALUE The path of the trusted issuer certificate store.
Default: pki/issuer
--csr Shows data to create a certificate signing request.
Default: false
--ab, --applicationcertbase64=VALUE Updates or sets this application's certificate with the certificate that's passed in as a Base64 string.
--af, --applicationcertfile=VALUE Updates or sets this application's certificate with the specified certificate file.
--pb, --privatekeybase64=VALUE Initially provisions the application certificate (in PEM or PFX format). Requires a private key, which is passed in as a Base64 string.
--pk, --privatekeyfile=VALUE Initially provisions the application certificate (in PEM or PFX format). Requires a private key, which is passed in as file.
--cp, --certpassword=VALUE The optional password for the PEM or PFX of the installed application certificate.
--tb, --addtrustedcertbase64=VALUE Adds the certificate to the application's trusted certificate store, passed in as a Base64 string (multiple comma-separated strings supported).
--tf, --addtrustedcertfile=VALUE Adds the certificate file to the application's trusted certificate store, passed in as a Base64 string (multiple comma-separated file names supported).
--ib, --addissuercertbase64=VALUE Adds the specified issuer certificate to the application's trusted issuer certificate store, passed in as a Base64 string (multiple comma-separated strings supported).
--if, --addissuercertfile=VALUE Adds the specified issuer certificate file to the application's trusted issuer certificate store (multiple comma-separated file names supported).
--rb, --updatecrlbase64=VALUE Updates the certificate revocation list (CRL), passed in as a Base64 string to the corresponding certificate store (trusted or trusted issuer).
--uc, --updatecrlfile=VALUE Updates the CRL, passed in as file to the corresponding certificate store (trusted or trusted issuer).
--rc, --removecert=VALUE Removes certificates with the specified thumbprints (multiple comma-separated thumbprints supported).
--dt, --devicecertstoretype=VALUE The IoT hub device certificate store type.
Allowed values: Directory, X509Store
Default: X509Store
--dp, --devicecertstorepath=VALUE The path of the IoT device certificate store
Default (depends on store type): X509Store
My Directory: CertificateStores/IoTHub
-i, --install Registers OPC Publisher with the IoT hub and then exits.
Default: false
-h, --help Shows this message and exits.
--st, --opcstacktracemask=VALUE Ignored.
--sd, --shopfloordomain=VALUE Same as the site option. The value must follow the syntactical rules of a DNS hostname.
Default: <not set>
--vc, --verboseconsole=VALUE Ignored.
--as, --autotrustservercerts=VALUE Same as --aa, --autoaccept.
Default: false
--tt, --trustedcertstoretype=VALUE Ignored. The trusted certificate store always resides in a directory.
--rt, --rejectedcertstoretype=VALUE Ignored. The rejected certificate store always resides in a directory.
--it, --issuercertstoretype=VALUE Ignored. The trusted issuer certificate store always resides in a directory.

Command-line arguments for version 2.6 and later

Argument Description
--pf, --publishfile=VALUE The file name to configure the nodes to publish. If this option is specified, it puts OPC Publisher into standalone mode.
--lf, --logfile=VALUE The file name of the log file to use.
--ll. --loglevel=VALUE The log level to use. Allowed: fatal, error, warn, info, debug, verbose.
--me, --messageencoding=VALUE The messaging encoding for outgoing messages. Allowed values: Json, Uadp.
--mm, --messagingmode=VALUE The messaging mode for outgoing messages. Allowed values: PubSub, Samples.
--fm, --fullfeaturedmessage=VALUE The full-featured mode for messages (all fields filled in).
Default is true. For legacy compatibility, use false.
--aa, --autoaccept OPC Publisher trusts all servers that it establishes a connection to.
--bs, --batchsize=VALUE The number of OPC UA data-change messages to be cached for batching.
--si, --iothubsendinterval=VALUE The trigger batching interval, in seconds.
--ms, --iothubmessagesize=VALUE The maximum size of the IoT D2C message.
--om, --maxoutgressmessages=VALUE The maximum size of the IoT D2C message egress buffer.
--di, --diagnosticsinterval=VALUE Shows OPC Publisher diagnostics information at the specified interval, in seconds (need log level information). -1 disables the remote diagnostics log and diagnostics output.
--lt, --logflugtimespan=VALUE The timespan, in seconds, when the log file should be flushed.
--ih, --iothubprotocol=VALUE The protocol to use for communication with the hub. Allowed values: AmqpOverTcp, AmqpOverWebsocket, MqttOverTcp, MqttOverWebsocket, Amqp, Mqtt, Tcp, Websocket, Any.
--hb, --heartbeatinterval=VALUE OPC Publisher uses this as default value, in seconds, for the heartbeat interval setting of nodes without a heartbeat interval setting.
--ot, --operationtimeout=VALUE The operation time-out of the publisher OPC UA client, in milliseconds (ms).
--ol, --opcmaxstringlen=VALUE The maximum length of a string that OPC Publisher can transmit or receive.
--oi, --opcsamplinginterval=VALUE The default value, in milliseconds, to request the servers to sample values.
--op, --opcpublishinginterval=VALUE The default value, in milliseconds, for the publishing interval setting of the subscriptions against the OPC UA server.
--ct, --createsessiontimeout=VALUE The interval, in seconds, that OPC Publisher sends keep-alive messages to the OPC servers on the endpoints that it's connected to.
--kt, --keepalivethresholt=VALUE Specifies the number of keep-alive packets that a server can miss before a session is disconnected.
--tm, --trustmyself Automatically puts the OPC Publisher certificate into the trusted store.
--at, --appcertstoretype=VALUE The owned application certificate store type. Allowed: Directory, X509Store.

Command-line arguments for version 2.8.2 and later

The following OPC Publisher configuration can be applied by command-line interface (CLI) options or as environment variable settings.

The Alternative field, when it's present, refers to the applicable CLI argument in standalone mode only. When both the environment variable and the CLI argument are provided, the latest argument overrules the environment variable.

Argument Description
PublishedNodesFile=VALUE The file that's used to store the configuration of the nodes to be published along with the information to connect to the OPC UA server sources. When this file is specified, or the default file is accessible by the module, OPC Publisher starts in standalone mode.
Alternative: --pf, --publishfile
Mode: Standalone only
Type: string - file name, optionally prefixed with the path
Default: publishednodes.json
site=VALUE The site that OPC Publisher is assigned to.
Alternative: --s, --site
Mode: Standalone, orchestrated
Type: string
Default: <not set>
LogFile name==VALUE The file name of the log file to use
Alternative: --lf, --logfile
Mode: Standalone only
Type: string - file name, optionally prefixed with the path
Default: <not set>
LogFileFlushTimeSpan=VALUE The timespan, in seconds, when the log file should be flushed in the storage account.
Alternative: --lt, --logflushtimespan
Mode: Standalone only
Environment variable
Type: timespan string {[d.]hh:mm:ss[.fffffff]}
Alternative argument type: integer, in seconds
Default: {00:00:30}
loglevel=Value The level for logs to be persisted in the log file.
Alternative: --ll --loglevel
Mode: Standalone only
Type: string enum - fatal, error, warning, information, debug, verbose
Default: info
EdgeHubConnectionString=VALUE An IoT Edge Device or IoT Edge module connection string to use. When it's deployed as a module in IoT Edge, the environment variable is already set as part of the container deployment.
Alternative: --dc, --deviceconnectionstring | --ec, --edgehubconnectionstring
Mode: Standalone, orchestrated
Type: connection string
Default: <not set> <set by iotedge run time>
Transport=VALUE The protocol to use for upstream communication to the IoT Edge hub or the IoT hub.
Alternative: --ih, --iothubprotocol
Mode: Standalone, orchestrated
Type: string enum - Any, Amqp, Mqtt, AmqpOverTcp, AmqpOverWebsocket, MqttOverTcp, MqttOverWebsocket, Tcp, Websocket
Default: MqttOverTcp
BypassCertVerification=VALUE Enables/disables the bypassing of certificate verification for upstream communication to EdgeHub.
Alternative: N/A
Mode: Standalone, orchestrated
Type: Boolean
Default: false
EnableMetrics=VALUE Enables/disables upstream metrics propagation.
Alternative: N/A
Mode: Standalone, orchestrated
Type: Boolean
Default: true
DefaultPublishingInterval=VALUE The default value for the OPC UA publishing interval of OPC UA subscriptions created to an OPC UA server. This value is used when no explicit setting is configured.
Alternative: --op, --opcpublishinginterval
Mode: Standalone only
Environment variable
Type: timespan string {[d.]hh:mm:ss[.fffffff]}
Alternative argument type: integer, in milliseconds
Default: {00:00:01} (1000)
DefaultSamplingInterval=VALUE The default value for the OPC UA sampling interval of nodes to publish. This value is used when no explicit setting is configured.
Alternative: --oi, --opcsamplinginterval
Mode: Standalone only
Environment variable
Type: timespan string {[d.]hh:mm:ss[.fffffff]}
Alternative argument type: integer, in milliseconds
Default: {00:00:01} (1000)
DefaultQueueSize=VALUE The default value for the monitored item's queue size, to be used when it isn't explicitly specified in the pn.json file.
Alternative: --mq, --monitoreditemqueuecapacity
Mode: Standalone only
Type: integer
Default: 1
DefaultHeartbeatInterval=VALUE The default value for the heartbeat interval setting of published nodes that have no explicit setting for heartbeat interval.
Alternative: --hb, --heartbeatinterval
Mode: Standalone
Environment variable
Type: timespan string {[d.]hh:mm:ss[.fffffff]}
Alternative argument type: integer, in seconds
Default: {00:00:00}, which means that heartbeat is disabled
MessageEncoding=VALUE The messaging encoding for outgoing telemetry.
Alternative: --me, --messageencoding
Mode: Standalone only
Type: string enum - Json, Uadp
Default: Json
MessagingMode=VALUE The messaging mode for outgoing telemetry.
Alternative: --mm, --messagingmode
Mode: Standalone only
Type: string enum - PubSub, Samples
Default: Samples
FetchOpcNodeDisplayName=VALUE Fetches the display name for the nodes to be published from the OPC UA server when it isn't explicitly set in the configuration.
Note: This argument has a high impact on OPC Publisher startup performance.
Alternative: --fd, --fetchdisplayname
Mode: Standalone only
Type: Boolean
Default: false
FullFeaturedMessage=VALUE The full-featured mode for messages (all fields filled in the telemetry).
Default is false for legacy compatibility.
Alternative: --fm, --fullfeaturedmessage
Mode: Standalone only
Type: Boolean
Default: false
BatchSize=VALUE The number of incoming OPC UA data change messages to be cached for batching. When BatchSize is 1 or TriggerInterval is set to 0, batching is disabled.
Alternative: --bs, --batchsize
Mode: Standalone, orchestrated
Type: integer
Default: 50
BatchTriggerInterval=VALUE The batching trigger interval. When BatchSize is 1 or TriggerInterval is set to 0, batching is disabled.
Alternative: --si, --iothubsendinterval
Mode: Standalone, orchestrated
Environment variable
Type: timespan string {[d.]hh:mm:ss[.fffffff]}
Alternative argument type: integer, in seconds
Default: {00:00:10}
IoTHubMaxMessageSize=VALUE The maximum size of the IoT D2C telemetry message.
Alternative: --ms, --iothubmessagesize
Mode: Standalone, orchestrated
Type: integer
Default: 0
DiagnosticsInterval=VALUE Shows OPC Publisher diagnostics information at the specified interval, in seconds (need log level information). -1 disables the remote diagnostics log and diagnostics output.
Alternative: --di, --diagnosticsinterval
Mode: Standalone only
Environment variable
Type: timespan string {[d.]hh:mm:ss[.fffffff]}
Alternative argument type: integer, in seconds
Default: {00:00:60}
LegacyCompatibility=VALUE Forces OPC Publisher to operate in 2.5 legacy mode by using application/opcua+uajson for ContentType on the IoT hub.
Telemetry message.
Alternative: --lc, --legacycompatibility
Mode: Standalone only
Type: Boolean
Default: false
PublishedNodesSchemaFile=VALUE The validation schema file name for the published nodes file.
Alternative: --pfs, --publishfileschema
Mode: Standalone only
Type: string
Default: <not set>
MaxNodesPerDataSet=VALUE The maximum number of nodes within a dataset or subscription. When more nodes than this value are configured for DataSetWriter, they're added in a separate dataset or subscription.
Alternative: N/A
Mode: Standalone only
Type: integer
Default: 1000
ApplicationName=VALUE The OPC UA Client Application Configuration application name, as per the OPC UA definition. It's used for authentication during the initial communication handshake and as part of owned certificate validation.
Alternative: --an, --appname
Mode: Standalone, orchestrated
Type: string
Default: Microsoft.Azure.IIoT
ApplicationUri=VALUE The OPC UA Client Application Configuration application URI, as per the OPC UA definition.
Alternative: N/A
Mode: Standalone, orchestrated
Type: string
Default: $"urn:localhost:{ApplicationName}:microsoft:"
ProductUri=VALUE The OPC UA Client Application Configuration product URI, as per OPC UA definition.
Alternative: N/A
Mode: Standalone, orchestrated
Type: string
Default: https://www.github.com/Azure/Industrial-IoT
DefaultSessionTimeout=VALUE The OPC UA Client Application Configuration session time-out, in seconds, as per OPC UA definition.
Alternative: --ct, --createsessiontimeout
Mode: Standalone, orchestrated
Type: integer
Default: 0, which means <not set>
MinSubscriptionLifetime=VALUE The OPC UA Client Application Configuration minimum subscription lifetime, in seconds, as per OPC UA definition.
Alternative: N/A
Mode: Standalone, orchestrated
Type: integer
Default: 0, <not set>
KeepAliveInterval=VALUE The OPC UA Client Application Configuration keep-alive interval, in seconds, as per OPC UA definition.
Alternative: --ki, --keepaliveinterval
Mode: Standalone, orchestrated
Type: integer, in milliseconds
Default: 10,000 (10 sec)
MaxKeepAliveCount=VALUE The OPC UA Client Application Configuration maximum number of keep-alive events, as per OPC UA definition.
Alternative: --kt, --keepalivethreshold
Mode: Standalone, orchestrated
Type: integer
Default: 50
PkiRootPath=VALUE The OPC UA Client Security Configuration PKI (public key infrastructure) certificate store root path.
Alternative: N/A
Mode: Standalone, orchestrated
Type: string
Default: pki
ApplicationCertificateStorePath=VALUE The OPC UA Client Security Configuration application's owned certificate store path.
Alternative: --ap, --appcertstorepath
Mode: Standalone, orchestrated
Type: string
Default: $"{PkiRootPath}/own"
ApplicationCertificateStoreType=VALUE The OPC UA Client Security Configuration application's owned certificate store type.
Alternative: --at, --appcertstoretype
Mode: Standalone, orchestrated
Type: string enum - Directory, X509Store
Default: Directory
ApplicationCertificateSubjectName=VALUE The OPC UA Client Security Configuration subject name in the application's owned certificate.
Alternative: --sn, --appcertsubjectname
Mode: Standalone, orchestrated
Type: string
Default: "CN=Microsoft.Azure.IIoT, C=DE, S=Bav, O=Microsoft, DC=localhost"
TrustedIssuerCertificatesPath=VALUE The OPC UA Client Security Configuration trusted certificate issuer store path.
Alternative: --ip, --issuercertstorepath
Mode: Standalone, orchestrated
Type: string
Default: $"{PkiRootPath}/issuers"
TrustedIssuerCertificatesType=VALUE The OPC UA Client Security Configuration trusted issuer certificates store type.
Alternative: N/A
Mode: Standalone, orchestrated
Type: string enum - Directory, X509Store
Default: Directory
TrustedPeerCertificatesPath=VALUE The OPC UA Client Security Configuration trusted peer certificates store path.
Alternative: --tp, --trustedcertstorepath
Mode: Standalone, orchestrated
Type: string
Default: $"{PkiRootPath}/trusted"
TrustedPeerCertificatesType=VALUE The OPC UA Client Security Configuration trusted peer certificates store type.
Alternative: N/A
Mode: Standalone, orchestrated
Type: string enum - Directory, X509Store
Default: Directory
RejectedCertificateStorePath=VALUE The OPC UA Client Security Configuration rejected certificates store path.
Alternative: --rp, --rejectedcertstorepath
Mode: Standalone, orchestrated
Type: string
Default: $"{PkiRootPath}/rejected"
RejectedCertificateStoreType=VALUE The OPC UA Client Security Configuration rejected certificates store type.
Alternative: N/A
Mode: Standalone, orchestrated
Type: string enum - Directory, X509Store
Default: Directory
AutoAcceptUntrustedCertificates=VALUE The OPC UA Client Security Configuration auto accept untrusted peer certificates.
Alternative: --aa, --autoaccept
Mode: Standalone, orchestrated
Type: Boolean
Default: false
RejectSha1SignedCertificates=VALUE The OPC UA Client Security Configuration reject deprecated Sha1 signed certificates.
Alternative: N/A
Mode: Standalone, orchestrated
Type: Boolean
Default: false
MinimumCertificateKeySize=VALUE The OPC UA Client Security Configuration minimum accepted certificates key size.
Alternative: N/A
Mode: Standalone, orchestrated
Type: integer
Default: 1024
AddAppCertToTrustedStore=VALUE The OPC UA Client Security Configuration automatically copy the owned certificate's public key to the trusted certificate store.
Alternative: --tm, --trustmyself
Mode: Standalone, orchestrated
Type: Boolean
Default: true
SecurityTokenLifetime=VALUE The OPC UA Stack Transport Secure Channel security token lifetime.
Alternative: N/A
Mode: Standalone, orchestrated
Type: integer, in milliseconds
Default: 3,600,000 (1 hour)
ChannelLifetime=VALUE The OPC UA Stack Transport Secure Channel channel lifetime, in milliseconds.
Alternative: N/A
Mode: Standalone, orchestrated
Type: integer, in milliseconds
Default: 300,000 (5 minutes)
MaxBufferSize=VALUE The OPC UA Stack Transport Secure Channel maximum buffer size.
Alternative: N/A
Mode: Standalone, orchestrated
Type: integer, in kilobytes
Default: 65,535 (64 KB -1)
MaxMessageSize=VALUE The OPC UA Stack Transport Secure Channel maximum message size.
Alternative: N/A
Mode: Standalone, orchestrated
Type: integer
Default: 4,194,304 (4 MB)
MaxArrayLength=VALUE The OPC UA Stack Transport Secure Channel maximum array length.
Alternative: N/A
Mode: Standalone, orchestrated
Type: integer
Default: 65,535 (64 KB - 1)
MaxByteStringLength=VALUE The OPC UA Stack Transport Secure Channel maximum byte string length.
Alternative: N/A
Mode: Standalone, orchestrated
Type: integer
Default: 1,048,576 (1 MB)
OperationTimeout=VALUE The OPC UA Stack Transport Secure Channel service call operation timeout.
Alternative: --ot, --operationtimeout
Mode: Standalone, orchestrated
Type: integer, in milliseconds
Default: 120,000 (2 min)
MaxStringLength=VALUE The OPC UA Stack Transport Secure Channel maximum length of a string that can be sent/received over the OPC UA secure channel.
Alternative: --ol, --opcmaxstringlen
Mode: Standalone, orchestrated
Type: integer
Default: 130,816 (128 KB - 256)
RuntimeStateReporting=VALUE Enables reporting of OPC Publisher restarts.
Alternative: --rs, --runtimestatereporting
Mode: Standalone
Type: Boolean
Default: false
EnableRoutingInfo=VALUE Adds the routing information to telemetry messages. The name of the property is $$RoutingInfo, and the value is DataSetWriterGroup for that particular message. When DataSetWriterGroup isn't configured, the $$RoutingInfo property isn't added to the message even if this argument is set.
Alternative: --ri, --enableroutinginfo
Mode: Standalone
Type: Boolean
Default: false

Next steps

For additional resources, go to the following GitHub repositories: