Command Reference Syslog Commands
service sysname
no service sysname
Parameter
Description
Parameter Description
N/A N/A
Defaults
No system name is attached to logs by default.
Command
Mode
Global configuration mode
Usage Guide
This command allows you to decide whether to add system name in the log information.
Configuration
Examples
The following example adds a 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
Related
Commands
Command Description
show logging
Shows basic configuration of log modules and
log information in the buffer.
Platform
Description
N/A
service timestamps
Use this command to attach timestamp into logs in global configuration mode. Use the no form of this
command to remove the timestamp from the logs. Use the default form of this command to restore
the timestamps of logs to the default values.
service timestamps [ message-type [ uptime | datetime [ msec | year ] ] ]
no service timestamps [ message-type ]
default service timestamps [ message-type ]
Parameter
Description
Parameter Description
message-type
The log type, including Log and Debug. The log type indicates the