TWSD-1389 :SNMP host config with V3 version, it is accepting user as default value (public)

Review Request #1259 — Created Dec. 23, 2025 and submitted

mmiriam
APV10
rel_10_7, rel_10_7_4
TWSD-1389
ngurunathan, pradeep, tanya

TWSD-1389 :SNMP host config with V3 version, it is accepting user as default value (public)

AN(config)#snmp host 1.1.1.1 3
Error: 'public' is not allowed for SNMPv3.
Please enter a valid user name
Failed to execute "snmp host 1.1.1.1 3"


AN(config)#snmp host 1.1.1.1 3 arr
arr does not exist in user database of SNMP
Failed to execute "snmp host 1.1.1.1 3 arr"

AN(config)#sh run snmp

snmp configuration

snmp community "public"
snmp contact ""
snmp location ""
snmp host 192.168.16.1 3 "array1"
snmp auth 192.168.16.1 "1234" "XXXXXXXXXtiKTQ/uIOqYpVR0t0bnaAg==" authNopriv "" 161 "MD5"
snmp enable traps
snmp traps loglevel err
snmp v3user "array1" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" "SHA1"
snmp ipcontrol off
snmp on default

Description From Last Updated

Error: user 'public' is not allowed for SNMPv3.\n

pradeeppradeep
Loading...