Snmp: correct behavior when only part of a table index is specified?

Suppose the MIB contains a table indexed by a MAC address. What is the correct agent behavior when a manager requests myTable.0.1? This is an incomplete index.

Some features that I see:

  • Return the first row to the table - treat this partial index as the first row.
  • Think of it as a subtree - return the rows in the table corresponding to this MAC prefix.
  • Do not return rows - consider this as the next after the last row in the table.
  • Return some kind of error?
+3
source share
1 answer

Depends on the operation.

A GET on an incomplete OID will return noSuchName.

GETNEXT OID OID.

, SNMP-. , OID, .

+4

Source: https://habr.com/ru/post/1760118/


All Articles