snmp-v2-community

Configures the SNMPv2 community.
Syntax
snmp-v2-communitycommunity
no snmp-v2-communitycommunity

After the snmp-v2-community command is entered to enable the SNMP v2 Community configuration mode, the following configuration syntax is available:

[notification|read|write]

After the notification command is entered in SNMP v2 Community configuration mode, the following additional configuration syntax is available:

[notification-targetip-address[port]|notification-type{inform|trap}]
Command Default

No SNMP communities are configured.

Parameters
community
Community name.
notification
Enables notification privilege. This keyword is supported on the SmartZone 100 and vSZ-E controllers only.
notification-target
Enables notification target by setting the IP address and port.
ip-address
Specifies the IP address.
port
Specifies the port number. The range is from 1 to 65535.
notification-type
Specifies the notification type. This keyword is supported on the SmartZone 100 and vSZ-E controllers only.
inform
Specifies the notification type as informational.
trap
Specifies the notification type as an SNMP trap.
read
Enables SNMP read privileges.
write
Enables SNMP write privileges.
Modes

Global configuration mode

Usage Guidelines

The no form of the command deletes the SNMP community when entered in Configuration mode. In SNMP v2 Community Configuration mode, the no form is available for the notification, notification-target, read, and write keywords and applicable variables.

Note: The notification and notification-type keywords are supported on the SmartZone 100 and vSZ-E controllers only.
Examples

The following example shows how to create an SNMP community named comm3 and configure related parameters. The notification syntax in this example is supported on the SmartZone 100 and vSZ-E controllers only.

device# config
device(config)# snmp-v2-community comm3
device(config-snmp-v2-community)# read
device(config-snmp-v2-community)# notification
device(config-snmp-v2-community)# notification-target 10.10.1.2 port
device(config-snmp-v2-community)# notification-type inform

The following example shows how to disable the read privileges from the SNMP community named comm3.

device# config
device(config)# snmp-v2-community comm3
device(config-snmp-v2-community)# no read

The following example shows how to delete an SNMP community named comm3.

device# config
device(config)# no snmp-v2-community comm3