Cisco 300 Series Cli Manual page 859

Stackable managed switches
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

45
859
prefix-length—(Optional) Specifies the number of bits that comprise the
IPv4 address prefix. If unspecified, it defaults to 32. The command returns
an error if the prefix-length is specified without an IPv4 address.
view-name
view
the command
configurations is imposed on the user). The view defines the objects
available to the community. It is not relevant for su, which has access to the
whole MIB. If unspecified, all the objects, except the community-table and
SNMPv3 user and access tables , are available. (Range: 1–30 characters)
Default Configuration
No community is defined
Command Mode
Global Configuration mode
User Guidelines
The logical key of the command is the pair (community, ip-address). If ip-address
is omitted, the key is (community, All-IPs). This means that there cannot be two
commands with the same community, ip address pair.
The
view-name
is used to restrict the access rights of a community string. When a
view-name is specified, the software:
Generates an internal security-name.
Maps the internal security-name for SNMPv1 and SNMPv2 security models
to an internal group-name.
Maps the internal group-name for SNMPv1 and SNMPv2 security models to
view-name (read-view and notify-view always, and for rw for write-view
also),
Example
Defines a password for administrator access to the management station at IP
address 1.1.1.121 and mask 255.0.0.0.
switchxxxxxx(config)#
Network Management Protocol (SNMP) Commands
—(Optional) Specifies the name of a view configured using
snmp-server view
(no specific order of the command
snmp-server community abcd su 1.1.1.121 mask 255.0.0.0
OL-32830-01 Command Line Interface Reference Guide

Advertisement

Table of Contents
loading

Table of Contents