Hi,
We are using
Net-snmp-5.2.2 in Agentx mode.
We started snmpd
using the command,
/usr/sbin/snmpd -x
705 -I -interfaces
Subagent is connected to snmpd and registered the MIBs
successfully. One of the OIDs registered is interfaces
"1.3.6.1.2.1.2"
Now we killed the
snmpd and subagent has detected that the connection with snmpd is down. We have
restarted snmpd, subagent has detected that snmpd is up, established
Agentx session and registered the mibs. But the log message
"registering pdu failed: 263!" appeared twice.
The packets dump at
subagent shows that for interfaces oid 1.3.6.1.2.1.2, register pdu is sent
thrice. Registration was successful for the first PDU. For the other two PDUs,
snmpd has sent the error code 263 indicating the duplicate registration.
The
following packet dump shows this.
Please let us know
the reason for duplicate registration of interfaces oid.
Regards,
Suresh.
=======================
Packets dump at
subagent
=======================
Sending 108 bytes to
TCP: [127.0.0.1]:705
0000: 01 01 00 00 00 00 00 00 00 00 00 00 C5 35 63 1C .............5c.
0016: 58 00 00 00 00 00 00 00 0C 00 00 00 01 00 00 00 X...............
0032: 03 00 00 00 01 00 00 00 06 00 00 00 01 00 00 00 ................
0048: 04 00 00 00 01 00 00 00 A1 00 00 00 0A 00 00 00 ................
0064: 04 00 00 00 01 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...
0000: 01 01 00 00 00 00 00 00 00 00 00 00 C5 35 63 1C .............5c.
0016: 58 00 00 00 00 00 00 00 0C 00 00 00 01 00 00 00 X...............
0032: 03 00 00 00 01 00 00 00 06 00 00 00 01 00 00 00 ................
0048: 04 00 00 00 01 00 00 00 A1 00 00 00 0A 00 00 00 ................
0064: 04 00 00 00 01 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...
Received 116 bytes from TCP: [127.0.0.1]:705
0000: 01 12 00 00 07 00 00 00 00 00 00 00 C5 35 63 1C .............5c.
0016: 60 00 00 00 BC 03 00 00 00 00 00 00 04 00 00 00 `...............
0032: 0C 00 00 00 01 00 00 00 03 00 00 00 01 00 00 00 ................
0048: 06 00 00 00 01 00 00 00 04 00 00 00 01 00 00 00 ................
0064: A1 00 00 00 0A 00 00 00 04 00 00 00 01 00 00 00 ................
0080: 00 00 00 00 19 00 00 00 4E 65 74 2D 53 4E 4D 50 ........Net-SNMP
0096: 20 41 67 65 6E 74 58 20 73 75 62 2D 61 67 65 6E AgentX sub-agen
0112: 74 00 00 00 t...
NET-SNMP version 5.2.2 AgentX subagent
connected
Sending 36 bytes to TCP: [127.0.0.1]:705
0000: 01 03 00 00 07 00 00 00 00 00 00 00 C6 35 63 1C .............5c.
0016: 10 00 00 00 00 7F 00 00 02 02 00 00 01 00 00 00 ................
0032: 02 00 00 00 ....
0000: 01 03 00 00 07 00 00 00 00 00 00 00 C6 35 63 1C .............5c.
0016: 10 00 00 00 00 7F 00 00 02 02 00 00 01 00 00 00 ................
0032: 02 00 00 00 ....
Received 44 bytes from TCP: [127.0.0.1]:705
0000: 01 12 00 00 07 00 00 00 00 00 00 00 C6 35 63 1C .............5c.
0016: 18 00 00 00 BC 03 00 00 00 00 00 00 05 00 00 00 ................
0032: 02 02 00 00 01 00 00 00 02 00 00 00 ............
Sending 40 bytes to TCP: [127.0.0.1]:705
0000: 01 03 00 00 07 00 00 00 00 00 00 00 C7 35 63 1C .............5c.
0016: 14 00 00 00 00 7F 00 00 03 02 00 00 01 00 00 00 ................
0032: 02 00 00 00 02 00 00 00 ........
Received 48 bytes from TCP: [127.0.0.1]:705
0000: 01 12 00 00 07 00 00 00 00 00 00 00 C7 35 63 1C .............5c.
0016: 1C 00 00 00 BC 03 00 00 00 00 00 00 05 00 00 00 ................
0032: 03 02 00 00 01 00 00 00 02 00 00 00 02 00 00 00 ................
Sending 36 bytes to TCP: [127.0.0.1]:705
0000: 01 03 00 00 07 00 00 00 00 00 00 00 C8 35 63 1C .............5c.
0016: 10 00 00 00 00 7F 00 00 02 02 00 00 01 00 00 00 ................
0032: 02 00 00 00 ....
Received 44 bytes from TCP: [127.0.0.1]:705
0000: 01 12 00 00 07 00 00 00 00 00 00 00 C8 35 63 1C .............5c.
0016: 18 00 00 00 BC 03 00 00 07 01 00 00 05 00 00 00 ................
0032: 02 02 00 00 01 00 00 00 02 00 00 00 ............
registering pdu failed: 263!
Sending 36 bytes to TCP: [127.0.0.1]:705
0000: 01 03 00 00 07 00 00 00 00 00 00 00 C9 35 63 1C .............5c.
0016: 10 00 00 00 00 7F 00 00 02 02 00 00 01 00 00 00 ................
0032: 02 00 00 00 ....
0000: 01 03 00 00 07 00 00 00 00 00 00 00 C9 35 63 1C .............5c.
0016: 10 00 00 00 00 7F 00 00 02 02 00 00 01 00 00 00 ................
0032: 02 00 00 00 ....
Received 44 bytes from TCP: [127.0.0.1]:705
0000: 01 12 00 00 07 00 00 00 00 00 00 00 C9 35 63 1C .............5c.
0016: 18 00 00 00 BC 03 00 00 07 01 00 00 05 00 00 00 ................
0032: 02 02 00 00 01 00 00 00 02 00 00 00 ............
registering pdu failed: 263!
