Thanks Kalim, that worked. Just for reference to anyone else on the list. I started fresh from a clean install of net-snmp (Embedded linux build of yocto poky with net-snmp included)
Booted my image systemctl stop snmpd.service net-snmp-config --create-snmpv3-user -a "testuser1ABCD" testuser1 systemctl start snmpd.service snmpget -v 3 -u testuser1 -l authNoPriv -a MD5 -A testuser1ABCD localhost sysUpTime.0 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (416903) 1:09:29.03 After the restart the config files are: cat /usr/share/snmp/snmpd.conf rwuser testuser1 cat /var/lib/net-snmp/snmpd.conf # # net-snmp (or ucd-snmp) persistent data file. # ############################################################################ # STOP STOP STOP STOP STOP STOP STOP STOP STOP # # **** DO NOT EDIT THIS FILE **** # # STOP STOP STOP STOP STOP STOP STOP STOP STOP ############################################################################ # # DO NOT STORE CONFIGURATION ENTRIES HERE. # Please save normal configuration tokens for snmpd in SNMPCONFPATH/snmpd.conf. # Only "createUser" tokens should be placed here by snmpd administrators. # (Did I mention: do not edit this file?) # usmUser 1 3 0x80001f888048c8ed19b0043e5c00000000 "testuser1" "testuser1" NULL .1.3.6.1.6.3.10.1.1.2 0x486bc01f5861da7bafd4e5872072d5ac .1.3.6.1.6.3.10.1.2.2 0x486bc01f5861da7bafd4e5872072d5ac 0x setserialno 1373864368 ############################################################## # # snmpNotifyFilterTable persistent data # ############################################################## ############################################################## # # ifXTable persistent data # ifXTable .1 14:0 18:0x $ ifXTable .2 14:0 18:0x $ ifXTable .3 14:0 18:0x $ ifXTable .4 14:0 18:0x $ ifXTable .9 14:0 18:0x $ ifXTable .11 14:0 18:0x $ ifXTable .16 14:0 18:0x $ ifXTable .20 14:0 18:0x $ ############################################################## engineBoots 5 oldEngineID 0x80001f888048c8ed19b0043e5c00000000 On Mon, Jan 14, 2019 at 8:25 PM Kaleemulla Sharief (kasharie) < kasha...@cisco.com> wrote: > I had tried this long back but had got the same issue initially. Looks > like the v3 user at source isn't created properly. Check if you have the v3 > user line in snmpd.conf. If not you can stop snmpd, add the v3 user > manually and save the file and then start snmpd service. Once done try the > same command. > > Regards, > Kalim > > On Jan 15, 2019, at 4:26 AM, Johnnyah McLean <johnnyah.mcl...@gmail.com> > wrote: > > Is the latest v3 configuration documentation here? > > http://www.net-snmp.org/docs/README.snmpv3.html > > Attempted the example exactly and get: > > snmpget -v 3 -u testuser1 -l authNoPriv -a MD5 -A testuser1234 localhost > sysUpTime.0 > snmpget: Unknown user name (Sub-id not found: (top) -> sysUpTime) > > Or is there a better source for v3 configuration? Thx. > _______________________________________________ > Net-snmp-users mailing list > Net-snmp-users@lists.sourceforge.net > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users >
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users