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.
This is due to the snmpv2 configuration in the Network Director's database
Follow the below steps to fix the issue:
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)
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.