User Guide   
220 
 
TENDA(config)# snmp-server trap type 8 
Note: Enable Linkup Trap on the switch 
 
TENDA(config)# snmp-server trap type 16 
Note: Enable Authentication Trap on the switch 
TENDA(config)# snmp-server trap type 31 
Note: Enable all Trap features the switch supports 
 
TENDA(config)# snmp-server trap interface range fastethernet 0/1-24 
Note: Enable trap features mentioned above on all ports 
 
  View Trap settings 
TENDA# show snmp-server traps 
 
  Disable trap 
TENDA(config)# snmp-server trap off 
 
  Create the destination host 
TENDA(config)# snmp-server host 192.168.0.2 traps version 2c public udp-port 162 
Note: Set destination host IP to 192.168.0.1, Trap version to V2c, UDP port number to 162 and 
community name to public 
TENDA(config)# snmp-server host 172.16.100.20 traps version 1 555 udp-port 200 
Note: Set destination host IP to 172.16.100.20, Trap version to V1, UDP port number to 200 and 
community name to 555 
 
  Delete the destination host 
TENDA(config)# no snmp-server host 192.168.0.2 public 
Note: Delete destination host IP 192.168.0.2 
 
5.3.34 Log configuration 
  Enable/disable logging 
TENDA(config)# logging on                   
Note: Enable log 
TENDA(config)# logging off                     
Note: Disable log 
 
  Enable/disable log server 
TENDA(config)# logging host 192.168.100.78 level warning on             
Note: Enable log server       
TENDA(config)# logging host 192.168.100.78 level warning off               
Note: Disable log server 
 
  Display logs and log settings