views:

29

answers:

0

Now I configured snmp-adaptor of jboss community to get/send snmp trap. I modified the ReadCommunity attribute of jboss-service.xml. That is I set the password to get/send trap. And I found the new ReadCommunity really works. I will get snmp trap only when I used the new ReadCommunity to query.

But when I capture the packet send between snmp client and snmp agent, it is surprising the ReadCommunity is not conformed. For example, if I set the ReadCommunity as "snmptest" in jboss-service.xml, and I can get snmp trap only when I use ReadCommunity as "snmptest", that is good.

But the packet send between snmp client and snmp agent is as list:

snmpget -c snmptest -v 1 -d 135.252.167.141:1161 .1.3.6.1.4.1.9.8.0

Sending 45 bytes to UDP: [135.252.167.141]:1161
0000: 30 2B 02 01  00 04 08 73  6E 6D 70 74  65 73 74 A0    0+.....snmptest.
0016: 1C 02 04 62  11 91 18 02  01 00 02 01  00 30 0E 30    ...b.........0.0
0032: 0C 06 08 2B  06 01 04 01  09 08 00 05  00             ...+.........


Received 43 bytes from UDP: [135.252.167.141]:1161
0000: 30 29 02 01  00 04 06 70  75 62 6C 69  63 A2 1C 02    0).....public...
0016: 04 62 11 91  18 02 01 00  02 01 00 30  0E 30 0C 06    .b.........0.0..
0032: 08 2B 06 01  04 01 09 08  00 05 00                    .+.........

As the above packet, the packet send is "snmptest", but the packet received is "public". Could any body tell me the reason why the packet received is not "snmptest"?