XS26GS Managed Optical Ethernet Switch User Manual
156
snmp-server traps-host
Syntax
snmp-server traps-host
host-ip
no snmp-server traps-host
host-ip
View
System view.
Parameters
host-ip
: specifies the destination for the SNMP traps.
Description
Use
snmp-server traps-host
command to set a destination host to receive the
SNMP traps generated.
Use
no snmp-server traps-host
command to cancel the current setting.
Multiple destination hosts can be set to receive traps.
Examples
XS#
snmp-server traps-host
192.168.0.111
Add traps-host successfully!
snmp-traps
Syntax
snmp-traps
no snmp-traps
View
Ethernet port view
Parameters
None.
Description
Use
snmp-traps
command to enable the sending of port/interface linkUp/linkDown
traps.
Use
no snmp-traps
command to disable the sending of linkUp/linkDown traps.
By default, sending port/interface linkUp/linkDown traps is enabled.
Note that you need to enable the generation of port/interface linkUp/linkDown traps
on both port/interface and global to make it effective. To enable this function on a
port/interface, use
snmp-traps
command; to enable this function globally, use
snmp-server traps
command.
By default, both are enabled.
Examples