On Mon, 2005-04-18 at 08:08, [EMAIL PROTECTED] wrote:
> I want to change the auth password for user "myuser"
> in command line:
> 
> $ snmpusm -v 3 -u myuser  -n "" -l authNoPriv -a MD5 -A 12345678 127.0.0.1 
>  passwd 12345678 myuserpasswd
> no encryption type specified, which I need in order to know to change the 
> key

> what is wrong here ?

By default, "snmpusm ... passwd" will attempt to change *both* the
authentication and encryption keys - so it needs to know what
encryption algorithm is configured for this user.
  (Despite the fact that there *is* only one!)

Try either specifying the encryption algorithm:

     snmpusm -v 3 -u myuser  -n "" -l authNoPriv -a MD5 -A 12345678
==>          -x DES
             127.0.0.1 passwd 12345678 myuserpasswd

or saying that you only want to change the authentication password:

     snmpusm -v 3 -u myuser  -n "" -l authNoPriv -a MD5 -A 12345678
==>          -Ca
             127.0.0.1 passwd 12345678 myuserpasswd

Dave



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to