T2700G-28TQ
JetStream 28-Port Gigabit Stackable L2+ Managed Switch CLI Guide
122
Example
Set the log host’s index as 2, IP address as 192.168.0.148 and the severity level
as 5:
T2700G-28TQ(config)#logging host index
2 192.168.0.148 5
copy logging flash tftp
Description
The
copy logging flash tftp
command is used save the log file in the flash to
the TFTP server.
Syntax
copy logging flash tftp ip-address
ip-address
filename
file-name
[
unit-id
]
Parameter
ip-address
—— The address of the TFTP server to receive the log file.
file
-name —— The name of the file to save the syslog.
unit
-
id
—— Specify the unit ID of the switch in the stack. By default, the syslog
of all the units in the stack will be saved.
Command Mode
Global Configuration Mode
Example
Save the unit 1’s system log file to the TFTP server 192.168.0.148 with the
name log.txt:
T2700G-28TQ(config)# copy logging flash tftp ip-address
192.168.0.148
filename
log.txt 1
clear logging
Description
The
clear
logging
command is used to clear the syslog in the log buffer and log
flash in the specified unit or the whole stack.
Syntax
clear
logging
[ buffer | flash ] [
unit
unit-id
]