snmp-server community

To set up the community access string to permit access to the Simple Network Management Protocol (SNMP), use the snmp-server community command in Configuration mode. To disable this function, use the no form of this command.

snmp-server community word ro

Syntax Description

snmp-server community

The command to configure the SNMP server.

word

Accessing string that functions much like a password and allows access to SNMP. No blank spaces allowed. Supports up to 255 alphanumeric characters.

ro

Specifies read-only access.

Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

The snmp-server community command requires a community string and the ro argument; otherwise, an error occurs.

The SNMP Agent on the Cisco CDA provides read-only SNMP v1 and SNMP v2c access to the following MIBs:

 • SNMPv2-MIB

 • RFC1213-MIB

 • IF-MIB

 • IP-MIB

 • IP-FORWARD-MIB

 • TCP-MIB

 • UDP-MIB

 • HOST-RESOURCES-MIB

 • ENTITY-MIB—Only 3 MIB variables are supported on the ENTITY-MIB:

 – Product ID: entPhysicalModelName

 – Version ID: entPhysicalHardwareRev

 – Serial Number: entPhysicalSerialNumber

 • DISMAN-EVENT-MIB

 • NOTIFICATION-LOG-MIB

 • CISCO-CDP-MIB

Examples

/admin(config)# snmp-server community new ro

/admin(config)#

Related Commands

Command

Description

snmp-server host

Sends traps to a remote system.

snmp-server location

Configures the SNMP location MIB value on the system.

snmp-server contact

Configures the SNMP contact MIB value on the system.