3Com 4500 Switch User Manual


 
1-3
To do… Use the command… Remarks
Direct
configura
tion
Set a
community
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
community
name and
access
permission
Indirect
configura
tion
Add a user
to an
SNMP
group
snmp-agent usm-user { v1 |
v2c } user-name group-name
[ acl acl-number ]
Required
z You can set an
SNMPv1/SNMPv2c
community name
through direct
configuration.
z Indirect configuration is
compatible with
SNMPv3. The added
user is equal to the
community name for
SNMPv1 and
SNMPv2c.
z You can choose either
of them as needed.
Set the maximum size of an SNMP
packet for SNMP agent to receive or
send
snmp-agent packet
max-size byte-count
Optional
1,500 bytes by default.
Set the device engine ID
snmp-agent local-engineid
engineid
Optional
By default, the device
engine ID is “enterprise
number + device
information”.
Create/Update the view information
snmp-agent mib-view
{ included | excluded }
view-name oid-tree [ mask
mask-value ]
Optional
By default, the view name
is ViewDefault and OID is
1.
Follow these steps to configure basic SNMP functions (SNMPv3):
To do… Use the command… Remarks
Enter system view
system-view
Enable SNMP agent
snmp-agent
Optional
Disabled by default.
You can enable SNMP agent by
executing this command or any
of the commands used to
configure SNMP agent.
Set system information and
specify to enable SNMPv3 on
the switch
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 " 3Com
Corporation.", the system
location is " Marlborough, MA
01752 USA ", and the SNMP
version is SNMPv3.
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