2.2.2.1. Installing Metadefender Core (4.19.0 or newer) using command line
For command line fashion install on both Linux and Windows, it is mandatory to use MetaDefender Core ignition file to pre-define PostgreSQL server information BEFORE installing MetaDefender Core 4.19.0 or newer. Making sure to create the ignition file if not existed before you go ahead to install MetaDefender Core via command line.
-
Windows: C:\OPSWAT\ometascan.conf
-
Linux: /etc/opswat/ometascan.conf
MetaDefender Core supports two modes to setup PostgreSQL server:
-
Create new local PostgreSQL server:MetaDefender Core will install a new PostgreSQL server locally in the same box with the product.
A sample iginition file for PostgreSQL server information (Only non-Unicode characters supported for "user"):
[dbserver]
type=local
host=localhost
port=5432
user=postgres
password=whatever_you_decide
-
Use your existing PostgreSQL server: MetaDefender Core will connect to setup its database on a pre-installed PostgreSQL server running remotely. "Test Connection" button needs to be hit to make sure the PostgreSQL is connected and authenticated successfully.
A sample iginition file for PostgreSQL server information:
[dbserver]
type=remote
host=192.168.86.32
port=5432
user=existing_server_admin_user
password=existing_server_pass
After installing MetaDefender Core successfully, you may want to remove all credentials info created for [dbsever] section in ignition file for security reason.
If the Metadefender Core package dependencies are not installed on your system you may need to have a working Internet connection or you may have to provide the Installation media during the installation. Consult your Operating System documentation on how to use Installation media as a package repository.
Debian package (.deb)
sudo dpkg -i <filename> || sudo apt-get install -f
On Red Hat Enterprise Linux / CentOS package (.rpm)
sudo yum install <filename>
For systems which enabled GPD check flag:
sudo yum install --nogpdcheck <filename>
Windows package (.msi)
On Windows systems it is possible to install the product by running the corresponding .msi file.
From command line interface it is also possible to install the product by executing
msiexec /i <msi file name> <option key>=<option value>
where the possible keys and their default values are the following:
Key |
Default Value |
Description |
INSTALLFOLDER |
\Program Files\OPSWAT\MetaDefender Core |
Customize installation folder for product Example: INSTALLFOLDER="D:\Products" |
RESTADDRESS |
* |
REST interface binding IPv4 or IPv6 address ( '*' means that service listens on all IPv4 and IPv6 interfaces) |
RESTPORT |
8008 |
REST interface binding port |
EXTERNALNODE |
|
Whether to enable external processing nodes or not. To enable external processing nodes, set EXTERNALNODE=1. ADDRESS and PORT values below are admitted only if EXTERNALNODE=1 is set. |
ADDRESS |
|
Address of the computer to accept external scan node connections ADDRESS value is only admitted if EXTERNALNODE=1 is set. If EXTERNALNODE=1 is set but ADDRESS is not, then ADDRESS defaults to * (all IPv4 and IPv6 interfaces) |
PORT |
|
Designated port number to accept external scan node connections PORT value is only admitted if EXTERNALNODE=1 is set. If EXTERNALNODE=1 is set but PORT is not, then PORT defaults to 8007. |
REPORT_ENGINE_ISSUE |
true |
Enable reporting of engine issue count. (possible values: "true" or "false"). |
For details on using msiexec please consult Windows installer documentation.