Hi Dave,

 

U got it right. I am working on HP Printers.

 

As suggested by you, I used "-n jetDirect", please checkout the result below:

Also please let me know if I have to do something on printer also, for 
supporting SNMPv3.

 

C:\usr\bin>snmpset.exe -v 3 -n jetDirect -d -u ashis 10.200.90.113 1.3.6.1.2.1.4

3.5.1.1.3.1 int32 4

 

Sending 69 bytes to UDP: [10.200.90.113]:161

0000: 30 43 02 01  03 30 0F 02  02 75 8C 02  03 00 FF E3    0C...0...uî... π

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 1B 04 00  04 09 6A 65    ........0....

je

0048: 74 44 69 72  65 63 74 A0  0C 02 02 2A  96 02 01 00    tDirectá...*û...

0064: 02 01 00 30  00                                       ...0.

 

 

Received 100 bytes from UDP: [10.200.90.113]:161

0000: 30 62 02 01  03 30 0E 02  02 75 8C 02  02 20 00 04    0b...0...uî.. ..

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 2A 96 02  01 00 02 01    f....¿...*û.....

0080: 00 30 11 30  0F 06 0A 2B  06 01 06 03  0F 01 01 04    .0.0...+........

0096: 00 41 01 43                                           .A.C

 

 

Sending 116 bytes to UDP: [10.200.90.113]:161

0000: 30 72 02 01  03 30 0F 02  02 75 8B 02  03 00 FF E3    0r...0...uï... π

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 39 04  0C 00 00 00    ashis....09.....

0064: 0B 00 14 38  90 53 66 00  01 04 09 6A  65 74 44 69    ...8.Sf...  jetDi

0080: 72 65 63 74  A3 1E 02 02  2A 95 02 01  00 02 01 00    rectú...*ò......

0096: 30 12 30 10  06 0B 2B 06  01 02 01 2B  05 01 01 03    0.0...+....+....

0112: 01 02 01 04                                           ....

 

 

Received 104 bytes from UDP: [10.200.90.113]:161

0000: 30 66 02 01  03 30 0E 02  02 75 8B 02  02 20 00 04    0f...0...uï.. ..

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 2A 95    ..8.Sf....¿...*ò

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 11                              .....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 2:40 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 tried a simple query as u suggested. Please checkout if the query is 
> correct.

 

I can't.

Whether this is correct depends on the configuration of the agent that

you are trying to query.   The fact that you're getting an error back would

tend to indicate that it isn't.

 

 

>   And why it is giving "snmpset: Unknown Report message" error.

 

> Received 104 bytes from UDP: [10.200.90.113]:161

> 0080: ......  30 0E 06 09  2B 06 01 06

> 0096: 03 0C 01 05  00 41 01 06

 

This report PDU contains the varbind

    SNMP-TARGET-MIB::snmpUnknownContexts.0 = 6

 

It appears that the Net-SNMP library doesn't detect this particular

report - hence the error that you're seeing.

 

This response would tend to indicate that the agent that you're

querying doesn't use the default context.   So it looks as if

     -n  jetDirect

is probably required.

 

 

I presume that you're trying to talk to an HP printer.

Try looking at the SNMPv3 configuration via the Web interface.

I'd suggest that you don't post passwords on a public mailing list :-)

but details of the rest of the configuration might help in deciding

the appropriate request invocation.

 

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

Reply via email to