3Com Switch 7750 Configuration Guide

742 CHAPTER 68: SNMP CONFIGURATION
Set a
community
name and
access
authority
Direct
configura
tion
Set a
communit
y 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 byte-count
Optional
By default, it is 2,000
bytes.
Set the device switch fabric ID snmp-agent local-switch
fabricid switch fabricid
Optional
By default, the device
switch fabric 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 596 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
You can enable SNMP agent
by executing this command or
any configuration command
of snmp-agent
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 “Hangzhou
3Com Technologies Co.,
Ltd.”, the system location is
“Marlborough, MA”, 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
Table 595 Configure SNMP basic functions for SNMP V1 and SNMP V2C
Operation Command Description