Using OpcCmd Utility as OPC UA Client
From OPC Labs Knowledge Base
For general information about the OpcCmd tool, see Category:OpcCmd Utility.
Commands, Arguments and Options
Command: uaClient subscribe
OpcCmd -i uaClient subscribe opc.tcp://opcua.demo-this.com:51210/UA/SampleServer nsu=http://test.org/UA/Data/;i=10849
Obtaining server condition statistics:
- Enter
uaClient -ServerConditionChanged
. - Enter
subscribe opc.tcp://opcua.demo-this.com:51210/UA/SampleServer nsu=http://test.org/UA/Data/;i=10849
. - Optionally terminate the command prematurely by pressing X.
- Wait for approx. 10 seconds.
- Enter
events?
, or shortened:ev?
. Note the index of the last event (in the "[]" column). - Enter
events? -!extractElement <nn> -!extractMember EventArgs.Statistics.StateDictionary
, or shortened:ev? -!xe <nn> -!xm EventArgs.Statistics.StateDictionary
where <nn> is the index of the last event, taken in previous step.