lcc_lin 发表于 2004-7-18 14:02:49

[转帖]使用syslog记录Cisco设备日志

以下配置描述了如何将Cisco设备的日志发往syslog服务器 <br>
<br>
device#conf t <br>
<br>
device(config)#logging on <br>
<br>
device(config)#logging a.b.c.d //日志服务器的IP地址 <br>
<br>
device(config)#logging facility local1 <br>
<br>
//facility标识, RFC3164 规定的本地设备标识为 local0 - local7 <br>
<br>
device(config)#logging trap errors //日志记录级别,可用"?"查看详细内容 <br>
<br>
device(config)#logging source-interface e0 //日志发出用的源IP地址 <br>
<br>
device(config)#service timestamps log datetime localtime <br>
<br>
//日志记录的时间戳设置,可根据需要具体配置 <br>
<br>
检验 <br>
<br>
device#sh logging

winlinux 发表于 2005-4-12 13:11:20

re:东西比较实用

东西比较实用
页: [1]
查看完整版本: [转帖]使用syslog记录Cisco设备日志