snmpdf failed with "snmpdf: Authentication failure (incorrect password, community or key)" after restarting snmpd configured with SNMPv3
Issue
SNMPv3user is configured on theSNMPagent (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,snmpdfcommand still works.~/.snmp/snmp.confhas the following information.
defVersion 3
defSecurityLevel authPriv
defSecurityName testadm
defPassphrase <Password>
defAuthType SHA
defPrivType AES
NOTE:
snmpdstopped once, add the following line into/etc/snmp/snmpd.conf.
defaultMonitors yes
- Start
snmpd, andsnmpdfdidn'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
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
