Description

This article explains how to autoupdate JSA/STRM when there is no connection available to the Juniper autoupdate server.

Symptoms

Often due to security reasons, JSA/STRM is not allowed to access the Internet (hence there is no access to Juniper autoupdate site). In this case, setting up a local repository is possible.

Solution

Note:  The autoupdate file size is approximately > 5.5GB . Make sure you transfer the file to a partition/directory that has enough disk space available (for ex. /transient/autoupdate ).

  • ​Download the autoupdate package from Juniper Customer Support *(JSA Signatures)
  • Log in to JSA as the root user. Create a directory in /transient (ex. mkdir /transient/autoupdate )
  • Type the following command to create the autoupdate directory and a soft-link to it:

       cd /opt/qradar/www
       mkdir -p software/strm/
       cd /opt/qradar/www/software/strm

       ln -s /transient/autoupdate autoupdate

  • Save the autoupdate package file on your JSA server in the /transient/autoupdate directory, and then un-tar the file in the directory that you created.
  • On your JSA console, type the following command to decompress the auto-update package:

     tar -zxf autoupdate-####.tgz

           Example:  tar -zxvf autoupdate- 1619554077 .tgz

  • Change file permission and ownership:
chown -R root:siem /transient/autoupdate/    
chmod -R 777 /transient/autoupdate/
  • Log in to the JSA UI.
  • From the navigation menu ( alt ), click  Admin  to open the Admin tab.
  • In the System Configuration section, click  Auto Update.
  • Click  Change Settings , and click the Advanced  tab.
  • In the Web Server field, type https://localhost/ or https://127.0.0.1/ and make sure you include forward slashes as shown.

           *(If the above doesn't work try with Console IP Address : https:// <Console-IP-Addr> / )

  • In the Directory field, type  software/strm/autoupdate/ and make sure you include forward slashes as shown.
  • Click  Save . You will receive a blue notification, which is normal.
  • Click  Check for Updates  from the left menu.
  • Click the Get New Updates  button.

The JSA auto-update directory is created, the auto-update package downloaded, and the configuration for auto-updates is complete.
 

Screenshot and Lab Results:

  • Copy the autoupdate-XX.tgz file to the /transient/autoupdate directory as the file size is almost 4.5GB.

mkdir /transient/autoupdate
  • By default, /opt/qradar/www/software/strm/autoupdate/ will not be present. You will need to create the directory as shown in the screenshot below:

mkdir /opt/qradar/www/software/
mkdir /opt/qradar/www/software/strm/
ln -s /transient/autoupdate autoupdate

alt

Note: Create a soft link with the help of the above command as, by default, the /opt directory has less disk space. Copying the autoupdate files in the /opt directory can cause disk space outage issue and may impact the services in JSA.

  • Then un-tar the file in the /transient/autoupdate/ directory:

cd /transient/autoupdate/
tar -zxvf autoupdate-10102019.tgz 

alt

  • Validate if all the files are present under /transient/autoupdate/ :

cd /transient/autoupdate/​
ls -la

alt

  • Change file ownership and permission:​

chown -R root:siem /transient/autoupdate/    
chmod -R 777 /transient/autoupdate/
  • From the JSA GUI: Go to Admin > Auto Update > Change Settings > Advanced > Make the changes and Save.

Web Server : https://localhost/ or https://127.0.0.1/ or https:// <Console-IP-Addr> /
Directory : software/strm/autoupdate/

  • Now go to Auto Update > Check for Updates > Click on Get New Updates. You will see the latest date and timestamp for the “Updates were Installed.”

alt

Note:  If there are multiple JSA installations in your network (such as distributed and/or HA installation), you do not have to create a local repository on all the devices. Dedicate one JSA as an auto-update server and on the additional JSAs, point the URL in the WebUI to the dedicated JSA auto-update server.

Modification History

2021-05-05: Updated ownership and permission of  autoupdate  directory, included Console IP Addr as alternative, updated latest screenshots and lab results.
2021-02-22: Corrected syntax in step 4 from /transient to /transient/autoupdate
2019-12-06: Corrected the commands for updating ownership and permission of autoupdate directory
2019-10-30: Updated for JSA

Related Information