This article explains how to autoupdate JSA/STRM when there is no connection available to the Juniper autoupdate server.
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.
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 ).
/transient/autoupdate
*(JSA Signatures)
root
/transient
mkdir /transient/autoupdate
cd /opt/qradar/www mkdir -p software/strm/ cd /opt/qradar/www/software/strm ln -s /transient/autoupdate autoupdate
cd /opt/qradar/www mkdir -p software/strm/ cd /opt/qradar/www/software/strm
ln -s /transient/autoupdate autoupdate
tar -zxf autoupdate-####.tgz
Example: tar -zxvf autoupdate- 1619554077 .tgz
tar -zxvf autoupdate-
.tgz
Change file permission and ownership:
chown -R root:siem /transient/autoupdate/ chmod -R 777 /transient/autoupdate/
chown -R root:siem
https://localhost/ or https://127.0.0.1/
*(If the above doesn't work try with Console IP Address : https:// <Console-IP-Addr> / )
software/strm/autoupdate/
The JSA auto-update directory is created, the auto-update package downloaded, and the configuration for auto-updates is complete.
Copy the autoupdate-XX.tgz file to the /transient/autoupdate directory as the file size is almost 4.5GB.
autoupdate-XX.tgz
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:
/opt/qradar/www/software/strm/autoupdate/
mkdir /opt/qradar/www/software/ mkdir /opt/qradar/www/software/strm/ ln -s /transient/autoupdate autoupdate
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.
/opt
Then un-tar the file in the /transient/autoupdate/ directory:
/transient/autoupdate/
cd /transient/autoupdate/ tar -zxvf autoupdate-10102019.tgz
Validate if all the files are present under /transient/autoupdate/ :
cd /transient/autoupdate/ ls -la
Change file ownership and permission:
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.”
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.
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
autoupdate