...
- Open the SmartServer Configuration page as described in Accessing the SmartServer IoT Configuration Page. The Network tab appears as the default SmartServer Configuration page. Once the network settings are configured for the SmartServer system, then the System tab will appear as the default.
SmartServer IoT Network tab
SmartServer IoT System tab
For SmartServer Pi, open the SmartServer Configuration page as described in Accessing the SmartServer Pi Configuration Page. The Configuration view that appears depends on your cache data. As needed, click the SmartServer IoT tab. The System tab (top) will appear as the default as shown below.
SmartServer Pi System tab - Click the OPC UA tab.
SmartServer IoT OPC UA disabled status
SmartServer Pi OPC UA UA disabled status Enable the OPC UA Server server option and click Update.
SmartServer IoT OPC UA enabled status
SmartServer Pi OPC UA enabled status
The OPC UA endpoint URL that is used by the OPC UA client to communicate with the OPC UA server is:opc.tcp://<SmartServer IoT or SmartServer Pi hostname>:55000/UA/echopcua-server
Examples:
opc.tcp://192.168.1.15:55000/UA/echpcua-server
opc.tcp://smartserver-17q4aa8:55000/UA/echopcua-serverFor more information about supplying the <SmartServer IoT or SmartServer Pi hostname> variable depending on your SmartServer environment, refer to the Connectivity Testing section found in Connect to Your SmartServer.
- Save your changes to OPC UA configuration settings by clicking the Update buttonClick Update to save your configuration settings.
Disabling the Anonymous Connection End Point
You can disable the anonymous connection end point by modifying the OPCUA_config.xml file. With this setting change, the OPC UA Server server will only publish the secure endpoint with username/password authentication.
To disable the anonymous connection end point, perform the following steps:
- Access the SmartServer Configuration page and click the OPC UA tab as described in the Setting the OPC UA Configuration section above
- Stop the OPC UA Server server by disabling the Enable OPC UA Server deselecting the Enabled option on the OPC UA Configuration page.
SmartServer IoT OPC UA disabled status
SmartServer Pi OPC UA disabled status - Click Update on the OPC UA Configuration page for changes to take effect.
- Connect to the SmartServer at the console.
- Enter the following command:
cd /var/apollo/data/opcua
Modify the OPCUA_config.xml file by setting the <EnableAnonymousEndpoint>true</EnableAnonymousEndpoint> flag to false as indicated below.
- Restart the OPC UA Server server by enabling the OPC UA Serverserver option as described in the Setting the OPC UA Configuration section above.
...