This article explains the procedure to install SPACK offline, while the FlexVNF does not have Internet access to download SPACK online.
Prerequisite
Any FlexVNF should have Internet access to download the SPACK.
Procedure to download SPACK:
This process to follow in the branch has Internet availability to download the required SPACK version.
Apply below configuration in the FlexVNF has internet access:
set security security-package url https://spack.versanetworks.com/versa-updates set security security-package flavor sample
Download the SPACK by specifying the version required. This command below to download SPACK version 1854
request security security-package download version number 1854
Monitor the download status with the below command, and wait for the download to complete 100% this process will take few seconds to download. Based on the Internet bandwidth availability.
request security security-package download status admin@SDWAN-Branch1-cli> request security security-package download status download-status [Status: OK] download-status [Total download attempts: 17] download-status [Total successful downloads: 6] download-status [Last download version: 1854] download-status [Last downloaded by: admin] download-status [Last download start time: 2022-01-19 21:06:26] download-status [Last download end time: 2022-01-19 21:06:35] download-status [Last download status: OK] download-status [Last download message: Download successful] download-status [Last downloaded filename: /opt/versa/etc/spack/downloads/versa-security-package-1854.tbz2] download-status [Last download size(bytes): 162281782] download-status [Last download percent: 100]
Once the download is successful, got to the path mentioned below and check the download files. This are the two files to be copied to the FlexVNF where SPACK upgrade is required.
cd /opt/versa/etc/spack/downloads/ -rw-r--r-- 1 versa versa 162281782 Jan 19 21:06 versa-security-package-1854.tbz2 -rw-r--r-- 1 versa versa 41 Jan 19 21:06 versa-security-package-1854.tbz2.sha1
Procedure to install SPACK:
Process to follow to install the SPACK. Files downloaded in the above steps to be copied to FlexVNF via SCP/SFTP/FTP or via USB or any method.
SPACK files to be copied to the path /opt/versa/etc/spack/downloads/ as mentioned below. For example: 1911 is used to explain the process.
Run the below command to start installing the SPACK version 1911 (In your case version can be anything)
request security security-package install version number 1911
The status of installation can be checked with the command and wait till the installation is completed successfully. The installation process will run about one or two minute to finish.
request security security-package install status
Once the installation is completed can also check this history of SPACK installation, to confirm the correct version is installed.
show security security-package security-package-history
END OF DOCUMENT