Syslog配置:
-
开启信息管理功能。
-
命名信息通道名。
-
配置信息输出的通道和信息的模块、级别。
-
配置向syslog服务器发送信息的源接口信息。
-
配置信息输出到指定的syslog服务器。
-
配置syslog服务器。
查看命令:
display info-center
- 确保路由可达
2.开启信息管理功能
system-view
[~Device] info-center enable
- 命名通道名
为日志信息输出到syslog服务器的通道命名。
[*Device] info-center channel 6 name loghost1
-
配置信息输出的通道和信息模块、级别
配置HWTACACS模块和IM模块的级别为notification或者高于notification的日志信息由loghost通道输出到syslog服务器。
[*Device] info-center source hwtacacs channel loghost log level notification
[*Device] info-center source im channel loghost log level notification
配置PP4模块和AAA模块的级别为warning或者高于warning的日志信息由loghost1通道输出到syslog服务器。
[*Device] info-center source pp4 channel loghost1 log level warning
[*Device] info-center source aaa channel loghost1 log level warning
-
配置向syslog服务器发送信息的源接口信息
[*Device] info-center loghost source gigabitethernet1/0/0 -
配置信息输出到指定的syslog服务器
指定服务器作为syslog服务器
[*Device] info-center loghost 192.168.1.1 channel loghost facility local2
[*Device] commit