52
Switch(config)#snmp-server community public ro
Modify the read-write community string named ―private‖ to read-only.
Switch(config)#snmp-server community private ro
Delete community string ―private‖.
Switch(config)#no snmp-server community private
Bind the read-only community string ―public‖ to readable view ―pviewr‖.
Switch(config)#snmp-server community ro public read pviewr
Bind the read-write community string ―private‖ to readable view ―pviewr‖ and writable view
―pvieww‖.
Switch(config)#snmp-server community rw private read pviewr write pvieww
1.4.12 snmp-server enable
Command: snmp-server enable
no snmp-server enable
Function: Enable the SNMP proxy server function on the switch. The ―no snmp-server
enable‖ command disables the SNMP proxy server function
Command mode: Global mode
Default: SNMP proxy server function is disabled by system default.
Usage guide: To perform configuration management on the switch with network manage
software, the SNMP proxy server function has to be enabled with this command.
Example: Enable the SNMP proxy server function on the switch.
Switch(config)#snmp-server enable
1.4.13 snmp-server enable traps
Command: snmp-server enable traps
no snmp-server enable traps
Function: Enable the switch to send Trap message; the ―no snmp-server enable traps‖
command disables the switch to send Trap message.
Command mode: Global Mode
Default: Trap message is disabled by default.
Usage Guide: When Trap message is enabled, if Down/Up in device ports or of system
occurs, the device will send Trap messages to NMS that receives Trap messages.
Example:
Enable to send Trap messages.
Switch(config)#snmp-server enable traps
Disable to send Trap messages.