Description

Sometimes, Network Director will poll the devices with the snmpv2 community even if we discover the device with snmpv3. We could see below logs from the devices in messages log:


Feb 4 18:51:39.526 2025 DeviceName snmpd [17880]: SNMPD_AUTH_FAILURE: nsa_log_community: unauthorized SNMP community from <Junos Space IP> to <Device IP> (public)


Here public is the community name.

Symptoms

This is due to the snmpv2 configuration in the Network Director's database

Solution

Follow the below steps to fix the issue:

 

  • Check if the stale entry exists in the ND table

 

mysql -ujboss -p$(grep mysql.jboss /etc/sysconfig/JunosSpace/pwd | awk -F= '{print $2}') build_db -e "select id, COUNT(community), snmpVersion, userName from CM_NWDSNMPSETTING where community='public'"

+---------+------------------+-------------+----------+

| id     | COUNT(community) | snmpVersion | userName |

+---------+------------------+-------------+----------+

| 1376257 |               1 |          1 | NULL    |

+---------+------------------+-------------+----------+

1 row in set (0.00 sec)

 

  • Please remove it using the below SQL command:

mysql -ujboss -p$(grep mysql.jboss /etc/sysconfig/JunosSpace/pwd | awk -F= '{print $2}') build_db -e "delete from CM_NWDSNMPSETTING where community='public'"

 

Note: Please take a DB backup before running the delete command to remove the entry from the DB.

 

 

Modification History

2025-03-31 : Article Created