home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help 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
1.3.6.1.2.1.4
Associate the view with the community.
vyatta@R1# set service snmp community abc123 view
myview
Commit the changes.
vyatta@R1# commit
Display the configuration.
vyatta@R1# show service snmp
snmp {
community abc123 {
view myview
}
view myview {
oid 1.3.6.1.2.1.4
}
}