Serverconfig.INI

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
mayenber
Jr. Member
Jr. Member
Posts: 2
Joined: 16 Apr 2013, 11:48

Serverconfig.INI

Post by mayenber »

Hi Unified Automation Team,

I want to use a Serverconfig.ini-File instead of the .xml-File (in the examples), but there are nowhere any information about the syntax of such a file.
It would be enough, if I know how describe Endpoints and Securityconfigurations... so could anyone help me or has anyone a working Serverconfig.ini ???

Best Regards,
mayenber

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: Serverconfig.INI

Post by Support Team »

Hi mayenber!

Please see the example ServerConfig.ini file below to understand how it works. Note: This version of ini file only allows one Endpoint (here NONE Security).
Recompile the SDK without xmlparser library and with preprocessor define USE_XMLCONFIG=0.

Code: Select all

[UaServerConfig]
Trace/UaAppTraceFile=[ApplicationPath]/srvTrace.log
Trace/UaAppTraceLevel=Data
Trace/UaAppTraceEnabled=false
Trace/UaStackTraceLevel=ALL
Trace/UaAppTraceMaxBackup=5
Trace/UaStackTraceEnabled=false
Trace/UaAppTraceMaxEntries=100000
Serializer/MaxAlloc=4194304
Serializer/MaxArrayLength=65535
Serializer/MaxMessageSize=4194304
Serializer/MaxStringLength=65535
Serializer/MaxByteStringLength=1048560
UaEndpoint/SecuritySetting/SecurityPolicy_1=http://opcfoundation.org/UA/SecurityPolicy#None
UaEndpoint/SecuritySetting/MessageSecurityMode_1=None
UaEndpoint/CertificateStore/OpenSSLStore/ServerPrivateKey_1=[ApplicationPath]/PKI/CA/private/uaservercpp.pem
UaEndpoint/CertificateStore/OpenSSLStore/ServerCertificate_1=[ApplicationPath]/PKI/CA/certs/uaservercpp.der
UaEndpoint/CertificateStore/OpenSSLStore/CACertificateLocation_1=[ApplicationPath]/PKI/CA/certs/
UaEndpoint/CertificateStore/OpenSSLStore/CertificateTrustListLocation_1=[ApplicationPath]/PKI/CA/certs/
UaEndpoint/CertificateStore/OpenSSLStore/CertificateRevocationListLocation_1=[ApplicationPath]/PKI/CA/crl/uaservercpp.crl
UaEndpoint/CertificateStore/CertificateSettings/Country_1=DE
UaEndpoint/CertificateStore/CertificateSettings/Locality_1=LocationName
UaEndpoint/CertificateStore/CertificateSettings/CommonName_1=[ServerName]
UaEndpoint/CertificateStore/CertificateSettings/Organization_1=Organization
UaEndpoint/CertificateStore/CertificateSettings/OrganizationUnit_1=Unit
UaEndpoint/CertificateStore/GenerateCertificate_1=true
UaEndpoint/Url_1=opc.tcp://[NodeName]:4841
UaEndpoint/SerializerType_1=Binary
AvailableLocaleIds/LocaleId_1=en
ThreadPoolSettings/MaxSizeTransactionManager=4
ThreadPoolSettings/MinSizeTransactionManager=4
ThreadPoolSettings/MaxSizeSubscriptionManager=4
ThreadPoolSettings/MinSizeSubscriptionManager=4
UserIdentityTokens/EnableUserPw=true
UserIdentityTokens/EnableAnonymous=true
DiscoveryRegistration/RegistrationInterval=30000
DiscoveryRegistration/Url_1=opc.tcp://localhost
AvailableSamplingRates/SamplingRate_1=0
AvailableSamplingRates/SamplingRate_2=50
AvailableSamplingRates/SamplingRate_3=100
AvailableSamplingRates/SamplingRate_4=250
AvailableSamplingRates/SamplingRate_5=500
AvailableSamplingRates/SamplingRate_6=1000
AvailableSamplingRates/SamplingRate_7=2000
AvailableSamplingRates/SamplingRate_8=5000
AvailableSamplingRates/SamplingRate_9=10000
AvailableServerProfiles/ServerProfileUri_1=http://opcfoundation.org/UAProfile/Server/StandardUA
AvailableServerProfiles/ServerProfileUri_2=http://opcfoundation.org/UAProfile/Server/DataAccess
AvailableServerProfiles/ServerProfileUri_3=http://opcfoundation.org/UAProfile/Server/Methods
AvailableServerProfiles/ServerProfileUri_4=http://opcfoundation.org/UAProfile/Server/NodeManagement
AvailableServerProfiles/ServerProfileUri_5=http://opcfoundation.org/UAProfile/Server/EventSubscription
StackThreadPoolSettings/Enabled=false
StackThreadPoolSettings/MaxJobs=20
StackThreadPoolSettings/Timeout=0
StackThreadPoolSettings/BlockOnAdd=true
StackThreadPoolSettings/MaxThreads=5
StackThreadPoolSettings/MinThreads=5
ServerUri=[NodeName]/Vendor/UaDemoserver
ServerName=OpcDemoServer@[NodeName]
BuildNumber=232
MaxRequestAge=0
ApplicationUri=Vendor/UaDemoserver
ApplicationName=OpcDemoServer
MaxSessionCount=100
SoftwareVersion=1.0.0
ManufacturerName=Vendor
MaxDataQueueSize=100
MaxEventQueueSize=10000
MaxSessionTimeout=3600000
MinSessionTimeout=10000
MinKeepAliveInterval=5000
MaxPublishingInterval=0
MinPublishingInterval=50
MinSupportedSampleRate=0
MaxSubscriptionLifetime=0
MinSubscriptionLifetime=10000
MaxRetransmitionQueueSize=10
MaxNotificationsPerPublish=0
MaxBrowseContinuationPoints=0
MaxHistoryContinuationPoints=0
RejectedCertificatesDirectory=[ApplicationPath]/PKI/CA/rejected
Best Regards,
Support Team

Post Reply