On 12 February 2010 02:36, EYRE Bernadette
<[email protected]> wrote:
> I'm using net-snmp 5.4.2.1 version on linux.
> I read the docs, manual pages, looked at library snmpusm.c and snmpusm.c
> code in apps dir but I can't make -m option work.
> I want to supply an already (MD5) hashed value instead of clear text
> passphrase so I use:
> snmpusm -v3 -l authNoPriv -u user1 -A passwd1 passwd -Ca passwd1 -m 0x<hexkey>
I'm not really an expert on SNMPv3, but that invocation does not seem to
match the description in the snmpusm man page. This lists '-Ca' as one of
the "Common Options" which appear *before* the USM command ("passwd")
Also, the description of the "passwd" sub-command says:
" To change from a localized key back to a password, the
following variant of the passwd sub-command is used:
snmpusm [OPTIONS] <-Ca | -Cx> -Ck passwd
OLD-KEY-OR-PASSPHRASE NEW-KEY-OR-PASSPHRASE [USER]
The OLD-KEY-OR-PASSPHRASE and/or NEW-KEY-OR-PASSPHRASE arguments
can either be a passphrase or a localized key starting with "0x",
"
Which would imply that the command ought to be something like:
snmpusm -v3 -l authNoPriv -u user1 -A passwd1 -Ca -Ck passwd passwd1 0x<hexkey>
> I don't know if -m option is intended to be used with MD5 hashed value??
-m is not relevant to the "passwd" sub-command.
It's part of the common processing for the basic SNMP commands.
> So I used -3m option instead but that did the same as above.
All of the -3... options are treated in exactly the same way as the
eqivalent non-3 versions. That was an (unsuccessful) attempt to
reduce the pollution of the command-line option namespace.
My gut feeling is that you are confusing the common SNMP command options
with the USM-specific sub-command options. These are different (I believe).
But I'm not an SNMPv3 expert, so I could well be wrong here.
Dave
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders