Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Junos OS 最低系统日志记录配置

 

要记录或查看系统日志消息,必须将syslog语句包含在[edit system]层次结构级别。为消息指定至少一个目标,详见中表 1所述。有关配置语句的详细信息,请参阅单机箱系统日志记录配置概述

表 1: 系统日志记录的最低配置语句

目标

最低配置语句

文件

[edit system syslog]
file filename {
facility severity;
}

一个、多个或所有用户的终端会话

[edit system syslog]
user (username | *) {
facility severity;
}

路由器或交换机控制台

[edit system syslog]
console {
facility severity;
}

路由器或交换机上的远程机器或其他路由引擎

[edit system syslog]
host (hostname | other-routing-engine) {
facility severity;
}