Offline and air-gapped installs
A plant network can be isolated: no npm registry, no licence server, sometimes no route out of the machine. Omni-Edge supports this in two parts: you copy the software to the machine, then you license it with files.
Before you start
- A staging machine with access to the npm registry. See Install from npm.
- The same platform and the same Node.js major version on the staging machine and on the target machine.
- A licence key from Sterfive, for the licensing part.
node_modules can contain compiled native addons.
A Linux x64 build does not load on Windows or on arm64.
If the machines differ, install on a staging machine that matches the target.
Or use the container bundle, which has its own runtime.
How to copy the software to the target machine
-
On the staging machine, install the package:
mkdir omni-edge && cd omni-edgenpm init -ynpm install @sterfive/opcua-omni-edge -
Check that it runs:
node_modules/.bin/opcua-omni-edge version -
Go up one level and archive the whole folder.
On Linux:
cd ..tar czf omni-edge.tar.gz omni-edgeOn Windows:
tar.exe -czf omni-edge.tar.gz omni-edge -
Copy
omni-edge.tar.gzto the target machine. -
On the target machine, unpack the archive and check it:
tar xzf omni-edge.tar.gzcd omni-edgenode_modules/.bin/opcua-omni-edge versionThe command shows the version.
Archive the folder with node_modules. The target machine cannot run npm install.
Do not use npm pack. Do not use an archiver that skips the files of .gitignore.
How to license without internet access
The licence activation normally contacts the Sterfive licence service. Without a connection, you exchange files: the gateway makes a fingerprint, Sterfive signs it, and you bring the result back.
-
On the target machine, make the activation request. Use the licence key that Sterfive sent to you.
node_modules/.bin/opcua-omni-edge licence offline request \-l ABCDEF-01234-...-ABCDEF \-u "Joe Doe" \-m joe.doe@acme.com \-f request.txt-lis the licence key,-uis your name,-mis your email and-fis the file to write. The command makes a fingerprint of the machine. It does not need a network. -
Send
request.txtto Sterfive: support@sterfive.com. -
Sterfive sends an activation file, for example
licence_abcd.txt. Copy it to the installation folder. -
Activate the licence:
node_modules/.bin/opcua-omni-edge licence offline activate -f licence_abcd.txt
How to check that it works
Run:
node_modules/.bin/opcua-omni-edge licence info
The command shows the licence state.
How to update
- Repeat the copy procedure on the staging machine.
- On the target machine, replace the folder
omni-edge. - Keep the
config.yamlfile, the certificate store and$HOME/.sterfive/opcua-omni-edge/of the target machine.
How to remove
To return the licence seat when you retire the machine, make a deactivation file and send it to Sterfive:
node_modules/.bin/opcua-omni-edge licence offline deactivate -f deactivation.txt
What to back up
| Path | Content |
|---|---|
config.yaml | Your configuration file. |
| The certificate store | The OPC UA PKI: trust lists and own certificates. |
$HOME/.sterfive/opcua-omni-edge/ | The licence activation and the stable identity of this machine. |
Restore the first two paths on a rebuilt machine to get a working gateway. Restore the third path to avoid a new licence seat. Without it, an air-gapped site needs a new file exchange with Sterfive before the gateway runs.