3Com 4500 PWR 50-PORT Switch User Manual


 
SNMP Configuration Commands 383
Parameter
None.
Description
Use the enable snmp trap updown command to enable the current port to
transmit the LINK UP and LINK DOWN trap information.
Use the undo enable snmp trap updown command to disable the current port to
transmit the LINK UP and LINK DOWN trap information.
Example
Enable the current port Ethernet1/0/1 to transmit the LINK UP and LINK DOWN
trap information.
<SW4500>system-view
System View: return to User View with Ctrl+Z.
[SW4500]interface Ethernet 1/0/1
[SW4500-Ethernet1/0/1]enable snmp trap updown
[SW4500-Ethernet1/0/1]
snmp-agent community Syntax
snmp-agent community { read | write } community-name [ mib-view
view-name ] [ acl acl-list ] ]
undo snmp-agent community community-name
View
System view
Parameter
read: Indicate that MIB object can only be read.
write: Indicate that MIB object can be read and written.
community-name: Community name character string.
view-name: MIB view name.
acl acl-list: set access control list for specified community.
Description
Use the snmp-agent community command to set the community access name and
enable access to SNMP. Use the
undo snmp-agent community command to cancel
the settings of community access name.
Example
Configure community name as comaccess and with read-only access permission.
<SW4500>system-view
System View: return to User View with Ctrl+Z.
[SW4500]snmp-agent community read comaccess
[SW4500]