Set up the OPC Classic extractor
The Cognite OPC Classic extractor is distributed as a Windows installer (.msi file). When you run the .msi file, a setup wizard guides you through the installation process. The installer creates a Windows service and installs the binary files needed to run the extractor.
Before you start
- Check the requirements for the extractor.
- Set up a Windows Update schedule. Note that the update may reboot the machine, causing extractor downtime.
- Download and run the installer for the extractor from Cognite Data Fusion (CDF).
Set Modify permission under Properties in the installation folder to avoid permission issues.
- In the config folder, copy
config.minimal.yml
toconfig.yml
and edit to fit your requirements. - Start the extractor by running the executable file from the folder above the
config
folder,.\bin\OpcClassicExtractor.exe
, or by starting the Windows service.
Connecting over DCOM
The extractor supports connecting to servers over Distributed component object model (DCOM), but the setup for this is not trivial. This is only required if the extractor is on a different machine than the server. The setup is more straightforward if the server runs on the same machine as the extractor.
-
Configure the firewall. You must follow these instructions for both the server and the client since DCOM is bidirectional.
Enter the firewall configuration under
Control Panel > System and Security > Windows Defender Firewall
.Choose
Advanced settings
.Go to
Inbound Rules
and add aNew Rule...
.Configure the rule:
Rule Type
should beCustom
.- Under
Program
, selectAll programs
. - Under
Protocol and Ports
, setProtocol type
toTCP
, setLocal port
toRPC Endpoint Mapper
. setRemote port
toAll Ports
. - Under
Scope
, set local IP addresses toAny IP address
. We recommend setting remote IP addresses to the IP address of the extractor if it resides on a server, or the server's IP address if the extractor resides on a client. - Under
Action
, selectAllow the connection
. - Under
Profile
, select according to your setup. You typically set this toPrivate
, but you may need to update the network profile used by the extractor. - Enter a name, for instance
DCOM Discovery
.
Create another rule:
- Set
Rule Type
toCustom
. - Under
Program
, selectAll programs
. - Under
Protocol and Ports
, setProtocol type
toTCP
, setLocal port
toRPC Dynamic Ports, set
Remote portto
All Ports.` - Under
Scope,
set local IP addresses toAny IP address
. We recommend setting remote IP addresses to the IP address of the extractor if this resides on a server, or the server's IP address if the extractor resides on a client.. - Under
Action
, selectAllow the connection
. - Under
Profile
, select according to your setup. You typically set this toPrivate
, but you may need to update the network profile used by the extractor.. - Enter a name, for instance
DCOM Dynamic Ports
.
-
Configure DCOM. This also needs to be done on both the server and the client, though the configuration is slightly different.
Open the Start menu >
Run
program.Type in
DCOMCNFG
. This opens the configuration for DCOM.You'll find the configuration under
Component Services > Computers > My Computer
.Under
DCOM Config
, grant permissions to the user the extractor will run as.- Find the server in the list of DCOM applications.
- Right-click and select
Properties
. - Set
Authentication Level
toConnect
. - Under
Security
, selectCustomize
andEdit
for each permission. - Grant access to
Local Launch
,Remote Launch
,Local Activation
,Remote Activation
,Local Access
,Remote Access
, andRead
. It may be possible to restrict this further, depending on the server.
Make the same changes to
OpcEnum
.Under
My Computer > Properties
in the same view.- Go to
Default Properties
Enable Distributed COM on this computer
.- Set
Default Authentication Level
toConnect
. - Set
Default Impersonation Level
toIdentity
.