[Contents] [Prev] [Next] [Index] [Report an Error]

# Defining Named Views

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
   `

   The view name identifies a group of MIB objects for which to define access.

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
   `

[Contents] [Prev] [Next] [Index] [Report an Error]