snmp-server community

Syntax

snmp-server community没有snmp-server community

描述

Adds an SNMPv1/SNMPv2c community string. A community string is a password that controls read access to the SNMP agent. A network management program must supply this name when attempting to get SNMP information from the switch. A maximum of 10 community strings are supported. Once you create your own community string, the default community string (public) is deleted.

The没有form of this command removes the specified SNMPv1/SNMPv2c community string. When no community string exists, a default community string with the valuepublicis automatically defined.

Command context

config

Parameters

Specifies the SNMPv1/SNMPv2c community string. Range: 1 to 32 printable ASCII characters, excluding space and question mark.

权威

Administrators or local user group members with execution rights for this command.

Examples

设置SNMPv1/SNMPv2c community string to私人:

switch(config)#snmp-server community private

Removing SNMPv1/SNMPv2c community string私人:

switch(config)#没有snmp-server community private