If the Director node is installed in a closed environment that does not have access to the internet, you can manually download an SPack to your system using a browser or by issuing a shell command.


Note: 1. To download the SPack, you must use the exact SPack version number and Flavor (Sample OR Premium)

          2. Since the file is being downloaded and uploaded by Manual way, we need to create an additional SHA1                      checksum file with UTF-8 encoding which is a mandatory requirement. (If this was being downloaded                          Automatically | Directly, VOS | Director would automatically compute checksum and create a file)


DOWNLOAD SPack


1. LINUX | SHELL ->


To download an SPack from the shell on a Linux, issue the following command. 

In the example below, 2230 is the SPack version number. Either type the command on a single line or use a backslash (\) to indicate that the command continues on the next line.


wget \

'https://spack.versanetworks.com/versa-updates?action=download-spack-version-ex&current-api-version=11&current-version=2230&flavor=premium' \

-O 'versa-security-package-2230.tbz2'


wget 'https://spack.versanetworks.com/versa-updates?action=download-spack-version-ex&current-api-version=11&current-version=2230&flavor=sample' -O 'versa-security-package-2230.tbz2'


2. BROWSER | PC ->


Use the below URL to download the file, 


https://spack.versanetworks.com/versa-updates?action=download-spack-version-ex&current-api-version=11&current-version=2230&flavor=premium


https://spack.versanetworks.com/versa-updates?action=download-spack-version-ex&current-api-version=11&current-version=2230&flavor=sample


    Note: If the browser prompts you to choose a filename, enter the name versa-security-package-2230.tbz2 If not                     edit the file name manually and make sure that the file type is Compressed Archive Folder

              



CREATING CHECKSUM FILE AND VERIFYING ENCODING


1. LINUX | SHELL ->


In the downloaded folder use the below command as an example, 

sha1sum versa-security-package-2230.tbz2 | awk {'print$1'} >> /tmp/versa-security-package-2230.tbz2.sha1


This will create a checksum file named versa-security-package-2230.tbz2.sha1


Verify the Encoding by using below

command -> file versa-security-package-2230.tbz2.sha1

Output      -> versa-security-package-2230.tbz2.sha1: ASCII text


It should show ASCII text as highlighted above 


2. BROWSER | PC ->


Use the below URL to access the Hash value,


 https://spack.versanetworks.com/versa-updates?action=download-spack-version-ex&current-api-version=11&current-version=2230&flavor=sample&type=sha1


This will show the Hash Value in the Browser. Right Click and Save as Type All Files with the given name (Do not save as TXT file),




Verify the Encoding by using below 


Open the file using Notepad and from the View Menu, Status Bar should be checked. If yes, then the encoding will be displayed at the bottom right status bar. As per image below it shows UTF-8




UPLOAD FILE TO DIRECTOR


Use the below DOC on how to upload the SPack and Checksum file, 

https://docs.versa-networks.com/Management_and_Orchestration/Versa_Director/Configuration/Use_Security_Packages_(SPacks)#Manually_Upload_an_SPack