Syslog 用于查看日志消息的应用
Severity:日志等级
0 Emergency
1 Alert
2 Critical
3 Error
4 Warning
5 Notice
6 Informational
7 Debug
思科
R1(config)#logging console
开启CONSOLE接口的日志
R1(config)#logging monitor
在TELNET时显示日志消息
R1#terminal monitor
打开路由器对终端界面的日志记录功能
R1#show logging
查看日志消息
R1(config)# logging buffered
调整日志缓存区的大小
R1(config)#service sequence-numbers
开启日志时间戳功能
R1(config)#logging host 1.1.1.1
将日志发往到日志服务器
R1(config)#logging trap
指定要发送到系统日志服务器的日志 消息的严重级别
华为
[HUAWEI] trace enable brief
打开业务诊断功能,并设置输出简要的业务诊断信息。
[HUAWEI] trace syslog source vlanif 100
设置诊断信息输出到日志服务器的源接口。