280
C
HAPTER
33: SNMP C
ONFIGURATION
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
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-l
ocation
|
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
Summary of Contents for 4200G 12-Port
Page 10: ...8 CONTENTS...
Page 14: ...4 ABOUT THIS GUIDE...
Page 46: ...32 CHAPTER 5 LOGGING IN THROUGH WEB BASED NETWORK MANAGEMENT SYSTEM...
Page 48: ...34 CHAPTER 6 LOGGING IN THROUGH NMS...
Page 60: ...46 CHAPTER 9 VLAN CONFIGURATION...
Page 64: ...50 CHAPTER 10 MANAGEMENT VLAN CONFIGURATION...
Page 80: ...66 CHAPTER 13 GVRP CONFIGURATION...
Page 98: ...84 CHAPTER 15 LINK AGGREGATION CONFIGURATION...
Page 112: ...98 CHAPTER 18 MAC ADDRESS TABLE MANAGEMENT...
Page 126: ...112 CHAPTER 19 LOGGING IN THROUGH TELNET...
Page 162: ...148 CHAPTER 20 MSTP CONFIGURATION...
Page 274: ...260 CHAPTER 29 IGMP SNOOPING CONFIGURATION...
Page 276: ...262 CHAPTER 30 ROUTING PORT JOIN TO MULTICAST GROUP CONFIGURATION...
Page 298: ...284 CHAPTER 33 SNMP CONFIGURATION...
Page 304: ...290 CHAPTER 34 RMON CONFIGURATION...
Page 338: ...324 CHAPTER 36 SSH TERMINAL SERVICES...
Page 356: ...342 CHAPTER 38 FTP AND TFTP CONFIGURATION...
Page 365: ...Information Center Configuration Example 351 S4200G terminal logging...
Page 366: ...352 CHAPTER 39 INFORMATION CENTER...
Page 378: ...364 CHAPTER 40 BOOTROM AND HOST SOFTWARE LOADING...
Page 384: ...370 CHAPTER 41 Basic System Configuration and Debugging...
Page 388: ...374 CHAPTER 43 NETWORK CONNECTIVITY TEST...
Page 406: ...392 CHAPTER 45 CONFIGURATION OF NEWLY ADDED CLUSTER FUNCTIONS...