1.3.2 Configuring Basic SNMPv2c Functions
After basic SNMP functions are configured, an NM station can perform basic operations such
as Get and Set operations on a managed device, and the managed device can send alarms to the
NM station.
Context
Steps
, and
are mandatory for the configuration of basic SNMP functions. After the
configurations, basic SNMP communication can be conducted between the NM station and
managed device.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
(Optional) Run:
snmp-agent
The SNMP agent function is enabled.
By default, the SNMP agent function is disabled. Running any command with the parameter
snmp-agent
can enable the SNMP agent function, so this step is optional.
Step 3
Run:
snmp-agent sys-info
version
v2c
The SNMP version is set.
By default, SNMPv3 is enabled.
After SNMPv2c is enabled on the managed device, the device supports both SNMPv2c and
SNMPv3. This means that the device can be monitored and managed by NM stations running
SNMPv2c and SNMPv3.
Step 4
Run:
snmp-agent community
{
read
|
write
}
community-name
The community name is set.
After the community name is set, if no MIB view is configured, the NM station that uses the
community name has rights to access objects in the Viewdefault view (1.3.6.1).
l
read
needs to be configured in the command if the NM station administrator needs the read
permission in a specified view in some cases. For example, a low-level administrator needs
to read certain data.
l
write
needs to be configured in the command if the NM station administrator needs the read
and write permissions in a specified view in some cases. For example, a high-level
administrator needs to read and write certain data.
Step 5
Choose one of the following commands as needed to configure the destination IP address for
the alarms and error codes sent from the device.
l
If the network is an IPv4 network, configure the device to send either traps or informs to the
NM station.
Quidway S2700 Series Ethernet Switches
Configuration Guide - Network Management
1 SNMP Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
17