snmp-server view
Use this command to create or update a view entry
Use the no from of this command to remove a view entry.
Note: OIDs to be excluded or included need to be specifically mentioned while configuring the SNMP view. Only when the OIDs are included will they be displayed in SNMP-Walk. When an OID is excluded, other OIDs must be explicitly included for the system to function.
Command Syntax
snmp-server view VIEW-NAME OID-TREE (included | excluded) (vrf management|)
no snmp-server view VIEW-NAME (vrf management|)
Parameters
VIEW-NAME
Name of the snmp view (Maximum 32 alphanumeric characters)
OID-TREE
Object identifier of a subtree to include or exclude from the view; specify a text string consisting of numbers and periods, such as 1.3.6.2.4
included
Include OID-TREE in the SNMP view
excluded
Exclude OID-TREE from the SNMP view
management
Virtual Routing and Forwarding name
Default
By default, snmp-server view VIEW-NAME OID-TREE is disabled.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example creates a view named myView3 that excludes the snmpCommunityMIB object (1.3.6.1.6.3.18).
#configure terminal
(config)#snmp-server view myView3 1.3.6.1.6.3.18 excluded vrf management
Last modified date: 10/19/2023