Cisco Cisco IOS Software Release 12.0(22)S

Page de 22
      MPLS Label Switching Router MIB
snmp-server community
20
Cisco IOS Release 12.0(22)S
Examples
In this example, the read-write community string is set to newstring:
Router(config)# snmp-server community newstring rw
In the following example, the string comaccess is assigned to SNMPv1, allowing read-only access. IP 
access list 4 is enabled to use the community string:
Router(config)# snmp-server community comaccess ro 4
In the following example, the string mgr is assigned to SNMPv1, allowing read-write access to the 
objects in the restricted view:
Router(config)# snmp-server community mgr view restricted rw
In the following example, the community comaccess is removed:
Router(config)# no snmp-server community comaccess
In the following example, both versions of SNMP are disabled:
Router(config)# no snmp-server 
Related Commands
Command
Description
snmp-server host
Specifies the recipient of an SNMP trap operation.
snmp-server 
enable-trap
Enables the router to send SNMP traps.