Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Defining MIB views

To define a MIB view, specify the name of the view and the SNMP Object Identifier (OID) of the subtree to be included or excluded in the view. To identify a single row in a MIB table to be included within the view, specify a bit mask.

The following table shows the MIB views named EquipIdent, NetConfig, TrafficIn, and IntNoDescr and the OID subtrees to be included or excluded in these views.

To define MIB views, perform the following steps in configuration mode.

Table 1. Defining MIB views
StepCommand
Specify a name for a MIB view and define an OID subtree to be included in the view. Configure each MIB view one at a time
vyatta@R1# set service snmpview EquipIdent oid 1.3.6.1.2.1.1.1.0
vyatta@R1# set service snmpview EquipIdent oid 1.3.6.1.2.1.1.2.0
vyatta@R1# set service snmpview EquipIdent oid 1.3.6.1.2.1.1.4.0
vyatta@R1# set service snmpview NetConfig oid 1.3.6.1.2.1.4.24.6.0
vyatta@R1# set service snmpview NetConfig oid 1.3.6.1.2.1.4.24.7
vyatta@R1# set service snmpview NetConfig oid 1.3.6.1.2.1.4.22
vyatta@R1# set service snmpview TrafficIn oid 1.3.6.1.2.1.2.2.1.10 
vyatta@R1# set service snmpview TrafficIn oid 1.3.6.1.2.1.2.2.1.11 
vyatta@R1# set service snmpview IntNoDescr oid 1.3.6.1.2.1.2.2.1 
Specify a name for the MIB view and define an OID subtree to be excluded from the view.
vyatta@R1# set service snmpview IntNoDescr oid 1.3.6.1.2.1.2.2.1.2 exclude
Commit the change.
vyatta@R1# commit
Verify the configuration.
vyatta@R1# show snmpview
SNMP Views:
View : EquipIdent
OIDs :
       .1.3.6.1.2.1.1.1.0
       .1.3.6.1.2.1.1.2.0
       .1.3.6.1.2.1.1.4.0
View : IntNoDescr
OIDs :
       .1.3.6.1.2.1.2.2.1
       .1.3.6.1.2.1.2.2.1.2 exclude
View : NetConfig
OIDs :
       .1.3.6.1.2.1.4.22
       .1.3.6.1.2.1.4.24.6.0
       .1.3.6.1.2.1.4.24.7
View : TrafficIn
OIDs :
       .1.3.6.1.2.1.2.2.1.10
       .1.3.6.1.2.1.2.2.1.11