Hi.Wes,
I used -d at snmpusm command but I got binary print out.
And I used snmpget and snmpwalk with new key, it does not connect with
the agent, but the old key does.
The agent running at 192.168.83.4 is written by Python SNMP, May be the
agent have problem.
The snmpsum result is as following:
#/usr/local/bin/snmpusm -v3 -d -l authPriv -u antenna-agent -a MD5 -A
antenna_authkey -x DES -X antenna_privkey -Ca 192.168.83.4 passwd
antenna_authkey antenna_authtest
Sending 64 bytes to UDP: [192.168.83.4]:161->[0.0.0.0]
0000: 30 3E 02 01 03 30 11 02 04 73 7A E8 C6 02 03 00
0>...0...sz.....
0016: FF E3 04 01 04 02 01 03 04 10 30 0E 04 00 02 01
..........0.....
0032: 00 02 01 00 04 00 04 00 04 00 30 14 04 00 04 00
..........0.....
0048: A0 0E 02 04 22 4D 0F 5C 02 01 00 02 01 00 30 00
...."M.\......0.
Received 96 bytes from UDP: [192.168.83.4]:161->[0.0.0.0]
0000: 30 5E 02 01 03 30 11 02 04 73 7A E8 C6 02 03 00
0^...0...sz.....
0016: FF E3 04 01 00 02 01 03 04 19 30 17 04 09 80 00
..........0.....
0032: 4F B8 05 1B 01 05 4B 02 01 02 02 01 0A 04 00 04
O.....K.........
0048: 00 04 00 30 2B 04 09 80 00 4F B8 05 1B 01 05 4B
...0+....O.....K
0064: 04 00 A8 1C 02 01 00 02 01 00 02 01 00 30 11 30
.............0.0
0080: 0F 06 0A 2B 06 01 06 03 0F 01 01 04 00 41 01 02
...+.........A..
Sending 199 bytes to UDP: [192.168.83.4]:161->[0.0.0.0]
0000: 30 81 C4 02 01 03 30 11 02 04 73 7A E8 C7 02 03
0.....0...sz....
0016: 00 FF E3 04 01 07 02 01 03 04 3A 30 38 04 09 80
..........:08...
0032: 00 4F B8 05 1B 01 05 4B 02 01 02 02 01 0A 04 0D
.O.....K........
0048: 61 6E 74 65 6E 6E 61 2D 61 67 65 6E 74 04 0C 31
antenna-agent..1
0064: A2 D4 26 9E 2E 84 AF 69 0C CB 99 04 08 00 00 00
..&....i........
0080: 01 84 89 0E 2F 04 70 42 3B F1 44 10 87 A6 DE 90
..../.pB;.D.....
0096: F6 FD 8B E5 91 56 DA 5A 44 00 FB D2 29 EC DC A5
.....V.ZD...)...
0112: 27 F2 23 CD E0 B9 11 E8 CD 1F 6D B3 53 A3 C4 3E
'.#.......m.S..>
0128: CE 8A FD 2D F6 9D 56 FF B9 04 56 0E 60 0B B4 62
...-..V...V.`..b
0144: 69 DF 05 13 E6 97 E0 CA 49 29 94 4F 76 8D F7 F1
i.......I).Ov...
0160: A4 42 60 99 26 FD 71 EC 4C 2A 51 39 D0 F4 A4 F5
.B`.&.q.L*Q9....
0176: A5 F3 E3 7B DE 95 AA FD B7 D6 4E 6C 45 FD 98 92
...{......NlE...
0192: 79 01 8B 12 BC BF AB y......
Received 199 bytes from UDP: [192.168.83.4]:161->[0.0.0.0]
0000: 30 81 C4 02 01 03 30 11 02 04 73 7A E8 C7 02 03
0.....0...sz....
0016: 00 FF E3 04 01 03 02 01 03 04 3A 30 38 04 09 80
..........:08...
0032: 00 4F B8 05 1B 01 05 4B 02 01 02 02 01 0A 04 0D
.O.....K........
0048: 61 6E 74 65 6E 6E 61 2D 61 67 65 6E 74 04 0C BD
antenna-agent...
0064: 44 BD 31 63 C1 D4 24 37 B3 74 04 04 08 00 00 00
D.1c..$7.t......
0080: 02 D8 CF CE AB 04 70 AA 39 F3 BF 25 FC FD 19 F0
......p.9..%....
0096: 5C CD 24 44 C4 47 D4 EA BC 3E C4 A1 E3 6B 44 DF
\.$D.G...>...kD.
0112: 30 81 F3 57 37 A4 36 B3 3E 67 2F 71 BB 78 93 37
0..W7.6.>g/q.x.7
0128: 26 9F 5B ED F5 3F 1D E4 7E 07 01 C8 81 EF 7A 77
&.[..?..~.....zw
0144: FB 93 56 A3 4B 47 7E 76 7C 21 73 84 63 F6 2A B7
..V.KG~v|!s.c.*.
0160: 60 AE A0 19 7D BC B9 3F C5 C2 77 BC F0 85 C1 DC
`...}..?..w.....
0176: 1D 69 28 F4 F0 71 59 F2 E8 BD 08 EC E7 7A 1A AF
.i(..qY......z..
0192: 69 F4 F5 CA 5A EF 11 i...Z..
SNMPv3 Key(s) successfully changed.
-----Original Message-----
From: Wes Hardaker [mailto:[email protected]]
Sent: Wednesday, November 18, 2009 5:31 PM
To: Guan, Chi @ Datron
Cc: [email protected]
Subject: Re: How to change key/password in the Agent
>>>>> On Tue, 17 Nov 2009 13:08:44 -0800, [email protected] said:
CG> 2. If I use
CG> /usr/local/bin/snmpusm -v3 -l authPriv -u test-agent -l authPriv
CG> -a MD5 -A test_authkey -x DES -X test_privkey -Ca 192.168.83.4
passwd
CG> test_authkey authkeytest,
That's the right form of the command to use.
CG> The command successfully, but the key of the agent did not
CG> change.
I'm not sure without being able to play with the keyboard myself what
went wrong. It would probably be helpful to run it with '-d -l
authNoPriv' and then look at the output packets to determine if there
was an error that wasn't being caught and printed by the tool.
--
Wes Hardaker
Cobham Analytic Solutions
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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