H3C S5100-SI Operation Manual page 510

Ethernet switches
Hide thumbs Also See for H3C S5100-SI:
Table of Contents

Advertisement

Set system information, and specify
to enable SNMPv1 or SNMPv2c on
the switch
Direct
configura
tion
Set a
community
name and
access
Indirect
permission
configura
tion
Set the maximum size of an SNMP
packet for SNMP agent to receive or
send
Set the device engine ID
Create/Update the view information
Follow these steps to configure basic SNMP functions (SNMPv3):
To do...
Enter system view
Enable SNMP agent
Set system information and
specify to enable SNMPv3 on
the switch
snmp-agent sys-info
sys-contact
sys-location
|
}* |
v3
all
snmp-agent community
Set a
|
}
write
community
community
acl-number
name
view-name
snmp-agent group
Set an
group-name
SNMP
] [
read-view
group
] [
write-view
notify-view
Add a user
snmp-agent usm-user
to an
}
v2c
user-name group-name
SNMP
[
acl acl-number
group
snmp-agent packet max
-
byte
count
snmp-agent local
engineid
snmp-agent mib
{
included
-
view
name oid
mask-value
Use the command...
system-view
snmp-agent
snmp-agent sys-info
|
location
sys-contact
|
{ {
|
version
v1
v2c
1-3
Required
By default, the contact
{
contact
information for system
|
location
maintenance is "Hangzhou
|
{ {
|
version
v1
v2c
H3C Technologies Co.,
} }
Ltd.", the system location is
"Hangzhou China", and the
SNMP version is SNMPv3.
{
read
-
[
name
acl
Required
|
mib-view
]*
{
|
}
v1
v2c
[
read-view
write-view
notify-view
] [
]
acl acl-number
{
|
v1
]
Optional
-
size
1,500 bytes by default.
Optional
By default, the device
-
engineid
engine ID is "enterprise
number + device
information".
Optional
-
view
|
}
excluded
By default, the view name
-
[
tree
mask
is ViewDefault and OID is
]
1.
Optional
Disabled by default.
You can enable SNMP agent by
executing this command or any
of the commands used to
configure SNMP agent.
Optional
By default, the contact
information for system
{
contact
maintenance is "Hangzhou
sys-l
ocation
H3C Technologies Co., Ltd.",
|
}* |
} }
v3
all
the system location is
"Hangzhou China", and the
SNMP version is SNMPv3.
You
can
set
an
SNMPv1/SNMPv2c
community name through
direct configuration.
Indirect configuration is
compatible with SNMPv3.
The added user is equal to
the community name for
SNMPv1 and SNMPv2c.
You can choose either of
them as needed.
Remarks

Advertisement

Table of Contents
loading

This manual is also suitable for:

H3c s5100-ei

Table of Contents