This article describes how to install policy templates offline when there is no internet connectivity or when connected via proxy server.
Opening the file ( /var/db/idpd/sec-download/sub-download/SignatureUpdate.xml ) fails with this message:
/var/db/idpd/sec-download/sub-download/SignatureUpdate.xml
No such file or directory
Perform offline signature update and install the database. Performing offline signature update on SRX devices is described in detail in KB32399 - [SRX] How to update IDP Signature Database off-line [juniper.net] .
To install the policy templates offline, perform the following steps:
All the required files are copied and unzipped once you installed the offline package as per above KB32399 [juniper.net] .
Run the following command to install the policy templates: CLI> request security idp security-package install policy-templates
Run the following command to install the policy templates:
CLI> request security idp security-package install policy-templates
Check the install status: cli> request security idp security-package install status Done;policy-templates has been successfully updated into internal repository (=>/var/db/scripts/commit/templates.xsl)!
Check the install status:
cli> request security idp security-package install status Done;policy-templates has been successfully updated into internal repository (=>/var/db/scripts/commit/templates.xsl)!
Check the policy template version using the following command:
CLI> show security idp security-package-version
Sometimes a user may come across the following error:
# run request security idp security-package install policy-templates opening file(/var/db/idpd/sec-download/sub-download/SignatureUpdate.xml) failed;No such file or directory
This is because SignatureUpdate.xml is not copied to the /var/db/idpd/sec-download/sub-download/ directory.
SignatureUpdate.xml
/var/db/idpd/sec-download/sub-download/
In this case, you can manually copy the SignatureUpdate.xml and templates.xml and try to update again. Follow the steps given here:
templates.xml
Unzip SignatureUpdate.xml.gz & templates.xml.gz in the offline-update package.
SignatureUpdate.xml.gz & templates.xml.gz
Transfer the templates.xml and SignatureUpdate.xml to /var/db/idpd/sec-download/sub-download/ :
# run file list /var/db/idpd/sec-download/sub-download/ /var/db/idpd/sec-download/sub-download/: SignatureUpdate.xml* templates.xml*
Run the following command to install policy templates:
# run request security idp security-package install policy-templates
This is processed in async mode. Check the status using the CLI.
# run request security idp security-package install status Done;policy-templates has been successfully updated into internal repository (=>/var/db/scripts/commit/templates.xsl)!
If you require additional assistance, contact Support .
2020/07/27: Article reviewed for accuracy; changes per the latest Junos OS release made; links updated