Hi,

I am trying to use net-snmp. What I know now is to change two files to add a 
new snmp user into snmpd:


- add "rouser "<user name>" in   /usr/local/share/snmp/snmpd.conf

- add createUser in /var/net-snmp/snmpd.conf file, for example like createUser 
testsnmp SHA "12345678" AES "12345678";


then after I restart the snmpd service, it will create a new user. And I can 
see the new user in modified /var/net-snmp/snmpd.conf file, like

usmUser 1 3 0x80001f8880bfcddd116a6a1358 "testsnmp" "testsnmp" NULL ....


But I found, when I include some special letters like dash or underscore in 
user name, it will failed to show correct user in /var/net-snmp/snmpd.conf. For 
example, when user name is "testsnmp-1", then result is:


usmUser 1 3 0x80001f8880bfcddd116a6a1358 0x736e6d702a31 0x736e6d702a31 NULL ....

Am I doing a wrong thing? or there is a strict for the user name in net-snmp?

Thank you so much
An


------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to