3com 8807 Guida Di Riferimento
906
C
HAPTER
53: SNMP C
ONFIGURATION
C
OMMANDS
Example
# Enable current port Ethernet6/1/1 to transmit the LINK UP and LINK DOWN trap
information with the community name public
information with the community name public
<SW8800> system-view
System View: return to User View with Ctrl+Z.
[3Com-Ethernet6/1/1] snmp trap updown enable
[SW8800] snmp-agent target-host trap address udp-domain 10.1.1.1
params securityname public
[SW8800] interface ethernet6/1/1
[3Com-Ethernet6/1/1] enable snmp trap updown
snmp-agent community
Syntax
snmp-agent community { read | write } community-name [ [ mib-view
view-name ] [ acl acl-list ] ]
view-name ] [ acl acl-list ] ]
undo snmp-agent community community-name
View
System view
Parameter
read: Indicates that MIB object can only be read.
write: Indicates that MIB object can be read and written.
community-name: Community name character string.
view-name: MIB view name.
acl acl-list: sets access control list for specified community.
Description
Use the snmp-agent community command to configure community access
name and enable the access to SNMP.
name and enable the access to SNMP.
Use the undo snmp-agent community command to cancel the settings of
community access name.
community access name.
Example
# Configure community name as comaccess and permits read-only access by this
community name.
community name.
<SW8800> system-view
System View: return to User View with Ctrl+Z.
[SW8800] snmp-agent community read comaccess
# Configure community name as mgr and permits read-write access.
[SW8800] snmp-agent community write mgr
# Delete the community name comaccess.
[SW8800] undo snmp-agent community comaccess