beautypg.com

Snmp-server view – Allied Telesis AT-DC2552XS User Manual

Page 213

background image

AT-DC2552SX Switch Command Line Interface User’s Guide

Section I: Switch Management

213

SNMP-SERVER VIEW

Syntax

snmp-server view

viewname

oid

included

Parameters

viewname

Specifies the name of a view. A view name is case-

sensitive and can be up to 20 alphanumeric characters.
Spaces, exclamation marks (!), and question marks (?)
are not permitted.

oid

Specifies the OID (object identifier) of the view. The OID

must be in decimal format.

Mode

Global Configuration mode

Description

Use this command to create an SNMPv3 view or add a view entry to an
existing SNMPv3 view on the switch. Views are used to restrict the MIB
objects that a group of SNMP users can access. The views defined using
this command are added to a definition of a group with the SNMP-
SERVER GROUP command. See “SNMP-SERVER GROUP” on
page 206. A vie
w can have more than one OID, but you must enter each
OID in a separate command.

Confirmation Command

“SHOW SNMP-SERVER VIEW” on page 199

Examples

This example creates a view named “standard,” with includes all MIB
objects under the internet node (1.3.6.1):

awplus> enable
awplus# configure terminal
awplus(config)# snmp-server view standard 1.3.6.1 included

This example creates a view named “admins,” which includes all MIB
objects under the MIB-2 node (1.3.6.1.2.1):

awplus> enable
awplus# configure terminal
awplus(config)# snmp-server view admins 1.3.6.1.2.1 included