3Com Switch 4200G Configuration Guide

280 CHAPTER 33: SNMP CONFIGURATION
Set a
community
name and
access
authority
Direct
configura
tion
Set a
community
name
snmp-agent community
{ read | write }
community-name [ acl
acl-number | mib-view
view-name ]
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.
Indirect
configura
tion
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 ]
Add a new
user for an
SNMP
group
snmp-agent usm-user { v1 |
v2c } user-name group-name
[ acl acl-number ]
Set the maximum size of SNMP
packets that the Agent can
send/receive
snmp-agent packet
max-size max-size
Optional
By default, it is 1,500
bytes.
Set the device engine ID snmp-agent local-engineid
engineid
Optional
By default, the device
engine ID is "Enterprise
Number + device
information".
Create or update the view
information
snmp-agent mib-view
{ included | excluded }
view-name oid-tree
Optional
By default, the view name
is ViewDefault and OID is
1.
Table 250 Configure SNMP basic functions (SNMP V3)
Operation Command Description
Enter system view system-view
Enable SNMP Agent snmp-agent Required
By default, SNMP Agent is
disabled.
Set system information snmp-agent sys-info
{ contact sys-contact |
location sys-location |
version { { v1 | v2c | v3 }* |
all } }
Optional
By default, the contact
information for system
maintenance is "R&D
Beijing, 3Com.", the
system location is "Beijing
China", and the SNMP
version is SNMP V3.
Set an SNMP group snmp-agent group v3
group-name [
authentication | privacy ] [
read-view read-view ] [
write-view write-view ] [
notify-view notify-view ] [
acl acl-number ]
Required
Add a new user for an SNMP group snmp-agent usm-user v3
user-name group-name [
authentication-mode
{ md5 | sha } auth-password
[ privacy-mode des56
priv-password ] ] [ acl
acl-number ]
Required
Table 249 Configure SNMP basic functions for SNMP V1 and SNMP V2C (Continued)
Operation Command Description