NetBrain Integrated Edition Release Notes · 2020. 4. 16. · NetBrain Integrated Edition is a...
Transcript of NetBrain Integrated Edition Release Notes · 2020. 4. 16. · NetBrain Integrated Edition is a...
Version 7.0b1 | Last Updated 2017-11-14 Copyright ©2004-2017 NetBrain Technologies, Inc. All rights reserved.
NetBrain® Integrated Edition 7.0 Upgrade Instructions
Contents
1. System Overview ......................................................................................................................................................................... 3
2. System Requirements ................................................................................................................................................................ 5
3. Upgrading System ...................................................................................................................................................................... 7
3.1. Upgrading MongoDB Server on Linux ............................................................................................................................ 7
3.1.1. Stopping Relevant Services ..................................................................................................................................... 8
3.1.2. Backing Up MongoDB Data .................................................................................................................................... 9
3.1.3. Uninstalling MongoDB Server .............................................................................................................................. 10
3.1.4. Reinstalling MongoDB Server .............................................................................................................................. 10
3.1.5. Restoring MongoDB Data ..................................................................................................................................... 14
3.2. Installing an Index Server on Linux ............................................................................................................................... 16
3.3. Installing a License Agent Server on Linux .................................................................................................................. 20
3.4. Upgrading NetBrain Application Server on Windows ............................................................................................... 21
3.4.1. Uninstalling NetBrain Application Server .......................................................................................................... 21
3.4.2. Reinstalling NetBrain Application Server ........................................................................................................... 22
3.5. Verifying Upgrade Results ............................................................................................................................................... 24
4. Appendix: Editing a File with VI Editor .................................................................................................................................. 26
5. Appendix: Dumping MongoDB data ..................................................................................................................................... 27
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 3
1. System Overview
NetBrain Integrated Edition is a brand new Thin Client system with a complete browser/server architecture,
adopting advanced distributed technologies to support large scale networks with more expansion possibilities.
The system includes the following components and services:
Browser-based Thin Client - provides user interface for end users to access the system.
NetBrain Application Server, including:
o Web Server - serves static content such as HTML, JavaScript and CSS resources, which serves as the user interface of the Thin Client. Multiple Web Servers can be installed and load-balanced under your load
balancing infrastructure.
o Web API Server - provides the front-end web applications to support the browser-based Thin Clients, and serves RESTful API calls from third-party applications for integration. Multiple Web API servers can be
installed with Web Servers and load-balanced under your load balancing infrastructure.
o Message Server - prioritizes and forwards requested tasks. High availability is supported with
master/slave nodes.
4 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
o Cache Server - provides memory cache for the system. High availability is supported with
master/slave/sentinel nodes.
o Worker Server - serves as a resource manager with system back-end business logic and infrastructures to support the distributed task processing. It relies on both Cache Server and Message Server to work.
Multiple Worker Servers can be installed and load balanced.
o Proxy Server - serves as a polling server to collect live network data. It is the only component required to
access live network.
NetBrain Database Server, including:
o MongoDB Server - serves as system data repository. High availability is supported with
primary/secondary/arbiter nodes.
o License Agent Server - provides services that validate and activate licenses. It must be installed on all
MongoDB Servers except the arbiter node.
o Index Server - serves as a full-text search and analytics engine in a distributed multi-user environment.
High availability is supported with master-eligible nodes.
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 5
2. System Requirements
Reference Specification for All-in-Two Deployments
The All-in-Two deployment requires one Windows server for applications and one Linux server for database. Both
physical machines and virtual machines are supported.
Environment NetBrain Component Machine Count CPU Memory Hard Disk Operating System 1)
≤ 1000 nodes ≤ 10 users
Application Server 1 4 Core/ 8 vCPU
16GB 200GB Windows Server 2012/2012 R2 (Standard/Datacenter Edition), 64-bit
Windows Server 2016 (Standard/Datacenter Edition), 64-bit
Database Server 1 4 Core/ 8 vCPU
16GB 300GB Red Hat Enterprise Linux (RHEL) 7.0/7.3, 64-bit
CentOS 7.0/7.2, 64-bit
1001~2000 nodes ≤ 10 users
Application Server 1 4 Core/ 8 vCPU
32GB 200GB Windows Server 2012/2012 R2 (Standard/Datacenter Edition), 64-bit
Windows Server 2016 (Standard/Datacenter Edition), 64-bit
Database Server 1 4 Core/ 8 vCPU
32GB 300GB Red Hat Enterprise Linux (RHEL) 7.0/7.3, 64-bit
CentOS 7.0/7.2, 64-bit
Note: 1) Proxy Server can be installed on Windows Server 2008 R2 SP1, 64-bit.
Network connectivity requirements
Source Destination Protocol and Port Number
Thin Client Application Server HTTP/HTTPS
Application Server Database Server TCP 27017/27654/9200
Application Server Live Network ICMP/SNMP/Telnet/SSH
6 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
Important Notes Before Deployments
In addition to the above referenced hardware specifications, please read the following notes before deploying the
system.
Windows Server:
o NetBrain Integrated Edition should not be installed on the same server as an existing NetBrain Enterprise
Edition (6.2 or earlier version).
o The operating system must be installed with an English-language version (not language packs).
o There must be more than 3GB free space in the system drive (for example, C drive) to complete the
installation no matter which drive NetBrain system will be installed on.
o Users with administrative privileges of the machine are required to implement the installation.
o Temporarily disable antivirus software during the installation process.
o If the machine's firewall is turned on, make sure the firewall rules allow traffics to all the ports and protocols
that will be used by NetBrain system.
Linux Server:
o The operating system must be installed with an English-language version (not language packs).
o More than 50GB free space in the directory where the data files of MongoDB/Index Server will be saved.
o More than 10GB free space in the directory where the log files of MongoDB/Index Server will be saved.
o Users with root privileges of the machine are required to implement the installation.
o If the machine's firewall is turned on, make sure the firewall rules allow traffics to all the ports and protocols
that will be used by NetBrain system.
Supported Web Browser:
o Google® Chrome™ version 51 or higher.
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 7
3. Upgrading System
This section mainly provides guidance on how to upgrade NetBrain Integrated Edition from 7.0 a or 7.0a1 to 7.0b1 in the All-in-Two deployment environment. The upgrade process ensures data integrity, which means that the data in the current system will be still available after the upgrade. For the upgrade of other deployment environment, you can also refer to the following major steps. During the upgrade process, if you encounter any issues, contact
NetBrain Support Team for help.
1. Upgrade MongoDB Server on Linux.
2. Install an Index Server on Linux.
3. Install a License Agent Server on Linux.
4. Upgrade NetBrain Components on Windows.
5. Verify Upgrade Results.
Note: Before upgrading your system, check its current version to avoid an incorrect upgrade.
3.1. Upgrading MongoDB Server on Linux
Complete the following steps to upgrade the MongoDB Server:
1. Stop Relevant Services.
2. Back Up MongoDB Data.
3. Uninstall MongoDB Server.
4. Reinstall MongoDB Server on Linux.
5. Restore MongoDB Data.
8 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
3.1.1. Stopping Relevant Services
To avoid any further dataset changes or data corruption while reinstalling MongoDB binary files or restoring
MongoDB data, stop the following relevant services:
1. Log in to the Windows server where NetBrain Application Server is installed and stop the following services in
the Task Manager.
ResourceManager (Worker Server service)
W3SVC (Web API Server service)
WAS (Web API Server service)
Tip: If you have deployed a cluster for high availability, stop the services on each Worker Server and Web API Server.
2. Disable the Cron task on the MongoDB Server. The Cron task is used to automatically pull up the MongoDB
service timely when it is down.
1) Log in to the Linux server where the MongoDB Server is installed as root user.
2) Open a command prompt and run the crontab -e command to edit the auto script.
[root@localhost ~]# crontab -e
*/1 * * * * /bin/bash -c 'if /usr/sbin/service mongodnetbrain status|grep -q -E "(dead)|failed"; then /usr/sbin/service mongodnetbrain start; fi' >/dev/null 2>&1
3) Add a pound sign (#) at the beginning of the auto script to comment it and save the changes.
#*/1 * * * * /bin/bash -c 'if /usr/sbin/service mongodnetbrain status|grep -q -E "(dead)|failed"; then /usr/sbin/service mongodnetbrain start; fi' >/dev/null 2>&1
3. Stop the MongoDB Service.
1) Run the service mongodnetbrain stop command to stop the MongoDB service.
Note: The default name of the MongoDB service is mongodnetbrain. If you modified it in the install.conf file during the installation, you must replace the service name accordingly.
2) Run the ps -ef|grep mongod command to verify whether the mongod process is stopped.
[root@localhost ~]# ps -ef| grep mongod root 15136 14237 0 10:42 pts/2 00:00:00 grep --color=auto mongod
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 9
Note: If the mongod process is stopped, the result should only contain one entry as shown above.
3.1.2. Backing Up MongoDB Data
Before upgrading NetBrain Integrated Edition, it is highly recommended to back up all MongoDB data in case of
any data loss or corruption during the upgrade process.
The following section introduces how to use the cp command to copy underlying MongoDB data files directly for
backup.
Notes:
– Make Sure you have stopped all relevant services before backing up data.
– The backup data will not be used to restore data during the upgrade process unless any data loss or corruption occurs.
– The backup data do not support point-in-time recovery for replica sets. Therefore, it can only be used to restore database on the same server. If you have set up a MongoDB replica set for high availability, repeat the steps below on each database server except for the arbiter node.
1. Log in to the Linux server where the MongoDB Server is installed as root user.
2. Run the following command to create a directory under the /etc directory to save the backup data.
[root@localhost ~]# mkdir /etc/mongodb_databk
3. Run the cd /opt/mongodb command to navigate to the /opt/mongodb directory.
Note: The /opt/mongodb directory is the default directory to store all MongoDB data files. If you modified it in the install.conf file during MongoDB installation, you must replace it accordingly.
4. Run the cp -R data /etc/mongodb_databk under the /opt/mongodb directory to copy all MongoDB data files
from the data directory to the /etc/mongodb_databk directory.
[root@localhost mongodb]# cp -R data /etc/mongodb_databk
5. Run the ls -al command under the etc/mongodb_databk directory to browse the backup data.
10 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
[root@localhost mongodb_databk]# ls -al total 252 drwxr-xr-x. 5 netbrain netbrain 146 Oct 19 14:49 . drwxr-xr-x. 4 root root 42 Oct 19 14:41 ..
drwxr-xr-x. 4 root root 86016 Oct 19 14:49 mongodb_databk
-rwxr-xr-x. 2 netbrain netbrain 1004 Sep 19 14:52 mongodb-keyfile -rwxr-xr-x. 1 netbrain netbrain 1076 Oct 19 14:52 mongod.conf
Tip: You can also use the mongodump tool to back up MongoDB data. See Appendix: Dumping MongoDB data for more details.
3.1.3. Uninstalling MongoDB Server
1. On the Linux server where the MongoDB Server is installed, open a command prompt and run the rpm -
qa|grep mongo command to check whether the MongoDB service exists.
2. Run the rpm -e mongodbconfig command to uninstall the MongoDB service.
Note: After the service is uninstalled, both the mongod.conf file and all data files are backed up under the /opt/mongodb directory with the timestamp if you did not modify it in the install.conf file during the MongoDB installation. You can run the ls -al command under the /opt/mongodb directory to check the backup data.
[root@localhost mongodb]# ls -al total 124 drwxr-xr-x. 3 netbrain netbrain 146 Oct 19 14:49 . drwxr-xr-x. 3 root root 42 Oct 19 14.41 .. drwxr-xr-x. 4 netbrain netbrain 86016 Oct 19 14.47 data2017|Oct|19|10:15:00 drwxr-xr-x. 1 netbrain netbrain 1147 Oct 19 14.27 mongod.conf2017|Oct|19|10:15:50
The backup data will be used to restore data after the MongoDB Server is reinstalled. See Restoring MongoDB Data for more details.
3.1.4. Reinstalling MongoDB Server
1. Log in to the Linux server as root user, open a command prompt and run the mkdir command to create a
directory under the /etc directory, for example, netbrain.
2. Run the cd /etc/netbrain command to navigate to the /etc/netbrain directory, and then copy the
NetBrain_Database.tar file into it.
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 11
Note: Make sure that the yum service has been installed.
Option 1: If the Linux server doesn't have access to the Internet:
a) Obtain the NetBrain_Database_v70b1.zip file from NetBrain and then upload it to a directory on the
Linux server by using a file transferring tool.
b) Run the yum -y install unzip command to install the unzip command.
c) Run the unzip NetBrain_Database_v70b1.zip command to unzip the file.
[root@localhost ~]# unzip NetBrain_Database_v70b1.zip Archive: NetBrain_Database_v70b1.zip inflating: NetBrain_License.tar inflating: NetBrain_Database.tar inflating: NetBrain_Index.tar [root@localhost ~]#
d) Run the cp NetBrain_Database.tar /etc/netbrain command to copy the NetBrain_Database.tar file to
the /etc/netbrain directory.
Option 2: If the Linux server has access to the Internet:
a) Run the yum -y install wget command to install the wget command.
b) Run the wget <NetBrain IE 7.0b1 Database download link> command to directly download the
NetBrain_Database_v70b1.zip file onto the Linux server.
Tip: Contact NetBrain Support Team to get the download link address.
c) Run the yum -y install unzip command to install the unzip command.
d) Run the unzip NetBrain_Database_v70b1.zip command to unzip the file.
e) Run the cp NetBrain_Database.tar /etc/netbrain command to copy the NetBrain_Database.tar file to
the /etc/netbrain directory.
12 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
3. Extract installation files from the NetBrain_Database.tar file by running the tar -xvf NetBrain_Database.tar command under the /etc/netbrain directory.
4. Run the cd NetBrain_Database command to navigate to the NetBrain_Database directory.
5. Modify the following arguments (excluding CPULimit and MemoryLimit) in the install_mongodb.conf file located under the NetBrain_Database directory to keep them consistent with those in the /etc/install.conf file used in previous installation and save the changes. See Appendix: Editing a File with VI Editor for more details.
Notes:
– The value of the DBUser and DBPassword arguments cannot contain any of the following special characters, and their length cannot exceed 64 characters. { } [ ] : " , ' | < > @ & ^ % \ and spaces
– The other string type arguments can only contain letters and numbers, and must start with a letter.
DBServiceName - the service name of the MongoDB Server. Keep the default name as it is.
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 13
DBSystemUser - the system user created on the Linux server to run the MongoDB service. Keep the default
name as it is.
DBSystemGroup - the system group created on the Linux server to run the MongoDB service. Keep the
default name as it is.
ConfPath - the storage path for the MongoDB configuration file.
DataPath - the storage path for all MongoDB data files.
Note: Make sure the destination directory has more than 50GB free space to save all the data files.
LogPath - the storage path for all MongoDB log files.
Note: Make sure the destination directory has more than 10GB free space to save all the log files.
BindIp - the IP address of the MongoDB Server.
DBPort - the port number that the MongoDB service listens to. Keep the default value as it is.
RequireSSL - whether to enable the encrypted connections to the MongoDB Server. Keep the default option
(disabled) as it is.
CertPath (required only if RequireSSL is enabled) - the certificate file name and storage path. Keep the
default value as it is.
KeyPath (required only if RequireSSL is enabled) - the key file name and storage path. Keep the default value
as it is.
DBUser - the admin user name used to log in to the MongoDB Server. By default, it is mongodb.
DBPassword - the admin password used to log in to the MongoDB Server. By default, it is mongodb.
CPULimit - the maximum CPU utilization that can be consumed by the MongoDB Server. To make both
MongoDB Server and Index Server can utilize the CPU resources of the same machine, the recommended
value is 55%.
MemoryLimit - the maximum memory capacity of the machine that can be consumed by the MongoDB
Server. To make both MongoDB Server and Index Server can utilize the memory resources of the same
machine, the recommended value is 55%.
SingleNode - control whether to enable the replica set. By default, it is Yes, which means replica set is
disabled.
ReplicaSetMembers - only required for replica set deployments.
6. Run the rm /etc/install.conf command to delete the install.conf file.
14 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
7. Run the ./install.sh script under the NetBrain_Database directory to install the MongoDB Server and initialize the MongoDB service as well as the admin user name and password.
8. Restart the machine manually by entering the reboot command.
9. After the machine starts, run the ps -ef|grep mongo or service mongodnetbrain status command to verify whether the MongoDB service starts successfully.
3.1.5. Restoring MongoDB Data
After reinstalling the MongoDB Server, complete the following steps to restore the old MongoDB data.
1. Disable the Cron task.
2. Stop the MongoDB Service.
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 15
3. Restore the old data onto the MongoDB Server.
1) Run the cd /opt/mongodb command to navigate to the /opt/mongodb directory.
Note: The /opt/mongodb directory is the default directory to store all MongoDB data files. If you modified it in the install_mongodb.conf file during the MongoDB installation, you must replace it accordingly.
2) Run the ls -al command to browse all directories and files under the /opt/mongodb directory.
[root@localhost mongodb]# ls -al total 142 drwxr-xr-x. 5 netbrain netbrain 146 Oct 19 15:02 . drwxr-xr-x. 4 root root 42 Sep 19 14:41 .. drwxr-xr-x. 4 root root 42 Oct 19 15:03 data
drwxr-xr-x. 4 root root 86016 Oct 19 14:49 data2017|Oct|19|10:15:00
drwxr-xr-x. 4 root root 100 Oct 19 15:03 log
-rwxr-xr-x. 2 netbrain netbrain 1004 Aug 25 17:26 mongodb-keyfile -rwxr-xr-x. 1 netbrain netbrain 1076 Oct 19 15:02 mongod.conf -rwxr-xr-x. 1 netbrain netbrain 1147 Oct 19 14:51 mongod.conf2017|Oct|19|10:15:50
3) Run the rm -rf ./data command to delete the data directory created during the re-installation.
4) Run the mv data2017|Oct|19|10:15:00 data command under the /opt/mongodb directory to rename the
backup data directory created during the uninstallation to data.
5) Run the ls -al command to browse all directories and files under the /opt/mongodb directory.
[root@localhost mongodb]# ls -al total 142 drwxr-xr-x. 5 netbrain netbrain 146 Oct 19 15:02 . drwxr-xr-x. 4 root root 42 Sep 19 14:41 ..
drwxr-xr-x. 4 root root 86016 Oct 19 15:03 data
drwxr-xr-x. 4 root root 100 Oct 19 15:03 log
-rwxr-xr-x. 2 netbrain netbrain 1004 Aug 25 17:26 mongodb-keyfile -rwxr-xr-x. 1 netbrain netbrain 1076 Oct 19 15:02 mongod.conf -rwxr-xr-x. 1 netbrain netbrain 1147 Oct 19 14:51 mongod.conf2017|Oct|19|10:15:50
4. Run the service mongodnetbrain start command to restart the MongoDB service.
5. Enable the Cron task.
1) Run the crontab -e command to edit the auto script.
[root@localhost ~]# crontab -e
#*/1 * * * * /bin/bash -c 'if /usr/sbin/service mongodnetbrain status|grep -q -E "(dead)|failed"; then /usr/sbin/service mongodnetbrain start; fi' >/dev/null 2>&1
2) Remove the pound sign (#) from the beginning of the auto script and save the changes.
16 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
*/1 * * * * /bin/bash -c 'if /usr/sbin/service mongodnetbrain status|grep -q -E "(dead)|failed"; then /usr/sbin/service mongodnetbrain start; fi' >/dev/null 2>&1
6. Run the following command to connect to the MongoDB Server and check its status.
mongo -u mongodb -p mongodb –authenticationDatabase admin <IP or hostname of the MongoDB Server>
For example:
[root@localhost ~]# mongo -u mongodb -p mongodb –authenticationDatabase admin 127.0.0.1:27017 MongoDB shell version: 3.2.4 connecting to: 127.0.0.1:27017/test Welcome to the MongoDB shell.
3.2. Installing an Index Server on Linux
The Index Server is a new server component introduced since NetBrain Integrated Edition 7.0b, which serves as a
full-text search and analytics engine.
1. Log in to the Linux server as root user, open a command prompt and then run the cd /etc/netbrain
command to navigate to the /etc/netbrain directory.
2. Copy the NetBrain_Index.tar file into the /etc/netbrain directory.
Option 1: If the Linux server doesn't have access to the Internet:
Obtain the NetBrain_Index.tar file in the installation package and upload it to the /etc/netbrain directory
that you created by using a file transferring tool.
Option 2: If the Linux server has access to the Internet:
Run the cp NetBrain_Index.tar /etc/netbrain command under the download directory in Section 3.1.4
to copy the NetBrain_Index.tar file to the /etc/netbrain directory.
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 17
3. Extract installation files from the NetBrain_Index.tar file by running the tar -xvf NetBrain_Index.tar command under the /etc/netbrain directory.
4. Run the cd NetBrain_Index command to navigate to the NetBrain_Index directory.
5. Modify the following parameters in the install.conf file located under the NetBrain_Index directory based on your needs and save the changes. See Appendix: Editing a File with VI Editor for more details.
ESSystemUser - the system user created on the Linux server to run the service of the Index Server. Keep the
default name as it is.
ESSystemGroup - the system user created on the Linux server to run the service of the Index Server. Keep
the default name as it is.
InstallPath - the storage path for all binary and other installation files of the Index Server. Keep the default
path as it is.
ServiceName - the service name of the Index Server. Keep the default name as it is.
18 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
ClusterName - a unique name of the cluster. Keep the default name as it is.
NodeName - a unique name of the node. Keep the default name as it is.
User - the admin user name used to log in to the Index Server. By default, it is admin.
Note: The username and password cannot contain any of the following special characters, and its length cannot exceed 64 characters.
{ } [ ] : " , ' | < > @ & ^ % \ and spaces
Password - the admin password used to log in to the Index Server. By default, it is admin.
DataPath - the storage path for all data files of the Index Server.
Note: It is recommended to keep the default path as it is. If you want to modify it, don't use an existing directory and make sure the directory has more than 50GB free space to save all the data files.
LogPath - the storage path for all log files of the Index Server.
Note: It is recommended to keep the default path as it is. If you want to modify it, don't use an existing directory and make sure the directory has more than 10GB free space to save all the log files.
BindIp - the IP address of the Index Server.
Note: If you modify the argument to 0.0.0.0, you must use the fully qualified domain name (FQDN) to connect to the Index Server when installing the Application Server.
Port - the port number that the service of the Index Server listens to. Keep the default value as it is.
CPULimit - the maximum CPU utilization that can be consumed by the Index Server. To make both
MongoDB Server and Index Server can utilize the CPU resources of the same machine, the recommended value is 35%. And the sum of CPU utilization allocated to the MongoDB Server and Index Server cannot
exceed 90% of the machine's CPU.
MemoryLimit - the maximum memory capacity of the machine that can be consumed by the Index Server. To make both the MongoDB Server and Index Server can utilize the memory resources of the same
machine, it is recommended to use the following formula to calculate the value:
M * 35% * 50% (in GB), where M is the total memory of the machine on which the MongoDB Server and
Index Server are installed.
SingleNode - control whether to enable the cluster deployment. By default, it is Yes, which means cluster
deployment is disabled.
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 19
ClusterMembers - required only for cluster deployments.
MasterOnlyNode - required only for cluster deployments.
6. Run the ./install.sh script under the NetBrain_Index directory to install the Index Server and initialize the
user name as well as password.
1) A minimum JDK environment jdk1.8.0_121 must be pre-installed for the Index Server installation. To ensure
the installation process can go on smoothly, jdk1.8.0_121 is packaged with the Index Server.
If no JDK environment has been installed on your machine, type y to confirm the installation.
If a JDK environment higher than jdk1.8.0_121 has been installed on your machine, the JDK environment
will be used directly.
If several JDK environments lower than jdk1.8.0_121 have been installed on your machine, they will be automatically listed as follows. The current selected JDK is marked with "*+" characters. To install the jdk1.8.0_121, enter its sequence number and press the Enter key. In this example, enter 3.
2) After the JDK environment is set up, the script starts to install the Index Server and initialize the login username and password.
20 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
7. Run the following command to verify whether the service of the Index Server works normally.
curl -s -XGET -user <user:password> http://<IP address of Index Server>:9200
For example:
[root@localhost NetBrain_Index]# curl -s -XGET --user admin:admin http://10.10.3.142:9200 { "name": "node1", "cluster_name" : "elastic-search-cluster", "cluster_uuid" : "bnWhEVkTQ_WrJP8fj4NyKQ",
"version" : {
“number” : “5.2.1”, “build_hash” : "db0b481", "build_date" : "2017-02-09T22:05:32.386Z", "build_snapshot" : false,
"lucene_version" : “6.4.1”
},
“tagline”: “You Know, for Search” }
Tip: You can set up an Index Server cluster for high availability. For more details regarding the cluster deployment, see the document NetBrain_Quick_Setup_Guide_HA delivered in 7.0b1.
3.3. Installing a License Agent Server on Linux
The License Agent Server is a new server component introduced since NetBrain Integrated Edition 7.0b, which
provides services that validate and activate licenses.
1. Log in to the Linux server as root user, open a command prompt and then run the cd /etc/netbrain
command to navigate to the /etc/netbrain directory.
Note: If a MongoDB replica set has been deployed, you must install the License Agent Server on both primary and secondary nodes.
2. Copy the NetBrain_License.tar file into the /etc/netbrain directory.
Option 1: If the Linux server doesn't have access to the Internet:
Obtain the NetBrain_License.tar file in the installation package and upload it to the /etc/netbrain directory
that you created by using a file transferring tool.
Option 2: If the Linux server has access to the Internet:
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 21
Run the cp NetBrain_License.tar /etc/netbrain command under the download directory in Section 3.1.4
to copy the NetBrain_License.tar file to the /etc/netbrain directory.
3. Extract installation files from the NetBrain_License.tar file by running the tar -xvf NetBrain_License.tar command under the /etc/netbrain directory.
4. Run the cd NetBrain_License command to navigate to the NetBrain_License directory.
5. Run the ./install.sh script under the NetBrain_License directory to install the License Agent Server.
3.4. Upgrading NetBrain Application Server on Windows
Complete the following steps to upgrade the Application Server:
1. Uninstall NetBrain Application Server.
2. Reinstall NetBrain Application Server.
3.4.1. Uninstalling NetBrain Application Server
1. Log in to the Windows server where NetBrain Application Server installed.
2. Stop the following services in the Task Manager.
Redis (Cache Server service)
RabbitMQ (Message Server service)
22 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
proxyserverie (Proxy Server service)
3. Uninstall the Cache Server, Message Server, IE (including Web/Web API/Worker Servers), and Proxy Server from the Windows server orderly with existing user data cleared up. Take uninstalling IE from Windows Server 2012
R2 for example.
Tips:
– The Web/Web API/Worker Servers will be uninstalled together.
– The uninstallation time may vary depending on the size of the log folder on this server. If you manually delete the log folder under the NetBrain_Home\Worker Server directory, where NetBrain_Home is the root directory where the Application Server is installed, the uninstallation process will take much less time.
1) Click the Windows start menu and then click the icon to open the Apps pane.
2) Right-click the Uninstall NetBrain IE app in the pane and select Run as administrator from the list to launch
the Installation Wizard.
3) Select the Delete all existing settings check box and click Uninstall.
4) Click Finish to exit the Installation Wizard.
3.4.2. Reinstalling NetBrain Application Server
Complete the following steps with administrative privileges:
1. Obtain the installation package from NetBrain and save it in your local folder.
2. Right-click the NetBrain_Application_Setup.exe file and select Run as Administrator to launch the Installation
Wizard.
3. Follow the Installation Wizard to complete the installation step by step:
1) On the Welcome page, click Next.
2) On the System Configuration page, review the system configuration summary and click Next.
3) On the License Agreement page, read the license agreement and click I AGREE.
4) Click Next to install the Application Server under the default path, which is C:\Program Files\NetBrain\. If
you want to install them under another location, click Change.
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 23
Note: If you select to install it under another drive, make sure there are no spaces in the installation path. For example: D:\Program Files\ is not allowed and you can rename it to D:\Program_Files\.
5) On the MongoDB Server Connection page, enter the following information to connect to the MongoDB
Server and click Next.
IP Address - enter the IP address of the MongoDB Server and the corresponding port number.
User Name - enter the admin user name that you created when installing the MongoDB Server.
Password - enter the admin password that you created when installing the MongoDB Server.
ReplicaSet Name - enter the replica set name of the MongoDB Server. By default, it is rsnetbrain.
Use SSL - used to encrypt the connections to the MongoDB Server with SSL. Leave it unchecked.
6) On the License Agent Server Connection page, enter the following information to connect to the License
Agent Server, and click Next.
Use License Agent - used to control whether to use the License Agent Server for license validation. Keep
it checked.
License Agent port - the port number that the service of the License Agent Server listens to. By default, it
is 27654.
Use SSL - used to encrypt the connections to the License Agent Server with SSL. Leave it unchecked.
7) On the Index Server Connection page, enter the following information to connect to the Index Server and
click Next.
IP Address - enter the IP address of the Index Server and the corresponding port number.
Tip: You can enter the fully qualified domain name (FQDN) of the Index Server if all NetBrain servers are managed in the same domain. For example, test.netbraintech.com:9200.
User Name - enter the admin user name that you created when installing the Index Server.
Password - enter the admin password that you created when installing the Index Server.
8) Review the server components to be installed and click Install.
9) Click Finish to complete the installation process and exit the Installation Wizard.
24 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
3.5. Verifying Upgrade Results
After the upgrade process is finished, you can simply verify the system version from either of the following
locations:
Method 1: Verify IE Version in Web UI
1. In your web browser, navigate to http(s)://<IP address of NetBrain Application Server>/ to log in to the end user
page.
2. Click the icon and select About NetBrain from the quick access toolbar.
3. Check the version information in the About NetBrain dialog.
Method 2: Verify System Version in MongoDB
1. Log in to the Linux server where the MongoDB Server is installed.
2. Open a command prompt, and run the following command to connect to the MongoDB Server.
mongo -u mongodb -p mongodb –authenticationDatabase admin <IP or hostname of the MongoDB Server>
For example:
[root@localhost ~]# mongo -u mongodb -p mongodb --authenticationDatabase admin 127.0.0.1:27017 MongoDB shell version: 3.2.4 connecting to: 127.0.0.1:27017/test rsnetbrain:PRIMARY>
3. Run the use NGSystem command to switch to the NGsystem database.
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 25
rsnetbrain:PRIMARY> use NGSystem switched to db NGSystem
4. Run the rsnetbrain:PRIMARY> db.SystemInfo.find({_id: "SystemVersion"}) command to browse the
system version information.
rsnetbrain:PRIMARY> db.SystemInfo.find({_id: "SystemVersion"}) { "_id" : "SystemVersion", "version" : "7.0b1", "operateInfo" : { "opTime" : ISODate("2017-08-14T14:14:15.061Z"), "opUser" : "NetBrain" } }
26 | NetBrain Integrated Edition 7.0b1 Upgrade Instructions
4. Appendix: Editing a File with VI Editor
The following steps illustrate how to edit a configuration file with the vi editor, which is the default tool of a Linux
operating system.
1. Create a terminal and run the cd command at the command line to navigate to the directory where the
configuration file is located.
2. Run the cat <configuration file name> command under the directory to view contents of the configuration
file.
3. Run the vi <configuration file name> command under the directory to enter the editing mode of the
configuration file.
4. Press the Insert key on your keyboard to modify the file based on your needs.
5. Press the ESC key to exit the editing mode of the file.
6. Enter the :wq! command and press the Enter key to save the changes.
NetBrain Integrated Edition 7.0b1 Upgrade Instructions | 27
5. Appendix: Dumping MongoDB data
The built-in MongoDB command mongodump is a simple and efficient tool for backing up a small volume of MongoDB data. However, for a large volume of data, it is more time-consuming than using the cp command to
copy data files from the MongoDB Server directly.
Notes:
– Make sure the mongodnetbrain service is running when you run the mongodump command.
– The data you dumped out can be used to restore data in any server. If you have set up a MongoDB replica set for high availability, you only need to dump data from the primary node.
1. Log in to the Linux server where the MongoDB Server is installed as root user.
2. Open a command prompt and run the following command to create a directory under the /etc directory to
save the backup data.
[root@localhost ~]# mkdir /etc/mongodb_databk
3. Enter the following command in one line and run it to dump the MongoDB data to the /etc/mongodb_databk
directory.
mongodump -host <ip>:<port> -u <username> -p <password> --gzip -out <filepath>
For example:
[root@localhost ~]# mongodump --host 127.0.0.1 --port 27017 -u mongodb -p mongodb --authenticationDatabase admin --gzip --out /etc/mongodb_databk
4. Verify the backup result.
1) Run the cd /etc/mongodb_databk command to navigate to the /etc/mongodb_databk directory.
2) Run the ls -al command under the mongodb directory to browse the backup data.