Update IDP in the secondary node of a SRX High Availability cluster.
Perform the instructions below to sync up the attack signature database on the secondary node:
With Junos 12.1, the attack database version on each node of a Chassis Cluster should match. However, if they are not in sync, re- download and re- install the attack signature database on the primary node, and it will be automatically synced to the secondary node. For instructions, refer to Section II Download and install the Signature Database of KB16489 - Quick Setup Guide for Configuring IDP on a SRX [juniper.net] .
The Secondary node is not able to connect to the Internet of non-running routing subsystem, but it always accepts data from the primary. We can use this ability of the HA secondary node to accept the IDP update files from the Primary node i.e. Node0 in this example, which is up-to-date in IDP: Go to the shell prompt: [primary node0] >start shell Login as the super user by typing "su": %su password: <enter password> Copy the following from node0 to node1: %rcp -r -T /var/db/idpd/sec-download/* node1:/var/db/idpd/sec-download/ The rcp is a slow copy method, and the database is usually mostly 20MB+, so it will take time to finish. NOTE: If an older version of the Attack Database exists on the secondary node i.e. node1, you may get an error similar to this: cp: /var/db/idpd/sec-download/SignatureUpdate.xml and /var/db/idpd/sec-download/SignatureUpdate.xml are identical (not copied) If so, then remove the attack database from the secondary node1, and then run the RCP command again: %rm -rf node1:/var/db/idpd/sec-download/* %rcp -r -T /var/db/idpd/sec-download/* node1:/var/db/idpd/sec-download/ Note: The above commands are run from the shell mode, indicated by the "%" sign. If upgrade on primary is done using NSM, the attack database will be stored at location /var/db/idpd/nsm-download/. In this case use: %rcp -r -T /var/db/idpd/nsm-download/* node1:/var/db/idpd/sec-download/ Once it completes, then go the CLI and type this command: [primary node0] >request security idp security-package install node 1 If policy-templates are being used, then also run this command: >request security idp security-package install policy-templates node 1 Check the installation status using the command: [primary node0] >request security idp security-package install status After the completion of the installation, verify the IDP security package in node 1 using the command: [primary node0] >show security idp security-package-version This will give you the complete details about the package installed. For example: root> show security idp security-package-version node0: -------------------------------------------------------------------------- Attack database version:2108(Thu Mar 29 12:47:45 2012) Detector version :12.6.160120213 Policy template version :2108 node1: -------------------------------------------------------------------------- Attack database version:2108(Thu Mar 29 12:47:45 2012) Detector version :12.6.160120213 Policy template version :2108
[primary node0] >start shell
%su password: <enter password>
%rcp -r -T /var/db/idpd/sec-download/* node1:/var/db/idpd/sec-download/
The rcp is a slow copy method, and the database is usually mostly 20MB+, so it will take time to finish.
NOTE: If an older version of the Attack Database exists on the secondary node i.e. node1, you may get an error similar to this:
cp: /var/db/idpd/sec-download/SignatureUpdate.xml and /var/db/idpd/sec-download/SignatureUpdate.xml are identical (not copied)
If so, then remove the attack database from the secondary node1, and then run the RCP command again:
%rm -rf node1:/var/db/idpd/sec-download/* %rcp -r -T /var/db/idpd/sec-download/* node1:/var/db/idpd/sec-download/ Note: The above commands are run from the shell mode, indicated by the "%" sign.
%rm -rf node1:/var/db/idpd/sec-download/* %rcp -r -T /var/db/idpd/sec-download/* node1:/var/db/idpd/sec-download/
If upgrade on primary is done using NSM, the attack database will be stored at location /var/db/idpd/nsm-download/. In this case use: %rcp -r -T /var/db/idpd/nsm-download/* node1:/var/db/idpd/sec-download/
%rcp -r -T /var/db/idpd/nsm-download/* node1:/var/db/idpd/sec-download/
[primary node0] >request security idp security-package install node 1
>request security idp security-package install policy-templates node 1
[primary node0] >request security idp security-package install status
[primary node0] >show security idp security-package-version
For example: root> show security idp security-package-version node0: -------------------------------------------------------------------------- Attack database version:2108(Thu Mar 29 12:47:45 2012) Detector version :12.6.160120213 Policy template version :2108 node1: -------------------------------------------------------------------------- Attack database version:2108(Thu Mar 29 12:47:45 2012) Detector version :12.6.160120213 Policy template version :2108
root> show security idp security-package-version node0: -------------------------------------------------------------------------- Attack database version:2108(Thu Mar 29 12:47:45 2012) Detector version :12.6.160120213 Policy template version :2108 node1: -------------------------------------------------------------------------- Attack database version:2108(Thu Mar 29 12:47:45 2012) Detector version :12.6.160120213 Policy template version :2108