How does system fill MIB entries with Read-Only Access?

房东的猫 提交于 2019-12-11 19:15:16

问题


For managing the system configuration, we use MIB Management Systems in some form or the other, which may be C-structure based or Yang Module for data modeling. Now there are entries in the MIB which are marked as read-only, or not accessible for the manager i.e. Northbound Interfaces. The operational data is often kept in such entries, like system up-time etc.

So, is the filling of data by the Device itself in these fields implementation specific or does the device also use GET/SET/TEST type of mechanism to write to these MIB leafs?


回答1:


When you are defining MIB with ASN.1 ,

MAX-ACCESS

clause will be

READ-ONLY

for that particular data. So it makes snmp-set queries to fail on that particular Object Identifiers (OIDs) because the agent does not allow any values to be set for them. Other possible values for MAX-ACCESS are READ-WRITE, RIGHT-CREATE, WRITE-ONLY, NOT-ACCESSIBLE and ACCESSIBLE-FOR_NOTIFY. Take a look at the online edition of Essential SNMP for information.



来源:https://stackoverflow.com/questions/11735527/how-does-system-fill-mib-entries-with-read-only-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!