NP-View Server has been designed to be easily installed by a single person who has moderate Linux skills. This article provides step-by-step instructions on the installation process, which includes:
NP-View is accessed through a web browser (Edge, Chrome, Firefox) running on a modern operating system (Windows 10 or later, macOS 11 Big Sur or later, Ubuntu 20 or later) with a recommended configuration of a 10th Gen Quad Core Processor and 16GB of RAM.
The following table documents the CPU, memory, and disk requirements based on the number of network device configuration files monitored by NP-View server:
Greater than 1,000 devices please contact support to discuss requirements.
Recommended as the minimum for most Professional Server users.
Note: loading and analyzing devices utilizes the majority of the CPU and Memory capacity. The higher the server capacity and the faster the CPU, the faster devices will load and be analyzed.
The following ports are used by NP-View server. Please ensure these ports are open on your firewall for proper communication.
Required ports:
Optional ports:
The source IP should be the client workstation that will access NP-View and the destination IP should be the NP-View Linux server.
Sign up on the Portal website to download the latest version of NP-View server and the license key. A SHA256 checksum is supplied with each download by clicking on the “show checksum” link. You can calculate the checksum on the files you download to verify their integrity:
Get-FileHash /the/full/path/to/your/file/name/extension | Format-List
sha256sum /the/full/path/to/your/file/name/extension
shasum -a 256 /full/path/to/your/file/name/extension
NP-View server is a Linux application. It can be installed on a virtual machine or physical hardware. There are 2 package formats available:
The NP-View OVF uses Ubuntu Server 22.04 LTS or later. Root access is provided (see the text file provided with the .OVF) so the operating system can be periodically updated. This option should be used for new installations. The NP-View Linux installer is used to update NP-View on an existing system or for a new install on a Linux server.
Note: Network Perception does not recommend running NP-View in a double virtualized environment (Linux VM encapsulated within a Windows VM) as the operation of connectors, notifications and external interfaces can be unpredictable.
Once downloaded from the portal, follow the steps below to complete the install:
Once the Virtual Appliance OVF file has been downloaded from the portal, follow the steps below to complete set up:
Note: A static IP may need to be configured before utilizing the user interface.
NP-View listens on both port TCP/80 (HTTP) and TCP/443 (HTTPS). For HTTPS, it uses a self-signed SSL certificate by default. Users can also provide their own SSL certificate by simply copying a valid .pem
file into the NP-View db
folder. If using HTTPS, the best practice is to disable HTTP or forward HTTP to HTTPS.
The following command can be used to generate a valid .pem
file:
openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem
To learn more about generating your own SSL certificate, please visit python documentation.
Please note that .pem
file should include both the private key and the full certificate. If you received the private key and the certificate as two or more separate files, you can concatenate them into a single .pem
file.
By default, the Virtual Appliance install creates the file `/opt/np-live/local-settings.yml`, set to America/Chicago. This file needs to be updated to reflect your local time zone. To change to a different time zone, log into the server using SSH and become root with the command sudo -i
. You can then perform the following updates.
Update TZ= to a value from timedatectl list-timezones
version: '3.4'
x-environment-tz: &timezone
TZ=America/Chicago
services:
manager:
environment:
- *timezone
report:
environment:
- *timezone
webserver:
environment:
- *timezone
redis:
environment:
- *timezone
monitor:
environment:
- *timezone
Once you have set the new time zone, you can restart NP-Live with the command /opt/np-live/stop_NP-Live.sh
and then /opt/np-live/start_NP-Live.sh
Please reference minimum requirements, the higher the resources the better the performance.
If a server upgrade or restart fails due to lack of disk space, please perform the following clean-up procedure:
NP-View does not automatically delete log files, the Linux system admin may wish to schedule the above commands in a periodic CRON job to maintain optimal performance.
If server upgrade or restart issues continue to occur, please reach out to the Tech Support team.
As the NP-View OVF is typically installed within a secure environment, the disk is not encrypted by default for data at rest. The Linux Admin can encrypt the system drive for increased security knowing that system performance will be slightly degraded to accommodate the data decryption and encryption.
To add a custom message to the login page, a NP-View administrator can edit the file /opt/np-live/docker-compose.yml with the following entry in the webserver environment section: “- banner=Welcome to NP-view”
For NP-View, the file ~/Documents/np-live/config.ini can be edited to add: “banner=Welcome to NP-View”
When users upload a file through the Web user interface, NP-View will enforce a maximum file size which is 200MB by default. To change it, a NP-View Linux administrator can edit the file /opt/np-live/docker-compose.yml with the following entry in the webserver environment section: “- MAX_IMPORT_SIZE=209715200”. The value is in bytes, so 209715200 corresponds to 200MB.
/opt/np-live/stop_nplive.sh
)/opt/np-live/
, run the command: tar -zcf db_backup_$(date '+%Y_%m_%d').tgz db
(this command may take few minutes to complete)If you wish to completely remove NP-View from you server to start with a fresh install, perform the following steps:
docker system prune -a
as root (WARNING: this will completely reset Docker, so if non NP-View containers have been added they will be deleted as well)rm -rf /opt/np-live
as root (WARNING: the NP-View database will be permanently deleted)