Defining Named Views (SRC CLI)

A named view identifies a group of MIB objects to which access is enabled. Each MIB object in a named view contains a common object identifier (OID) prefix that represents a subtree of MIB objects for the view.

Use the following configuration statements to define named views:

snmp view view-name ...
snmp view view-name oid oid { (include|exclude); }

To configure named views:

  1. From configuration mode, access the configuration statement that configures the named views.
    [edit]user@host# edit snmp view view-name
  2. Specify the object identifier (OID) that represents a subtree of MIB objects for the view and whether the OID is included in or excluded from the view.

    To include the OID in the view:

    [edit snmp view view-name] user@host# set oid oid include

    To exclude the OID from the view:

    [edit snmp view view-name] user@host# set oid oid exclude
  3. (Optional) Verify your configuration.
    [edit snmp view view-name]
    	user@host# show
    
    test_view {oid 1.3.6.1.2.1.1.4 {exclude;}oid 1.3.6.1.2.1.1.5 {exclude;}oid system {include;}}

Related Documentation