3Com 4500 Switch User Manual


 
1-5
To do… Use the command… Remarks
Enable the switch to send
traps to NMS
snmp-agent trap enable [ configuration |
flash | standard [ authentication | coldstart
| linkdown | linkup | warmstart ]* | system ]
Enter port view or
interface view
interface interface-type interface-number
Enable the port
or interface to
send traps
enable snmp trap updown
Enable
the port to
send traps
Quit to system
view
quit
Optional
By default, a port
is enabled to send
all types of traps.
Set the destination for traps
snmp-agent target-host trap address
udp-domain { ip-address } [ udp-port
port-number ] params securityname
security-string [ v1 | v2c | v3 [ authentication
| privacy ] ]
Required
Set the source address for
traps
snmp-agent trap source interface-type
interface-number
Optional
Set the size of the queue used
to hold the traps to be sent to
the destination host
snmp-agent trap queue-size size
Optional
The default is 100.
Set the aging time for traps
snmp-agent trap life seconds
Optional
120 seconds by
default.
Configuring Extended Trap Function
The extended trap function refers to adding “interface description” and “interface type” into the
linkUp/linkDown trap. When receiving this extended trap, NMS can immediately determine which
interface on the device fails according to the interface description and type.
Follow these steps to configure extended trap function:
To do… Use the command… Remarks
Enter system view
system-view
Configure the extended trap
function
snmp-agent trap ifmib link
extended
Optional
By default, the linkUp/linkDown
trap adopts the standard format
defined in IF-MIB. For details, refer
to RFC 1213.
Enabling Logging for Network Management
Follow these steps to enable logging for network management:
To do… Use the command… Remarks
Enter system view
system-view