beautypg.com

5 typical snmp configuration examples – Accton Technology ES4710BD User Manual

Page 117

background image

116

E

ES4710BD 10 Slots L2/L3/L4 Chassis Switch

5.4.4.2.5 snmp-server host

Command: snmp-server host

no snmp-server host

Function: Sets the IP address and Trap community string of the NMS to receive SNMP trap

message; the “no snmp-server host ” command deletes the IP address of the NMS to

receive SNMP Trap message.

Command mode: Global Mode

Parameters: is the IP address of NMS to receive Trap messages;

is the community string used in sending Trap message.

Usage Guide: This command sets community string used to send Trap message, the string is also

the default RMON Event community string. If RMON Event has no community string set, the

community string set with this command will be used to send RMON Trap; if RMON Event has a

community string set, the RMON community string will be used to send RMON Trap

Example:

Set an IP address to receive Trap.

Switch(Config)#snmp-server host 1.1.1.5 dcstrap

Delete an IP address that receives Trap.

Switch(Config)#no snmp-server host 1.1.1.5

5.4.4.2.6 snmp-server securityip

Command: snmp-server securityip

no snmp-server securityip

Function: Configures the secure IP address for NMS allowed to access the switch: the “no

snmp-server securityip ” command deletes configured secure address.

Command mode: Global Mode

Parameters: is the NMS secure IP address, in decimal format.

Usage Guide: The SNMP packet sent by NMS will only be processed by the switch if the NMS IP

address matches the secure IP address set with this command.

Example:

Set the secure IP address for NMS.

Switch(Config)#snmp-server securityip 1.1.1.5

Delete a secure IP address.

Switch(Config)#no snmp-server securityip 1.1.1.5

5.4.5 Typical SNMP Configuration Examples