Problems with SNMPv3 and SHA

Michael Bayer <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I have problems using SHA in SNMPv3 with NET-SNMP. Well, I'll start to 
explain how the setup is and what I did so far.

On a server there is the snmpd SNMP agent demon running. It uses 
NET-SNMP Version 5.4.3. To use authentication I added a user in the 
share/snmp/snmp.conf file. The entry looks like this:

rouser  myuser auth system


First I tried the MD5 authentication so I added a line in 
/var/net-snmp/snmpd.conf like this (before I did so, I stopped the agent):

createUser myuser MD5 mypasswd

That is the only user that I added so far. There is no other user entry. 
On a client (different machine) I do an snmpget request:

snmpget -v 3 -u myuser -a MD5 -A mypasswd -l authNoPriv myserver 
system.sysUpTime.0


And get the following result:

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1313) 0:00:13.13


So the MD5 authentication seems to work properly. Now I tried the same 
with SHA. I stopped snmpd on the server side, delete the the old (and 
only) user (myuser) with MD5 authentication in /var/net-snmp/snmpd.conf. 
Than I added the following line:

createUser myuser SHA mypasswd

After restart of snmpd the user is added in the snmpd.conf file.

usmUser 1 3 0x80001f88804460fc1891dc034c 0x6d626179657200 
0x6d626179657200 NULL .1.3.6.1.6.3.10.1.1.2 
0xdacc3c017741c212010d609ff03bafb5 .1.3.6.1.6.3.10.1.2.1 "" ""

Then I do a new request on the client side.

snmpget -v 3 -u myuser -a SHA -A mypasswd -l authNoPriv myserver 
system.sysUpTime.0


And now I get an error message:

snmpget: Authentication failure (incorrect password, community or key) 
(Sub-id not found: (top) -> system)

Somehow SHA doesn't work + now the OID is not found. Did I miss 
something? Help is much appreciated.


Thanks
Michael




------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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.