Login  
Search All Forums
Dart Home | PowerSNMP for .NET | Custom Development Reply | PowerSNMP for .NET Topics | Forums   
AuthorForum: PowerSNMP for .NET
Topic: SetMessage Response Request ID is 2 bytes
pc

From: Loughborough, United Kingdom
Posts: 2
Member Since: 07/12/11
posted July 12, 2011 8:12 AM

I have a device that sends an SNMP set message request with a 4 byte request Id. This device expects the response message to contain a 4 byte request id, however the SNMP response packets request id is only 2 bytes in length.

Can I change this behaviour?
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 12, 2011 9:59 AM

Hello,

Are you using the current version of the control? The current version is 4.3.1, and if you are not, please test with it to see if your issue has been resolved since your version. You may download the component for evaluation here: http://www.dart.com/psnet.aspx

All snmp devices expect an int32/4-byte request id, and our control should be sending that; perhaps your device is reading past the PDU type field 2 bytes too far? What leads you to think that our control is sending only a 2-byte request id?

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

pc

From: Loughborough, United Kingdom
Posts: 2
Member Since: 07/12/11
posted July 12, 2011 10:12 AM

Hi, Thanks for the response...

How do I get the latest version, do I just download the trial copy and use my key???


Also I used wireshark to trace the request response packets and they clearly show that the responses request id is only 2 bytes long...

SNMP request:

0000  30 2d 02 01 00 04 06 70 75 62 6c 69 63 a3 20 02 0-.....public. .
0010  04 00 00 00 9b 02 01 00 02 01 00 30 12 30 10 06 ...........0.0..
0020  0b 2b 06 01 04 01 81 a8 25 02 03 00 04 01 01   .+......%......


SNMP Response:

0000  30 2b 02 01 00 04 06 70 75 62 6c 69 63 a2 1e 02 0+.....public...
0010  02 00 9b 02 01 00 02 01 00 30 12 30 10 06 0b 2b .........0.0...+
0020  06 01 04 01 81 a8 25 02 03 00 04 01 01      ......%......


The request encodes request id as "02 04 00 00 00 9b"

The response encodes request id as "02 02 00 9b"

Regards




Jamie Powell (Admin)

From: Rome, NY USA
Posts: 448
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted July 12, 2011 11:49 AM

Thank you for your reply. An email has been sent to you regarding your specific issue. You may also review the general technical response found below:

The request is coming in with the id encoded as

02 (int)
04 (4 byte length)
00 00 00 9b (155)

In the response, the id is encoded in a more concise (and valid)
02 (int)
02 (2 byte length)
00 9b (155)

The device should be able to decode this to the same value. It seems like the device is incorrectly expecting 4 bytes instead of examining the length byte to see how long it actually is.

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerSNMP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX