TWSD-1389 :SNMP host config with V3 version, it is accepting user as default value (public) -patch1
Review Request #1268 — Created Dec. 26, 2025 and submitted — Latest diff uploaded
| Information | |
|---|---|
| mmiriam | |
| APV10 | |
| rel_10_7 | |
| TWSD-1389 | |
| Reviewers | |
| ngurunathan, pradeep, tanya | |
TWSD-1389 :Patch 1: When tried to add SNMP host with non-existing V3 user, SNMP host is getting configured with no user after displaying error message as failed to add SNMP host
AN(config)#sh run snmp
snmp configuration
snmp community "public"
snmp contact ""
snmp location ""
snmp enable traps
snmp traps loglevel err
snmp v3user "array1" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" "SHA1"
snmp ipcontrol off
snmp on defaultAN(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)#sh run snmp
snmp configuration
snmp community "public"
snmp contact ""
snmp location ""
snmp enable traps
snmp traps loglevel err
snmp v3user "array1" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" "SHA1"
snmp ipcontrol off
snmp on defaultAN(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 enable traps
snmp traps loglevel err
snmp v3user "array1" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" "SHA1"
snmp ipcontrol off
snmp on defaultAN(config)#snmp host 1.1.1.1 3 "array1"
please run "snmp auth" for trap version 3 to be functional
AN(config)#sh run snmpsnmp configuration
snmp community "public"
snmp contact ""
snmp location ""
snmp host 1.1.1.1 3 "array1"
snmp auth 1.1.1.1 "" "" authNopriv "" 162 ""
snmp enable traps
snmp traps loglevel err
snmp v3user "array1" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" "SHA1"
snmp ipcontrol off
snmp on defaultAN(config)#snmp auth 1.1.1.1 1234 "admin@123"
AN(config)#sh run snmp
snmp configuration
snmp community "public"
snmp contact ""
snmp location ""
snmp host 1.1.1.1 3 "array1"
snmp auth 1.1.1.1 "1234" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" 162 "MD5"
snmp enable traps
snmp traps loglevel err
snmp v3user "array1" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" "SHA1"
snmp ipcontrol off
snmp on defaultAN(config)#snmp host 1.2.2.2 2
AN(config)#sh run snmp
snmp configuration
snmp community "public"
snmp contact ""
snmp location ""
snmp host 1.1.1.1 3 "array1"
snmp host 1.2.2.2 2 "public"
snmp auth 1.1.1.1 "1234" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" 162 "MD5"
snmp auth 1.2.2.2 "" "" "" "" 162
snmp enable traps
snmp traps loglevel err
snmp v3user "array1" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" "SHA1"
snmp ipcontrol off
snmp on defaultAN(config)#snmp host 1.2.2.2 2 "array"
AN(config)#sh run snmp
snmp configuration
snmp community "public"
snmp contact ""
snmp location ""
snmp host 1.1.1.1 3 "array1"
snmp host 1.2.2.2 2 "array"
snmp auth 1.1.1.1 "1234" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" 162 "MD5"
snmp auth 1.2.2.2 "" "" "" "" 162
snmp enable traps
snmp traps loglevel err
snmp v3user "array1" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" "SHA1"
snmp ipcontrol off
snmp on default
