Operation Manual – SNMP
Quidway S3100 Series Ethernet Switches
Chapter 1 SNMP Configuration
Huawei Technologies Proprietary
1-4
Table 1-2
Configure SNMP basic functions for SNMP V1 and SNMP V2C
Operation
Command
Description
Enter system view
system-view
—
Enable SNMP Agent
snmp-agent
Optional
By default, SNMP
Agent is disabled.
To enable SNMP
Agent, you can
execute this
command or those
commands used to
configure SNMP
Agent features.
Set system information
snmp-agent sys-info
{
contact
sys-contact
|
location
sys-location
|
version
{ {
v1
|
v2c
|
v3
}* |
all
} }
Required
By default, the contact
information for system
maintenance is "R&D
Beijing, Huawei
Technologies Co.,
Ltd.", the system
location is "Beijing
China", and the
SNMP version is
SNMP V3.
Direct
configu
ration
Set a
commun
ity name
snmp-agent
community
{
read
|
write
}
community
-
name
[
acl
acl-number
|
mib-view
view-name
]
Set an
SNMP
group
snmp-agent group
{
v1
|
v2c
}
group-name
[
read-view
read-view
]
[
write-view
write-view
]
[
notify-view
notify-view
] [
acl
acl-number
]
Set a
communi
ty name
and
access
authority
Indirect
configu
ration
Add a
new
user for
an
SNMP
group
snmp-agent usm-user
{
v1
|
v2c
}
user-name
group-name
[
acl
acl-number
]
Required
Direct configuration
for SNMP V1 and
SNMP V2C is based
on community name.
Indirect configuration.
The added user is
equal to the
community name for
SNMPV1 and
SNMPV2C.
You can choose either
of them as needed.
Set the maximum size of
SNMP packet that the Agent
can send/receive
snmp-agent packet
max
-
size
max-size
Optional
By default, it is 1,500
bytes.