Operation Manual – SNMP-RMON
H3C S5500-EI Series Ethernet Switches
Chapter 1 SNMP Configuration
1-5
To do…
Use the command…
Remarks
Configure SNMP Agent
system information
snmp-agent sys-info
{
contact
sys-contact
|
location
sys-location
|
version
{ {
v1
|
v2c
|
v3
}*
|
all
} }
Required
The defaults are as
follows:
Hangzhou H3C Tech. Co.,
Ltd. for contact,
Hangzhou, China for
location and SNMP v3 for
the version.
Config
ure
directl
y
Config
ure a
comm
unity
name
snmp-agent community
{
read
|
write
}
community
-
name
[
acl
acl-number
|
mib-view
view-name
]*
Config
ure 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
]
Config
ure
SNMP
NMS
acces
s right
Config
ure
indirec
tly
Add a
new
user to
an
SNMP
group
snmp-agent usm-user
{
v1
|
v2c
}
user-name
group-name
[
acl
acl-number
]
Use either approach.
Both commands can be
used to configure SNMP
NMS access rights. The
second command was
introduced to be
compatible with SNMPv3.
The community name
configured on NMS should
be consistent with the
username configured on
the Agent.
Configure the maximum
size of an SNMP packet
that can be received or
sent by an SNMP agent
snmp-agent packet
max-size
byte
-
count
Optional
15,00 bytes by default
Configure the engine ID
for a local SNMP agent
snmp-agent
local-engineid
engineid
Optional
Company ID and device
ID by default
Create or update MIB
view content for an SNMP
agent
snmp-agent mib-view
{
excluded
|
included
}
view
-
name
oid
-
tree
[
mask
mask-value
]
Optional
ViewDefault by default
Caution:
The validity of a USM user depends on the engine ID of the SNMP agent. If the engine
ID used for USM user creation is not identical to the current engine ID, the USM user is
invalid.