Cisco Systems 15216 EDFA2 manual Creating a View, Set View Entry, Command

Models: 15216 EDFA2

1 280
Download 280 pages 30.04 Kb
Page 68
Image 68

Chapter 5 SNMP MIB Installation and Configuration

Enabling SNMP Remote Management Community Strings

F I N A L D R A F T - C I S C O C O N F I D E N T I A L

The privileges assigned to the default strings can be modified or new communities with custom privileges can be created.

5.2.1 Creating a View

The following command describes how to set a view entry. A view defines and restricts the MIB attributes that a particular community can access. The view entry and the community entry are set to factory defaults. Users should consult with the Cisco TAC before modifying these settings.

5.2.1.1 Set View Entry

Command

snmp row set local cerent15216EdfaViewEntry

 

snmp row set local cerent15216EdfaViewEntry view_index_# subtree

Syntax Description

 

To create a community entry, a view must first be created. A MIB view can restrict the MIBs that a

 

particular community can access. To create a view, type the command. view_index_# is an integer (1 to

 

2048) assigned to this view entry and subtree is the MIB subtree to which this view applies. Multiple

 

view entries can be used for each view index.

 

This command creates a new row in the ViewEntry table. The SNMP manager prompts the user for each

 

attribute.

 

 

To display a list of possible values, press the Spacebar followed by the Tab key. (See Example 5-3.)

 

Example 5-3 cerent15216EdfaViewEntry Set Command

 

ash:hostname:ONS15216 EDFA2> snmp row set local cerent15216EdfaViewEntry 1 cerent

 

cerent15216EdfaViewMask '0'H

 

 

cerent15216EdfaViewType included

 

cerent15216EdfaViewStatus

 

 

active

 

 

notInService

 

 

notReady

 

 

createAndGo

 

 

createAndWait

 

 

destroy

 

 

cerent15216EdfaViewStatus createAndGo

 

ash:hostname:ONS15216 EDFA2> snmp row display local cerent15216EdfaViewEntry 1 sample

 

CLASS cerent15216Edfa-AGENT-MIB.cerent15216EdfaViewEntry ::=

 

{

 

 

cerent15216EdfaViewIndex =

1;

 

cerent15216EdfaViewSubtree

= { sample };

 

cerent15216EdfaViewMask =

'00'H;

 

cerent15216EdfaViewType =

included;

 

cerent15216EdfaViewStatus =

active;

Access to the ONS 15216 EDFA2 can be restricted by IP address or community string using this command.

Table 5-3 on page 5-7describes the command and MIB view prompts.

Cisco ONS 15216 EDFA2 Operations Guide

5-6

78-16033-01

 

 

Page 68
Image 68
Cisco Systems 15216 EDFA2 manual Creating a View, Set View Entry, Command, Snmp row set local cerent15216EdfaViewEntry