Chinaunix
标题:
如何将Cisco设备的日志发往syslog服务器
[打印本页]
作者:
chenxiaohua
时间:
2003-08-18 10:29
标题:
如何将Cisco设备的日志发往syslog服务器
以下配置描述了如何将Cisco设备的日志发往syslog服务器 \r\ndevice#conf t \r\n\r\ndevice(config)#logging on \r\n\r\ndevice(config)#logging a.b.c.d //日志服务器的IP地址 \r\n\r\ndevice(config)#logging facility local1 \r\n//facility标识, RFC3164 规定的本地设备标识为 local0 - local7 \r\n\r\ndevice(config)#logging trap errors //日志记录级别,可用\"?\"查看详细内容 \r\n\r\ndevice(config)#logging source-interface e0 //日志发出用的源IP地址 \r\n\r\n\r\ndevice(config)#service timestamps log datetime localtime\r\n//日志记录的时间戳设置,可根据需要具体配置 \r\n\r\n检验 \r\n\r\ndevice#sh logging
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2