Users Guide

Table Of Contents
oid-tree Enter the SNMP object ID at which the view starts in 12-octet dotted-decimal format.
included (Optional) Include the MIB family in the view.
excluded (Optional) Exclude the MIB family from the view.
Defaults Not configured
Command Mode CONFIGURATION
Usage
Information
The oid-tree value specifies the OID in the MIB tree hierarchy at which a view starts. Enter included
or excluded to include or exclude the remaining part of the MIB sub-tree contents in the view.
Supported on the MX9116n and MX5108n switches in Full Switch mode starting in release 10.4.2.0. Also
supported in SmartFabric mode starting in release 10.5.0.1.
The no version of the command removes an SNMPv3 view.
Example
OS10(config)# snmp-server view readview 1.3.6.5 excluded
Supported
Releases
10.4.2.0 or later
snmp-server vrf
Configures an SNMP agent to receive SNMP traps for the management VRF instance.
Syntax
snmp-server vrf management
Parameters None
Defaults Not configured
Command Mode CONFIGURATION
Usage
Information
The no version of this command disables the SNMP agent from receiving the SNMP traps.
Example
OS10(config)# snmp-server vrf management
Supported
Releases
10.4.1.0 or later
Example: Configure SNMP
This example shows how to configure SNMP on the switch, including SNMP engine ID, views, groups, and users.
OS10(config)# snmp-server contact "Contact Support"
OS10(config)# snmp-server engineID remote 192.168.1.2 udp-port 502 0xdefa
OS10(config)# snmp-server engineID local test
OS10(config)# snmp-server group sngroup 2c notify notofy_view
OS10(config)# snmp-server group snv3group 3 noauth read read_view
OS10(config)# snmp-server user snuser sngroup 3 auth sha a2FubmFuX3Rlc3Q=
OS10(config)# snmp-server view readview 1.3.6.1.2.1.2.2 included
OS10(config)# snmp-server view snview .1 excluded
OS10(config)# do show snmp engineID local
Local default SNMP engineID: 0x800002a20474657374
OS10(config)# do show snmp engineID remote
Remote Engine ID IP-addr Port
0xdefa 192.168.1.2 502
OS10(config)# do show snmp group
groupname : sngroup
version : 2c
notifyview : notofy_view
groupname : snv3group
System management
135