OPC UA Client Application Operations in OpcCmd: Difference between revisions

From OPC Labs Knowledge Base
No edit summary
No edit summary
Line 1: Line 1:
Example:
Tutorial:


If you execute the commands listed in the example below, you will get an overview of available client application operations.
If you execute the commands listed in the tutorial below, you will get an overview of available client application operations.


# At the {{Style=label|OpcCmd>}} prompt, enter <code>uaClient getService uaClientApplication</code>, or shortened: <code>uac gs uaca</code>.<br/>The program responds with the name of the client application (""OPC Command-line Tool"), which will be used for registrations to GDS. If this is the first time the program is run, it also creates its self-signed client certificate.<br/>All following commands are entered at the {{Style=label|uaClientApplication>}} prompt. You can enter <code>-?</code>, <code>-h</code> or <code>--help</code> (possibly preceded by the command name) at any time to obtain help for this prompt (or its commands).
# At the {{Style=label|OpcCmd>}} prompt, enter {{Style=keyboard|uaClient getService uaClientApplication}}, or shortened: {{Style=keyboard|uac gs uaca}}.<br/>The program responds with the name of the client application (""OPC Command-line Tool"), which will be used for registrations to GDS. If this is the first time the program is run, it also creates its self-signed client certificate.<br/>All following commands are entered at the {{Style=label|uaClientApplication>}} prompt. You can enter <code>-?</code>, <code>-h</code> or <code>--help</code> (possibly preceded by the command name) at any time to obtain help for this prompt (or its commands).
# <code>registerToGds opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo</code> (<code>registerToGds</code> can be shortened to <code>rtg</code>).
# {{Style=keyboard|registerToGds opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo}} (<code>registerToGds</code> can be shortened to <code>rtg</code>).
# <code>findGdsRegistrations opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo</code> (<code>findGdsRegistrations</code> can be shortened to <code>fgr</code>).
# {{Style=keyboard|findGdsRegistrations opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo}} (<code>findGdsRegistrations</code> can be shortened to <code>fgr</code>).


<code>obtainNewCertificate opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo</code>
{{Style=keyboard|obtainNewCertificate opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo}}


?
?


<code>refreshTrustLists opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo</code>
{{Style=keyboard|refreshTrustLists opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo}}


<code>unregisterFromGds opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo</code>
{{Style=keyboard|unregisterFromGds opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo}}


<code>removeInstanceCertificate</code>
{{Style=keyboard|removeInstanceCertificate}}


# You can check the parameters of the client instance certificate by entering <code>getInstanceCertificate</code>, or shortened: <code>gic</code>.
# You can check the parameters of the client instance certificate by entering {{Style=keyboard|getInstanceCertificate}}, or shortened: {{Style=keyboard|gic}}.
# If you want to force the application to generate a new self-signed client certificate, you can do so by entering <code>removeInstanceCertificate</code>, or shortened: <code>ric</code>. This might be useful e.g. for repeated testing against a GDS, if you have already received a client certificate from GDS (signed by a certificate authority), and want to revert to the initial state. At the next OPC UA operation, the application will generate a new self-signed certificate for itself, and use it for subsequent operations.
# If you want to force the application to generate a new self-signed client certificate, you can do so by entering {{Style=keyboard|removeInstanceCertificate}}, or shortened: {{Style=keyboard|ric}}. This might be useful e.g. for repeated testing against a GDS, if you have already received a client certificate from GDS (signed by a certificate authority), and want to revert to the initial state. At the next OPC UA operation, the application will generate a new self-signed certificate for itself, and use it for subsequent operations.

Revision as of 10:42, 15 January 2021

Tutorial:

If you execute the commands listed in the tutorial below, you will get an overview of available client application operations.

  1. At the OpcCmd> prompt, enter uaClient getService uaClientApplication, or shortened: uac gs uaca.
    The program responds with the name of the client application (""OPC Command-line Tool"), which will be used for registrations to GDS. If this is the first time the program is run, it also creates its self-signed client certificate.
    All following commands are entered at the uaClientApplication> prompt. You can enter -?, -h or --help (possibly preceded by the command name) at any time to obtain help for this prompt (or its commands).
  2. registerToGds opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo (registerToGds can be shortened to rtg).
  3. findGdsRegistrations opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo (findGdsRegistrations can be shortened to fgr).

obtainNewCertificate opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo

?

refreshTrustLists opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo

unregisterFromGds opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer -eu appadmin:demo

removeInstanceCertificate

  1. You can check the parameters of the client instance certificate by entering getInstanceCertificate, or shortened: gic.
  2. If you want to force the application to generate a new self-signed client certificate, you can do so by entering removeInstanceCertificate, or shortened: ric. This might be useful e.g. for repeated testing against a GDS, if you have already received a client certificate from GDS (signed by a certificate authority), and want to revert to the initial state. At the next OPC UA operation, the application will generate a new self-signed certificate for itself, and use it for subsequent operations.