Hi, Dave wrote:
> Hmmm.... > I'm a bit rusty at decoding AgentX packets, but I'm not at all sure that > this registration request looks right: > Can you please try the same thing, but running the agent as > > snmpd -f -Le -Ddump > > It's only necessary to post the second pair of AgentX packets (the > Register/Response pair). this is the simple registration (not the one with the table row). I can send the output of the other too, if necessary: Received 52 bytes from TCP: [127.0.0.1]:2913 0000: 01 03 08 00 06 00 00 00 00 00 00 00 01 00 00 00 ................ 0016: 20 00 00 00 06 00 00 00 70 75 62 6C 69 63 00 00 .......public.. 0032: 05 7F 00 00 03 04 00 00 01 00 00 00 CC 12 00 00 ............╠... 0048: 01 00 00 00 .... dumph_recv: AgentX Header dumph_recv: Version dumpx_recv: 01 dumpv_recv: Version: 1 dumph_recv: Command dumpx_recv: 03 dumpv_recv: Command: 3 (Register) dumph_recv: Flags dumpx_recv: 08 dumpv_recv: Flags: 0x8 dumph_recv: Reserved Byte dumpx_recv: 00 dumpv_recv: Reserved: 0x0 dumph_recv: Session ID dumpx_recv: 06 00 00 00 dumpv_recv: Integer: 6 (0x06) dumph_recv: Transaction ID dumpx_recv: 00 00 00 00 dumpv_recv: Integer: 0 (0x00) dumph_recv: Packet ID dumpx_recv: 01 00 00 00 dumpv_recv: Integer: 1 (0x01) dumph_recv: Payload Length dumpx_recv: 20 00 00 00 dumpv_recv: Integer: 32 (0x20) dumph_recv: Context dumpx_recv: 06 00 00 00 dumpv_recv: Integer: 6 (0x06) dumpx_recv: 06 00 00 00 70 75 62 6C 69 63 00 00 dumpv_recv: String: public. dumph_recv: PDU dumph_recv: Registration Header dumpx_recv: 05 dumpv_recv: Timeout: 5 dumpx_recv: 7F dumpv_recv: Priority: 127 dumpx_recv: 00 dumpv_recv: Range Sub-Id: 0 dumph_recv: Registration OID dumph_recv: OID Header dumpx_recv: 03 04 00 00 dumpv_recv: # subids: 3 (0x03) dumpv_recv: prefix: 4 (0x04) dumpv_recv: inclusive: 0 (0x00) dumph_recv: OID Segments dumpx_recv: 01 00 00 00 dumpv_recv: Integer: 1 (0x01) dumpx_recv: CC 12 00 00 dumpv_recv: Integer: 4812 (0x12CC) dumpx_recv: 01 00 00 00 dumpv_recv: Integer: 1 (0x01) dumpv_recv: OID: SNMPv2-SMI::enterprises.4812.1 dumph_send: AgentX Header dumpx_send: 01 12 00 00 dumpv_send: Version: 1 dumpv_send: Command: 18 (Response) dumpv_send: Flags: 00 dumph_send: Session ID dumpx_send: 06 00 00 00 dumpv_send: Integer: 6 (0x06) dumph_send: Transaction ID dumpx_send: 00 00 00 00 dumpv_send: Integer: 0 (0x00) dumph_send: Request ID dumpx_send: 01 00 00 00 dumpv_send: Integer: 1 (0x01) dumph_send: Dummy Length :-( dumpx_send: 00 00 00 00 dumpv_send: Integer: 0 (0x00) dumph_send: AgentX Payload dumpx_send: F7 04 00 00 dumpv_send: Integer: 1271 (0x4F7) dumph_send: Response dumpx_send: F7 04 00 00 dumpv_send: sysUpTime: 1271 dumpx_send: 00 00 dumpv_send: Short: 0 (0x00) dumpx_send: 00 00 dumpv_send: Short: 0 (0x00) dumph_send: Response errors dumpx_send: 00 00 00 00 dumpv_send: errstat: 0 dumpv_send: errindex: 0 dumph_send: Get* Variable List dumph_send: VarBind dumph_send: type dumpx_send: 05 00 dumpv_send: Short: 5 (0x05) dumph_send: name dumpv_send: OID: SNMPv2-SMI::enterprises.4812.1 dumph_send: OID Header dumpx_send: 03 04 00 00 dumpv_send: # subids: 3 (0x03) dumpv_send: prefix: 4 (0x04) dumpv_send: inclusive: 0 (0x00) dumph_send: OID Segments dumpx_send: 01 00 00 00 dumpv_send: Integer: 1 (0x01) dumpx_send: CC 12 00 00 dumpv_send: Integer: 4812 (0x12CC) dumpx_send: 01 00 00 00 dumpv_send: Integer: 1 (0x01) dumph_send: value dumpx_send:1C 00 00 00 dumpv_send: Integer: 28 (0x1C) Sending 48 bytes to TCP: [127.0.0.1]:2913 0000: 01 12 00 00 06 00 00 00 00 00 00 00 01 00 00 00 ................ 0016: 1C 00 00 00 F7 04 00 00 00 00 00 00 05 00 00 00 ....≈........... 0032: 03 04 00 00 01 00 00 00 CC 12 00 00 01 00 00 00 ........╠....... In comparision to the JAgentX implementation, NET-SNMP sends additional data in the open and register responses. What does the value 28 mean? Andreas ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
