
1、首先双击打开robotframework的 *** 作界面,选择打开tools选项中的run tests设置。
2、然后出现的界面中,就能看到其中的日记log目录。
3、然后打开电脑上的浏览器,点击地址栏,输入想要查看的日记目录,回车确定。
4、最后在d出的网页中,就可以看到交换机日志,点击就可以查看了。
将Cisco设备的日志发往syslog服务器,如下 *** 作:device#conf t
device(config)#logging on
device(config)#logging 172.16.86.102
device(config)#logging trap errors //日志记录级别,可用"?"查看详细内容
device(config)#logging source-interface loopback0 //日志发出用的源IP地址
device(config)#service timestamps log datetime localtime //日志记录的时间戳设置,可根据需要具体配置检验
device#sh logging
设置完成后,最好设置一下当前交换机或路由器的时钟。这样在日志服务器上就可以看到何时产生的日志。
switch#clock 9:48:00 21 Feb 2011
logging trap level //指定日志消息的级别
(0:紧急(Emergencies)
1:告警(Alerts)
2:严重的(Critical)
3:错误(Errors)
4:警告(Warnings)
5:通知(Notifications)
6:信息(Informational)
7:调试(Debugging))
syslog要考虑的主要是哪些日志需要发送到日志服务器上,即日志等级,
使用 如下命令:
device(config)#logging trap warning //日志记录级别,可用"?"查看详细内容
? emergency—Logs only emergency events.
? alert—Logs alert and more severe events.
? critical—Logs critical and more severe events.
? error—Logs error and more severe events.
? warning—Logs warning and more severe events.
? notice—Logs notice and more severe events.
? informational—Logs informational and more severe events.
? debug—Logs all events, including debug events.
为了防止日志量太大,一般设置成warning就行了。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)