Use snmp v3 start fail Unknown user name

Ray LC Chao (趙良基) <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <HKAPR01MB36341D216C12966BC5952FFEE0BF0@HKAPR01MB3634.apcprd01.prod.exchangelabs.com>
Hello,

NET-SNMP version:  5.8

I want to use snmp V3 to manage device,the snmpd config file is
/etc/snmp/snmpd.conf:
master agentx
com2sec admin  default       public
com2sec admin2  default     private
rwuser admin priv
rouser user priv
view all    included .1  80
view    all    excluded   .1.3.6.1.4.1
view    all    included   .1.3.6.1.4.1.8691
access      moxaGroup ""   any              noauth       exact  all all none
access      moxaGroup2 ""         any              noauth       exact  all all none

##################################################################################

/var/net-snmp/snmpd.conf:
createUser admin MD5 "moxamoxa" DES moxamoxa
createUser user MD5 "moxa" DES moxamoxa
EngineID 0x012345

##################################################################################

When use ” snmpget” command
snmpget -v 3 -u admin -l authNoPriv -a MD5 -A moxamoxa localhost sysUpTime.0
snmpget: Unknown user name

And snmpget、snmpset、snmpgetnext also fail, I can't recognize where the fail is!! and why it is written in the log that "Unknown user name”,my user list actually have “admin” this use.
Maybe snmpd -c /etc/snmp/snmpd.conf –f command not include /var/net-snmp/snmpd.conf, Should other options be added??
" .

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.