5 snmp-server, 6 snmp-server enable traps, 7 snmp-server host – Accton Technology ES4626 User Manual
Page 77

77
Command mode:
Global Mode
Usage Guide:
The switch supports up to 4 community strings.
Example 1:
Add a community string named “private” with read-write permission.
Switch(config)#snmp-server community private rw
Example 2:
Add a community string named “public” with read-only permission.
Switch(config)#snmp-server community public ro
Example 3:
Modify the read-write community string named “private” to read-only.
Switch(config)#snmp-server community private ro
Example 4:
Delete community string “private”.
Switch(config)#no snmp-server community private
2.4.3.5 snmp-server
Command: snmp-server
no snmp-server
Function:
Enable the SNMP proxy server function on the switch. The “no snmp-server”
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
2.4.3.6 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 1:
Enable to send Trap messages.
Switch(config)#snmp-server enable traps
Example 2:
Disable to send Trap messages.
Switch(config)#no snmp-server enable trap
2.4.3.7 snmp-server host