This article describes the issue of authentication failure, when trying to poll one of the nodes in the SRX cluster with SNMPv3.
When trying to poll one of the SRX cluster nodes, authentication failure occurs. The following output is generated with the SNMP Walk tool:
# snmpwalk -v3 -u user -a SHA -A password -l authNoPriv srx-node1 snmpwalk: Authentication failure (incorrect password, community or key)
The SNMPv3 authentication key is calculated, based on the user's password and the value of the engine ID. Initially, when SNMPv3 users are being configured, the RE which is the primary, uses its engine ID and configured password to calculate the key. Later, when the user polls the nodes, each node uses its own engine-ID and the provided password to authenticate the user. So, it is possible that the engine ID, which was used when creating the key, is not the same as the one being used during authentication (that is, if the polled node was in the secondary state, when the user was configured). If the engine ID differs between the two nodes, then the authentication will fail.
You must ensure that the engine ID is equal on both of the nodes in the SRX cluster. A common wrong way is to use the MAC address to automatically generate the engine ID:
{primary:node0}[edit] root@node0# set snmp engine-id use-mac-address
{primary:node0}[edit] root@node0# set snmp engine-id local 0021599d3c3a