beautypg.com

Snmp-server view, Snmp-server view 6 – Allied Telesis AT-8100 Series User Manual

Page 1176

background image

Chapter 74: SNMPv1 and SNMPv2c Commands

1176

SNMP-SERVER VIEW

Syntax

snmp-server view

viewname oid excluded|included

Parameters

viewname

Specifies the name of a new view. The maximum length is 64
alphanumeric and/or special characters. The string is case
sensitive. Spaces are not allowed.

oid

Specifies the OID of the view. The OID must be in decimal format.

excluded

Denies access to the part of the MIB tree specified by the OID.

included

Permits access to the part of the MIB tree specified by the OID.

Mode

Global Configuration mode

Description

Use this command to create SNMPv1 and SNMPv2c views on the switch.
Views are used to restrict the MIB objects that network managers can
access through the community strings. A view can have more than one
OID, but each OID must be entered in a separate command.

Confirmation Command

“SHOW SNMP-SERVER VIEW” on page 1169

Examples

This example creates a view that excludes all MIB objects in the OID
1.3.6.1.2.1. The view is assigned the name “sw12_restrict_view:”

awplus> enable
awplus# configure terminal
awplus(config)# snmp-server view sw12_restrict_view
1.3.6.1.2.1 excluded