Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

about the packet format of SNMP Trap

843790Apr 14 2009
hello all,
i would like to receive SNMP Traps, but i couldn't find the precise definition of Trap packet, as the follow:
﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣
0000 30 81 E1 02 01 00 04 06 70 75 62 6C 69 63 A4 81 0.......public..
0010 D3 06 0B 2B 06 01 04 01 82 57 02 05 01 01 40 04 ...+.....W....@.
﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣
the above data are copied from other snmp trap application, it's not the same as what i know, for example, the second byte should be the the whole length of the packet, but 0x81 is not the length, the third one is (0xE1), the same confusion, what does 0x81 after the 0xA4 mean? and i tried to produce a longer trap packet, the 0x81 was replaced by 0x82, could someone help me please
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2009
Added on Apr 14 2009
0 comments
239 views