CLI Reference Guide Syslog Configuration Commands
service sysname
Use this command to attach system name to logs. The no form of this command removes the system
name from the logs.
service sysname
no service sysname
No system name is attached.
Global configuration mode.
This command allows you to decide whether to add system name in the log information.
Add system name in the log information:
Mar 22 15:28:02 %SYS-5-CONFIG: Configured from console by console
Ruijie #config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie (config)#service sysname
Ruijie (config)#end
Ruijie #
Mar 22 15:35:57 S3250 %SYS-5-CONFIG: Configured from console by console
Show the logs and related log configuration
parameters in the buffer.
service timestamps
Use this command to attach timestamp into logs. The no form of this command removes the timestamp
from the logs. The default form of this command restores the timestamp configuration to the defalt.
service timestamps [ message-type [ uptime | datetime [ msec | year ] ] ]
no service timestamps [ message-type ]
default service timestamps [ message-type ]