Skip to main content

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​

  1. On the staging machine, install the package:

    mkdir omni-edge && cd omni-edge
    npm init -y
    npm install @sterfive/opcua-omni-edge
  2. Check that it runs:

    node_modules/.bin/opcua-omni-edge version
  3. Go up one level and archive the whole folder.

    On Linux:

    cd ..
    tar czf omni-edge.tar.gz omni-edge

    On Windows:

    tar.exe -czf omni-edge.tar.gz omni-edge
  4. Copy omni-edge.tar.gz to the target machine.

  5. On the target machine, unpack the archive and check it:

    tar xzf omni-edge.tar.gz
    cd omni-edge
    node_modules/.bin/opcua-omni-edge version

    The command shows the version.

warning

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.

  1. 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

    -l is the licence key, -u is your name, -m is your email and -f is the file to write. The command makes a fingerprint of the machine. It does not need a network.

  2. Send request.txt to Sterfive: support@sterfive.com.

  3. Sterfive sends an activation file, for example licence_abcd.txt. Copy it to the installation folder.

  4. 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​

  1. Repeat the copy procedure on the staging machine.
  2. On the target machine, replace the folder omni-edge.
  3. Keep the config.yaml file, 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​

PathContent
config.yamlYour configuration file.
The certificate storeThe 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.