5. Configure the equipment administrator's contact information on the switch.
6. Configure NMS2.
Data Preparation
To complete the configuration, you need the following data:
l SNMP version
l User group name
l User name and password
l Authentication and encryption algorithms
l ACL number
l IP address of the NM station
l Equipment administrator's contact information
Procedure
Step 1 Configure available routes between the switch and the NM stations. Details for the configuration
procedure are not provided here.
Step 2 Enable the SNMP agent.
<Quidway> system-view
[Quidway] snmp-agent
Step 3 Configure the switch to run SNMPv3.
[Quidway] snmp-agent sys-info version v3
# Check the configured SNMP version.
[Quidway] display snmp-agent sys-info version
SNMP version running in the system:
SNMPv3
Step 4 Configure the NM stations' access rights.
# Configure an ACL to allow NMS2 to manage and disallow NMS1 from managing the
switch.
[Quidway] acl 2001
[Quidway-acl-basic-2001] rule 5 permit source 1.1.1.2 0.0.0.0
[Quidway-acl-basic-2001] rule 6 deny source 1.1.1.1 0.0.0.0
[Quidway-acl-basic-2001] quit
# Configure a MIB view.
[Quidway] snmp-agent mib-view included testview iso
# Configure an SNMPv3 user group and add a user to the group, and configure authentication
for the NMS administrator and encryption for the data transmitted between the switch and NMS2.
[Quidway] snmp-agent usm-user v3 testuser testgroup authentication-mode md5
87654321 privacy-mode des56 87654321
[Quidway] snmp-agent group v3 testgroup privacy write-view testview notify-view
testview acl 2001
Step 5 Configure the trap function.
[Quidway] snmp-agent target-host trap address udp-domain 1.1.1.2 params
securityname testuser
[Quidway] snmp-agent trap source loopback0
Quidway S5700 Series Ethernet Switches
Configuration Guide - Network Management 1 SNMP Configuration
Issue 01 (2011-10-26) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
43