R3204P16-HP Load Balancing Module System Maintenance Configuration Guide-6PW101
54
SNMP configuration examples
SNMPv1/SNMPv2c configuration example
Network requirements
As shown in Figure 25, the NMS connects to the agent through an Ethernet. The NMS at 1.1.1.2/24 uses
SNMPv1 or SNMPv2c to manage the SNMP agent at 1.1.1.1 / 24 , a n d t h e a g e n t a u t o m a t ic a l ly s e n d s
traps to the NMS to report events.
Figure 25 Network diagram for SNMPv1/v2c
Configuration procedure
1. Configure the SNMP agent
# Configure the IP address of the agent as 1.1.1.1/24 and make sure that the agent and the NMS can
reach each other. (The configuration procedure is omitted here)
# Configure the SNMP version for the agent as v1 or v2c, create a read-only community and name it
public, and a read and write community and name it private.
<Sysname> system-view
[Sysname] snmp-agent sys-info version v1 v2c
[Sysname] snmp-agent community read public
[Sysname] snmp-agent community write private
# Configure the contact person and physical location information of the agent.
[Sysname] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Sysname] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable the agent to send SNMPv1 traps to the NMS at 1.1.1.2, using public as the community name.
(To ensure that the NMS can receive traps, specify the same SNMP version in the snmp-agent target-host
command as on the NMS.)
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 udp-port 5000 params
securityname public v1
2. Configure the SNMP NMS
# Configure the SNMP version for the NMS as v1 or v2c, create a read-only community and name it
public, and create a read and write community and name it private. For information about how to
configure the NMS, see the manual came with your NMS.
NOTE:
The configurations on the agent and the NMS must match.
3. Verify the configuration
• After the above configuration, an SNMP connection is established between the NMS and the agent.
The NMS can get and configure the values of some parameters on the agent through MIB nodes.