hello,

I've noticed a problem while running the "example-demon" subagent
(compiled from NetSNMP website), with NetSNMP v5.0.9 on IA 64bit
machine running RHEL3.0. The following is the snmpd trace (-f -f -D
-d) and I think the error is in the function "agentx_parse_oid()"
(below) which mis-interprets the OID that subagent is trying to
register. Is this a known problem? I just searched the archive but
couldnt find a similar issue. Am I correct in assuming there's problem
with "agentx_parse_oid()"?

Your help is appreciated, Thanks,
Jaiber John.

(I've removed some lines from trace which i think is not much important)
---------------------------------------------------------------------------------------------------------------------------------
Received 80 bytes from Local IPC: abstract
0000: 01 01 00 00  00 00 00 00  00 00 00 00  F2 7F 5B 79    ..............[y
0016: 3C 00 00 00  00 00 00 00  05 04 00 00  01 00 00 00    <...............
0032: 88 1F 00 00  03 00 00 00  02 00 00 00  0A 00 00 00    ................
0048: 19 00 00 00  4E 65 74 2D  53 4E 4D 50  20 41 67 65    ....Net-SNMP Age
0064: 6E 74 58 20  73 75 62 2D  61 67 65 6E  74 00 00 00    ntX sub-agent...
......
......
dumph_recv:           OID Segments
  parse_oid
  sizeof(oid) = 8
dumpx_recv:            01 00 00 00
dumpv_recv:              Integer:       1 (0x01)
dumpx_recv:            88 1F 00 00
dumpv_recv:              Integer:       8072 (0x1F88)
dumpx_recv:            03 00 00 00
dumpv_recv:              Integer:       3 (0x03)
dumpx_recv:            02 00 00 00
dumpv_recv:              Integer:       2 (0x02)
dumpx_recv:            0A 00 00 00
dumpv_recv:              Integer:       10 (0x0A)
trace: agentx_parse_oid(): agentx/protocol.c, 1180
dumpv_recv:           OID:
.4294967296.12884901888.25769803776.4294967296.17179869184.4294967296.34668976013312.12884901888.8589934592.42949672960
trace: agentx_parse(): agentx/protocol.c, 1623
dumph_recv:         Subagent Description
dumpx_recv:          19 00 00 00
dumpv_recv:            Integer: 25 (0x19)
dumpx_recv:          19 00 00 00 4E 65 74 2D 53 4E 4D 50 20 41 67 65
6E 74 58 20 73 75 62 2D 61 67 65 6E 74 00 00 00
dumpv_recv:          String: Net-SNMP AgentX sub-agent.,.
trace: init_agent_snmp_session(): snmp_agent.c, 921
snmp_agent: agent_sesion 0x6000000000160b60 created
trace: handle_master_agentx_packet(): agentx/master_admin.c, 490
agentx/master: handle pdu (req=0x795b7ff2,trans=0x0,sess=0x0)
trace: open_agentx_session(): agentx/master_admin.c, 75
agentx/master: open 0x6000000000150360
trace: open_agentx_session(): agentx/master_admin.c, 123
agentx/master: opened 0x6000000000161720 = 7 with flags = a0
trace: handle_master_agentx_packet(): agentx/master_admin.c, 567
agentx/master: send response, stat 0 (req=0x795b7ff2,trans=0x0,sess=0x0)
trace: agentx_realloc_build_header(): agentx/protocol.c, 610
dumph_send:   AgentX Header
dumpx_send:    01 12 00 00
dumpv_send:      Version:       1
.........
.........
trace: _agentx_realloc_build(): agentx/protocol.c, 915
dumpv_send:         errindex:   0
trace: _agentx_realloc_build(): agentx/protocol.c, 927
dumph_send:     Get* Variable List
trace: agentx_realloc_build_varbind(): agentx/protocol.c, 397
dumph_send:       VarBind
trace: agentx_realloc_build_varbind(): agentx/protocol.c, 398
dumph_send:         type
dumpx_send:          04 00
dumpv_send:            Short:   4 (0x04)
trace: agentx_realloc_build_varbind(): agentx/protocol.c, 444
dumph_send:         name
trace: agentx_realloc_build_oid(): agentx/protocol.c, 228
dumpv_send:           OID:
.4294967296.12884901888.25769803776.4294967296.17179869184.4294967296.34668976013312.12884901888.8589934592.42949672960
trace: agentx_realloc_build_oid(): agentx/protocol.c, 262
dumph_send:           OID Header
dumpx_send:            0A 00 00 00
dumpv_send:              # subids:      10 (0x0A)
trace: agentx_realloc_build_oid(): agentx/protocol.c, 266
dumpv_send:               prefix:       0 (0x00)
trace: agentx_realloc_build_oid(): agentx/protocol.c, 268
dumpv_send:               inclusive:    0 (0x00)
trace: agentx_realloc_build_oid(): agentx/protocol.c, 272
dumph_send:           OID Segments
dumpx_send:            00 00 00 00
dumpv_send:              Integer:       0 (0x00)
dumpx_send:            00 00 00 00
dumpv_send:              Integer:       0 (0x00)
dumpx_send:            00 00 00 00
dumpv_send:              Integer:       0 (0x00)
dumpx_send:            00 00 00 00
dumpv_send:              Integer:       0 (0x00)
dumpx_send:            00 00 00 00
dumpv_send:              Integer:       0 (0x00)
dumpx_send:            00 00 00 00
dumpv_send:              Integer:       0 (0x00)
dumpx_send:            00 00 00 00
dumpv_send:              Integer:       0 (0x00)
dumpx_send:            00 00 00 00
dumpv_send:              Integer:       0 (0x00)
dumpx_send:            00 00 00 00
dumpv_send:              Integer:       0 (0x00)
dumpx_send:            00 00 00 00
dumpv_send:              Integer:       0 (0x00)
trace: agentx_realloc_build_varbind(): agentx/protocol.c, 453
dumph_send:         value
trace: agentx_realloc_build_string(): agentx/protocol.c, 300
dumph_send:           Build String
trace: agentx_realloc_build_string(): agentx/protocol.c, 301
dumph_send:             length
dumpx_send:              19 00 00 00
dumpv_send:                Integer:     25 (0x19)
dumpx_send:              4E 65 74 2D 53 4E 4D 50 20 41 67 65 6E 74 58 20
73 75 62 2D 61 67 65 6E 74 00 00 00
dumpv_send:                String:      Net-SNMP AgentX sub-agent
dumpx_send:  58 00 00 00
dumpv_send:    Integer: 88 (0x58)
trace: _agentx_realloc_build(): agentx/protocol.c, 999
agentx_build: packet built okay

Sending 108 bytes to Local IPC: abstract
0000: 01 12 00 00  07 00 00 00  00 00 00 00  F2 7F 5B 79    ..............[y
0016: 58 00 00 00  C7 03 00 00  00 00 00 00  04 00 00 00    X...............
0032: 0A 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
0048: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
0064: 00 00 00 00  00 00 00 00  00 00 00 00  19 00 00 00    ................
0080: 4E 65 74 2D  53 4E 4D 50  20 41 67 65  6E 74 58 20    Net-SNMP AgentX
0096: 73 75 62 2D  61 67 65 6E  74 00 00 00                 sub-agent...
-------------------------------------------------------------------------------------------------------------------------------


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to