79
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
Command: snmp-server host {<ipv4-addr>|<ipv6-addr>} {v1|v2c|{v3
{NoauthNopriv|AuthNopriv|AuthPriv}}} <user-string>
no snmp-server host {<ipv4-addr>|<ipv6-addr>} {v1|v2c|{v3
{NoauthNopriv|AuthNopriv |AuthPriv}}} <user-string>
Function:
As for the v1/v2c versions this command configures the IP address and trap
community character string of the network manage station receiving the SNMP Trap