snmpdf failed with "snmpdf: Authentication failure (incorrect password, community or key)" after restarting snmpd configured with SNMPv3
Issue
SNMPv3
user is configured on theSNMP
agent (snmpd
).
# cat /etc/snmp/snmpd.conf| grep testadm
iquerySecName testadm
agentSecName testadm
rouser testadm
# cat /var/lib/net-snmp/snmpd.conf | grep testadm
createUser testadm SHA <Password> AES <Password>
NOTE:
- After starting
snmpd
,snmpdf
command still works.~/.snmp/snmp.conf
has the following information.
defVersion 3
defSecurityLevel authPriv
defSecurityName testadm
defPassphrase <Password>
defAuthType SHA
defPrivType AES
NOTE:
snmpd
stopped once, add the following line into/etc/snmp/snmpd.conf
.
defaultMonitors yes
- Start
snmpd
, andsnmpdf
didn't work with the following error.
Description size (kB) Used Available Used%
No log handling enabled - turning on stderr logging
snmpdf: Authentication failure (incorrect password, community or key)
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- net-snmp
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.