Command-line Node Installation
| These installation instructions will create a secure-by-default initial configuration for the system. This includes a secure and encrypted https communication with the WebServer and the necessary Administration Profile needed to connect and continue configuration. |
This page describes how to install an AspenTech Inmation OT DataFabric Node Service instance from the command line.
The AspenTech Inmation Node service can be installed and/or started using the inmation.exe executable. For the following examples the executable is run from within the following file structure.
📂 inmation.root
┗📂 bin
â”— inmation.exe
| The path to the AspenTech Inmation OT DataFabric executable, config file, startup script, data folder etc. must only contain ASCII characters. Non-ASCII characters in these paths can cause installation issues. |
The command line installation will use the YAML file to set the parameters for the installation of the Node and the creation of the initial objects needed for connecting to the Node (WebServer, Profile Group/Profile, Security Provider) is configured in either a Lua startup script or a JSON file. This gives administrators strict initial control over system access and communication protocols.
| Nodes can be installed without the object configuration in a Lua or JSON startup script, but communication to the Node will not be possible without these objects. |
Preparing the Configuration
-
On your hard disk drive, create a new folder for the system installation. For example, C:\Program Files\AspenTech. In this example "Home" will be the name used for the installed Node.
It is recommended to use the Program Files directory of the Windows host for installation location. This limits access to Administrators only and allows for proper IT access control. -
Copy the inmation.root folder into your system installation folder and add a suffix to the end to indicate the instance name of the installation. For example "inmation.root.Home"
It is possible to run multiple Nodes on the same machine. Each Node requires its own installation folder. Therefore, it is recommended to create subfolders in a single folder, each of which will contain the configuration for an individual Node. -
To connect to the Node with WebStudio following installation, the necessary WebStudio files need to also be added. In the inmation.root.Home folder, create a new sub-folder called "html" (C:\<installation_folder>\inmation.root\html) and inside this folder, create another subfolder named "apps" (C:\<installation_folder>\inmation.root\html\apps).
-
In the inmation.root folder, open the "webapps" sub-folder and extract the content of the zipped WebApps folder to the newly created "apps" folder (C:\<installation_folder>\inmation.root\html\apps).
-
The parameters for command-line installation can entered into a configuration YAML file Before installing the Node as a Windows service, we will create a configuration file, which will be used in conjunction with a startup script. To do this
-
In a text editor, create a YAML file called "inmation-config.yaml". This file should be stored in the same folder as the executable.
-
In the new YAML file, add the following information:
environment: [COMPUTERNAME=Home] startup: initListenPort: 6512 winsvc: instance: "Home" firewall: trueThis example only includes minimal configuration options and doesn’t include the parameters for specifying the Configuration Startup file paths. This will be explained in the next section. If no Configuration Startup file is specified then it will default to a "inmation-startup.lua" file in the same inmation.root\bin directory. For a complete configuration file with all available options in their default settings see the page on the YAML Configuration File.
-
Configuration Startup files
It is also necessary to configure a startup file which specifies the initial functionality that a Node provides when launched for the first time (like starting a Web Server or defining a Profile so that Node becomes accessible via WebStudio).
| When a WebServer object is created, a self-signed certificate and private key are generated and stored in WebServer object properties. The self-signed certificate can be used to establish an initial secure connection to the WebServer but is not recommended for production environments. If a new valid certificate is available, it can be imported into the WebServer object after installation. |
The startup files can be defined either using a JSON or a Lua startup script. Both options are described on dedicated pages. Please follow the instructions for the option you prefer, the complete path to the startup file needs to be added in the "inmation-config.yaml" file under either the initJsonFile or luaFile options:
The Lua file or JSON file paths can be added to the YAML Configuration File startup options, but if not configured the executable will by default look for a Lua startup script in the bin directory named "inmation-startup.lua".
Running the Executable
When the configuration file and the startup file are configured, the Node can be started.
First, open a powershell window as an administrator and navigate to the inmation.root\bin directory
PS> Set-Location "C:\<installation_folder>\inmation.root\bin"
To install the Node as a service, execute:
PS> ./inmation.exe -i
If a config yaml file in a different directory is being used (or a config file with a name other than "inmation-config.yaml") then the --cfg-file option should also be added.
PS> ./inmation.exe -i --cfg-file <CONFIG_FILE_PATH>
To execute in the Node in a the console (not installed as a service), the --cfg-file option can be used on its own.
PS> ./inmation.exe --cfg-file <CONFIG_FILE_PATH>
A variety of parameters allows finer control over how the service is started or installed. For details see the Command Line Parameters page.