Hi Dave,
I was using library without SSL support so it was giving the error below
> > Encryption support not enabled.
> > snmpset: USM encryption error
But when I replaced this library with the one that supports SSL, following
error came:
> snmpwalk: Authentication failure (incorrect password, community or key)
I tried a simple query as u suggested. Please checkout if the query is correct.
And why it is giving "snmpset: Unknown Report message" error.
C:\usr\bin>snmpset -v 3 -u ashis -d 10.200.90.113 1.3.6.1.2.1.43.5.1.1.3.1 i 4
Sending 60 bytes to UDP: [10.200.90.113]:161
0000: 30 3A 02 01 03 30 0F 02 02 45 C4 02 03 00 FF E3 0:...0...E─... π
0016: 04 01 04 02 01 03 04 10 30 0E 04 00 02 01 00 02 ........0.......
0032: 01 00 04 00 04 00 04 00 30 12 04 00 04 00 A0 0C ........0.....á.
0048: 02 02 74 9E 02 01 00 02 01 00 30 00 ..t₧......0.
Received 100 bytes from UDP: [10.200.90.113]:161
0000: 30 62 02 01 03 30 0E 02 02 45 C4 02 02 20 00 04 0b...0...E─.. ..
0016: 01 00 02 01 03 04 1C 30 1A 04 0C 00 00 00 0B 00 .......0........
0032: 14 38 90 53 66 00 01 02 01 00 02 01 00 04 00 04 .8.Sf...........
0048: 00 04 00 30 2F 04 0C 00 00 00 0B 00 14 38 90 53 ...0/........8.S
0064: 66 00 01 04 00 A8 1D 02 02 74 9E 02 01 00 02 01 f....¿...t₧.....
0080: 00 30 11 30 0F 06 0A 2B 06 01 06 03 0F 01 01 04 .0.0...+........
0096: 00 41 01 22 .A."
Sending 107 bytes to UDP: [10.200.90.113]:161
0000: 30 69 02 01 03 30 0F 02 02 45 C3 02 03 00 FF E3 0i...0...E├... π
0016: 04 01 04 02 01 03 04 21 30 1F 04 0C 00 00 00 0B .......!0.......
0032: 00 14 38 90 53 66 00 01 02 01 00 02 01 00 04 05 ..8.Sf..........
0048: 61 73 68 69 73 04 00 04 00 30 30 04 0C 00 00 00 ashis....00.....
0064: 0B 00 14 38 90 53 66 00 01 04 00 A3 1E 02 02 74 ...8.Sf....ú...t
0080: 9D 02 01 00 02 01 00 30 12 30 10 06 0B 2B 06 01 .......0.0...+..
0096: 02 01 2B 05 01 01 03 01 02 01 04 ..+........
Received 104 bytes from UDP: [10.200.90.113]:161
0000: 30 66 02 01 03 30 0E 02 02 45 C3 02 02 20 00 04 0f...0...E├.. ..
0016: 01 00 02 01 03 04 21 30 1F 04 0C 00 00 00 0B 00 ......!0........
0032: 14 38 90 53 66 00 01 02 01 00 02 01 00 04 05 61 .8.Sf..........a
0048: 73 68 69 73 04 00 04 00 30 2E 04 0C 00 00 00 0B shis....0.......
0064: 00 14 38 90 53 66 00 01 04 00 A8 1C 02 02 74 9D ..8.Sf....¿...t.
0080: 02 01 00 02 01 00 30 10 30 0E 06 09 2B 06 01 06 ......0.0.. +...
0096: 03 0C 01 05 00 41 01 06 .....A..
snmpset: Unknown Report message
Thanks in advance
Namitha
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield
Sent: Friday, June 22, 2007 1:25 PM
To: Namitha Gowda (WT01 - Embedded & Product Engineering)
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: net SNMPv3 support
On 22/06/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I am trying to send some packets using SNMPv3 but its failing.
> Please check the details below and let me know if I am missing something.
>
> C:\usr\bin>snmpwalk -v 3 -u ashis -n "jetDirect" -l authPriv -a MD5 -A
> 682440502979335457 -x DES -d -X 6824402502979335457 10.200.90.113
> 1.3.6.1.2.1.43.5.1..3.1
[snip]
> snmpwalk: Authentication failure (incorrect password, community or key)
That's not the error you were reporting yesterday.
Then you said that it was complaining about
> > Encryption support not enabled.
> > snmpset: USM encryption error
Now it seems that the request is being sent successfully.
I don't know how the remote box is configured, but the error message
Authentication failure (incorrect password, community or key)
would tend to indicate that it doesn't like one (or more) of the SNMPv3
username, authentication/encryption protocol or key, or the context
string that you are using.
I'd suggest that you try with a simpler query, perhaps a noAuth
or authNoPriv request using the default context - and work up to
the full settings that you need to use.
But look closely at how the access control is configured on the remote agent.
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users