Hi!
I am working on SNMPv1 for my device. I have a question about detecting end of MIB file. For example if I issue walk from manager and I get to the end of my objects list, how do I handle this situation? Do I set some error status field in the response and if so, what error status should I put in the response message so the manager will know that this is end of my objects list?
Some error codes include:
+-------------------+---------------------------------------------------------------------------+
| Error Status | |
+------------+------+ Description |
| Name | Code | |
+------------+------+---------------------------------------------------------------------------+
| noError | 0x00 | No error occurred. |
| tooBig | 0x01 | The response to your request was too big to fit into one response. |
| noSuchName | 0x02 | The OID in the request was not found.the OID doesn't exist. |
| badValue | 0x03 | A data type in the request did not match the data type in the SNMP agent. |
| readOnly | 0x04 | The SNMP manager attempted to set a read-only parameter. |
| genErr | 0x05 | General Error (some error other than the ones listed above). |
+------------+------+---------------------------------------------------------------------------+
Thanks!
I am working on SNMPv1 for my device. I have a question about detecting end of MIB file. For example if I issue walk from manager and I get to the end of my objects list, how do I handle this situation? Do I set some error status field in the response and if so, what error status should I put in the response message so the manager will know that this is end of my objects list?
Some error codes include:
+-------------------+---------------------------------------------------------------------------+
| Error Status | |
+------------+------+ Description |
| Name | Code | |
+------------+------+---------------------------------------------------------------------------+
| noError | 0x00 | No error occurred. |
| tooBig | 0x01 | The response to your request was too big to fit into one response. |
| noSuchName | 0x02 | The OID in the request was not found.the OID doesn't exist. |
| badValue | 0x03 | A data type in the request did not match the data type in the SNMP agent. |
| readOnly | 0x04 | The SNMP manager attempted to set a read-only parameter. |
| genErr | 0x05 | General Error (some error other than the ones listed above). |
+------------+------+---------------------------------------------------------------------------+
Thanks!