This section describes how to update the NP-View Server application and the underlying components if the OVF was used for the initial installation.
To update an existing NP-View Application, the steps are:
sudo -i
sh NP-View_installer.sh
(where NP-View_installer.sh is the name of the new release file downloaded in step 1).To check the version update your server URL to the following
https://<np-view_server_address>/version
/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 the OVF was used for the initial installation, that package included the CentOS 7 operating system and Docker. These applications must be updated separately from the NP-View Server Application using the below instructions. The instructions cover NP-View Servers that have internet access and those that do not have internet access.
CentOS will be EOL June 30, 2024. We recommend customers to transition to Ubuntu. Our new OVF uses Ubuntu and instructions for updating Ubuntu will be coming soon.
– stop NP-Viewcd /opt/np-live/
./stop_NP-Live.sh
– run all updatesyum update -y
– reboot serverreboot
If NP-View server is installed in an environment that does not have internet access, a separate Centos 7 server with Docker that has internet access is required to create the update package. All commands below are case sensitive.
Network-Perception uses this mirror for CentOS updates and this mirror for Docker updates
– make sure you are rootsudo su -
– create packages directorycd /root/
mkdir packages
cd packages
– download all packagesyum list installed | awk {'print $1; }' | tail -n +3 | xargs yumdownloader
– you should see docker included in the output list.
– compress archive (capital -C is important)tar czf /root/packages.tar.gz *.rpm -C /root/packages/
– Copy packages.tar.gz to the offline server. The user can use the below command to scp:scp packages.tar.gz root@ipAddress:/root/
– make sure you are rootsudo su -
– stop NP-Viewcd /opt/np-live/
./stop_NP-Live.sh
– create directory and extract the archivecd /root/
mkdir packages/
mv packages.tar.gz packages/
cd packages/
tar -xf packages.tar.gz
– install all updates:yum -y localinstall *.rpm
– reboot serverreboot
– now everything is up to date on the offline server.
If you get any docker swarm errors:
– make sure you are rootsudo su -
– leave and join swarm clusterdocker swarm leave --force && docker swarm init