Configuring Basic Snmp Functions - H3C S3100 Series Operation Manual

H3c s3100 series ethernet switches operation manual
Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Configuring Basic SNMP Functions

SNMPv3 configuration is quite different from that of SNMPv1 and SNMPv2c. Therefore, the
configuration of basic SNMP functions is described by SNMP versions, as listed in
1-3.
Table 1-2 Configure basic SNMP functions (SNMPv1 and SNMPv2c)
Operation
Enter system view
Enable SNMP agent
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
Command
system-view
snmp-agent
snmp-agent sys-info
{ contact sys-contact |
location sys-location |
version { { v1 | v2c | v3 }* |
all } }
snmp-agent community
Set a
{ read | write }
community
community-name [ acl
name
acl-number | mib-view
view-name ]*
snmp-agent group { v1 |
Set an
v2c } group-name [ read-view
SNMP
read-view ] [ write-view
group
write-view ] [ notify-view
notify-view ] [ acl acl-number ]
Add a user
snmp-agent usm-user { v1 |
to an
v2c } user-name group-name
SNMP
[ acl acl-number ]
group
snmp-agent packet
max-size byte-count
snmp-agent local-engineid
engineid
snmp-agent mib-view
{ included | excluded }
view-name oid-tree [ mask
mask-value ]
1-3
Table 1-2
and
Table
Description
Optional
Disabled by default.
You can enable SNMP
agent by executing this
command or any of the
commands used to
configure SNMP agent.
Required
By default, the contact
information for system
maintenance is "R&D
Hangzhou, H3C
Technology Co., Ltd.", the
system location is
"Hangzhou China", and the
SNMP version is SNMPv3.
Required
You
can
set
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.
Optional
1,500 bytes by default.
Optional
By default, the device
engine ID is "enterprise
number + device
information".
Optional
By default, the view name
is "ViewDefault" and OID is
1.
an

Advertisement

Chapters

Table of Contents
loading

Table of Contents