Page 1 of 1

Want to set Server ServiceLevel, RedundancySupport, and Serv

Posted: 12 Feb 2020, 11:59
by miyamae
Hi there,

I want to create a redundant .NET based OPC UA server in non-transparent mode.
I want to allow OPC UA clients to get information about server redundancy.

How do I set values ​​for Server.ServiceLevel, Server.ServerRedundancy.RedundanSupport, and ServerUriArray?

Is there an API? Can it be set with the configuration XML?

Thanks in advance.

Re: Want to set Server ServiceLevel, RedundancySupport, and Serv

Posted: 14 Mar 2021, 14:46
by Colifari
Hello, did you get any answers for this question?
I able to set ServerUriArray in that way, but not RedundancySupport nor ServiceLevel

Code: Select all

var redServersUri = CoreNodeManager.FindInMemoryNode(new NodeId(11314, 0)) as VariableNode;
redServersUri.Value = new string[] { "opc.tcp://srv1:51210", "opc.tcp://srv2:51210" };

Re: Want to set Server ServiceLevel, RedundancySupport, and Serv

Posted: 23 Apr 2021, 15:57
by cditrani
From UA support (this works for me):

the sdk doesn´t provide a method to set the service level. Simply use the internal client and write the value to the node.

NodeId serviceLevelNodeId = UnifiedAutomation.UaBase.VariableIds.Server_ServiceLevel;

Variant value = new Variant((byte)5);

var status = Server.InternalClient.WriteAttribute(Server.DefaultRequestContext, serviceLevelNodeId, Attributes.Value, value);