Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Assigning views to an SNMP community

After you define an SNMP community and a view, you can associate each community with any number of views.

With reference to the figure Configuring SNMP communities and traps, the following example shows how to add views to a community.

Table 1. Assigning Views to an SNMP Community
Step Command
Specify a sub-tree to appear in the view.
vyatta@R1# set service snmp view myview oid
Associate the view with the community.
vyatta@R1# set service snmp community abc123 view
Commit the changes.
vyatta@R1# commit
Display the configuration.
vyatta@R1# show service snmp
snmp {
community abc123 {
view myview
view myview {