1. Configure the SNMP version.
2. Enable the extended error code function on the SNMP agent.
Data Preparation
To complete the configuration, you need the following data:
l Version number of SNMP
Procedure
Step 1 Configure reachable routes between the Switch and the NMSs. The configuration procedure is
not mentioned.
Step 2 Configure the SNMP version.
# Configure the version of SNMPv2.
<Quidway> system-view
[Quidway] snmp-agent sys-info version v2c
Step 3 Enable the extended error code function on the SNMP agent.
# Enable the extended error code function on the SNMP agent.
[Quidway] snmp-agent extend error-code enable
Step 4 Check the configuration.
# Check whether the extended error code function is enabled on the SNMP agent.
[Quidway] display snmp-agent extend error-code status
Extend error-code status:enabled
----End
Configuration Files
Configuration file of the Switch
#
sysname Switch
vlan batch 10
#
interface Vlanif10
ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 10
port hybrid untagged vlan 10
#
snmp-agent
snmp-agent extend error-code enable
snmp-agent local-engineid 000007DB7F0000010000393C
snmp-agent sys-info version v2c v3
#
return
1.23.7 Example for Configuring Alarm Messages to Be Sent to the
Huawei NMS
Quidway S9300 Terabit Routing Switch
Configuration Guide - Network Management 1 SNMP Configuration
Issue 03 (2010-09-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1-89