TWSD-1162 Not able to add SNMP configurations
Review Request #1155 — Created Nov. 14, 2025 and submitted
| Information | |
|---|---|
| mmiriam | |
| APV10 | |
| rel_10_7 | |
| TWSD-1162 | |
| Reviewers | |
| ngurunathan, pradeep, tanya | |
TWSD-1162 Not able to add SNMP configurations. Missing unlock after snmp lock when returning in snmp_server_host_auth function
Before fix:
AN(config)#
AN(config)#sh run snmpsnmp configuration
snmp community "public"
snmp contact ""
snmp location ""
snmp host 1.1.1.1 3 "public"
snmp auth 1.1.1.1 "" "" authNopriv "" 162 ""
no snmp enable traps
snmp traps loglevel err
snmp ipcontrol off
snmp offAN(config)#snmp auth 1.1.1.1 "" "" authNopriv "" 162 ""
Invalid authentication protocol. It only be MD5 or SHA1, default:MD5.
Failed to execute "snmp auth 1.1.1.1 "" "" authNopriv "" 162 """AN(config)#sh run snmp
snmp configuration
AN(config)#snmp auth 1.1.1.1 "123"
Failed to execute "snmp auth 1.1.1.1 "123""
================================================
After fix:
======================================================
APV(config)#
APV(config)#sh run snmpsnmp configuration
snmp community "public"
snmp contact ""
snmp location ""
snmp host 192.168.85.195 3 "Lakshmi"
snmp auth 192.168.85.195 "" "" authNopriv "" 162 ""
snmp enable traps
snmp traps loglevel err
snmp v3user "Lakshmi" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" "MD5"
snmp ipcontrol off
snmp on v3APV(config)#snmp auth 192.168.85.195 "" "" authNopriv "" 162 ""
Invalid authentication protocol. It only be MD5 or SHA1, default:MD5.
Failed to execute "snmp auth 192.168.85.195 "" "" authNopriv "" 162 """APV(config)#sh run snmp
snmp configuration
snmp community "public"
snmp contact ""
snmp location ""
snmp host 192.168.85.195 3 "Lakshmi"
snmp auth 192.168.85.195 "" "" authNopriv "" 162 ""
snmp enable traps
snmp traps loglevel err
snmp v3user "Lakshmi" "XXXXXXXXX3MSAKA1KYEX5DPuknEYwNA==" authNopriv "" "MD5"
snmp ipcontrol off
snmp on v3
