How does system fill MIB entries with Read-Only Ac

2019-08-21 07:25发布

问题:

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.