snmp view—Define an SNMP MIB view.
vManage Feature Template
For all Viptela devices:
Configuration ► Templates ► SNMP
snmp view string oid oid-subtree [exclude]
- Include or Exclude a Subtree of MIB Objects
If you omit the exclude option in the oid command, the subtree of MIB objects is included, or viewable, in the MIB view.
If you specify the exclude option, the subtree of MIB objects is excluded and hence is not viewable in the MIB view. For example, you might want to exclude MIB objects which could potentially reveal information about configure SNMP credentials (such as snmpUsmMIB, snmpVacmMIB, and snmpCommunityMIB).
- Object Identifier
- oid oid-subtree
Object identifier of a subtree of MIB objects. Specify the OID in Abstract Syntax Notation One (ASN.1) notation, as a sequence of dotted integers that identify the node of an SNMP tree. Use the asterisk wildcard (*) in any position of the OID subtree to match any value at that position rather than matching a specific type or name.
- View Name
- view string
Name of the view record you are creating. It can be a maximum of 32 characters. If the name includes spaces, enclose it in quotation marks (" ").
show running-config snmp
Create a view of the Internet portion of the SNMP MIB:
Viptela# show running-config snmp snmp no shutdown view v2 oid 22.214.171.124 ! community private view v2 authorization read-only ! !
Create a view of the private portion of the Viptela MIB:
viptela(config-snmp)# view viptela-private oid 126.96.36.199.4.1.41916
Configure a MIB view for system status:
Viptela(config)# show config snmp view status oid 188.8.131.52.184.108.40.206.2.1.8 ! !
Command introduced in Viptela Software Release 14.1.
Wildcard for configuring OID subtree added in Release 16.2.