OpcCmd uaClient command tips and tricks
From OPC Labs Knowledge Base
- How do I specify a connection using ECC security policy?
- Example:
OpcCmd uaClient read opc.tcp://pc-zbynekz-5:62541/Quickstarts/ReferenceServer --EndpointSecurityPolicyDisplayName ECC_nistP256 i=2255
- For other ECC policies, use e.g. ECC_nistP384, ECC_brainpoolP256r1 or ECC_brainpoolP384r1.
- How can I check which message security mode, or security policy, is actually being used?
- Start the uaClient command as follows:
!option AmbientOutput [Boolean]True
uaclient --ConnectionMonitoring
- Then, proceed as normally. There will be ServerConditionChanged events displayed, and in their Connected state, they will show the communication profile (in angle brackets) being used, e.g.:
[1] IEasyUAClientConnectionMonitoring.ServerConditionChanged: "opc.tcp://localhost:48040 - [SignAndEncrypt:ECC-nistP256:Binary]" Connected; Success
- In this example, the message security mode is SignAndEncrypt, the security policy name is ECC-nistP256, and the data encoding name is Binary.