?????? : 思科 500 系列高速缓存引擎

如何查看 Cache Engine 缓存中有哪些网站 /URL

2015 年 8 月 28 日 - 机器翻译
其他版本: PDFpdf | 英语 (2015 年 4 月 23 日) | 反馈


目录


简介

本文解释如何设置处理日志记录什么网站/URL在Cache Engine被缓存。

硬件与软件版本

使用这些硬件和软件版本,此配置开发并且测试了:

  • Hardware:Cisco缓存引擎500系列和73xx

  • 软件:Cisco Cache软件版本2.3.0和更新为ACNS版本4.x和5.x

处理日志

要保持跟踪什么网站访问,您需要启用注册Cache Engine的处理。

    1. 要开始,请验证处理日志启用。发出show transaction-logging命令

      ACNS 4.x

      ce-5#show transaction-logging
              Transaction Logs:
              Logging is disabled.
              End user identity is visible.
              File markers are disabled
              Archive interval: every-day at 00:00
              Maximum Number of Archived Files:  3
              Exporting files to servers is disabled.
              Export interval: every-day every 1 hour
              Working Log file - size: 0
              age: Unavailable
              No Archive Log file found
      ce-5#
      

      您能看到记录禁用。

      ACNS 5.x

      ce-5#show transaction-logging 
      Transaction log configuration:
      ---------------------------------------
      Logging is enabled.
      End user identity is visible.
      File markers are disabled.
      Archive interval: every-day every 1 hour
      Maximum size of archive file: 2000000 KB
      Log File format is squid.
      Windows domain is not logged with the authenticated username
      
      Exporting files to ftp servers is disabled.
      File compression is disabled.
      Export interval: every-day every 1 hour
      
      HTTP Caching Proxy Transaction Log File Info
        Working Log file - size : 206
                           age: 23
      
      WMT MMS Caching Proxy/Server Transaction Log File Info
        Working Log file - size : 575
                           age: 139
        Archive Log file - mms_export_192.168.10.208_20040108_115421  size: 575
      
      A&D Transaction Log File Info
        Working Log file - size : 119
                           age: 139
        Archive Log file - acqdist_192.168.10.208_20040108_115421     size: 119
      
      TV-out Transaction Log File Info
        Working Log file - size : 48
                           age: 139
        Archive Log file - tvout_192.168.10.208_20040108_115421       size: 48
      

    2. 当前日志文件在/local/var/log/translog目录(版本2)或/local1/logs (版本4和5)被命名working.log和存储。检查您的当前目录。
      ce-5#pwd
      /local
      ce-5#
      change directory to
      ce-5# cd /local/var/log/translog  (version 2)
      ce-5# cd /local1/logs             (version 4)
      check directory contents
      ce-5#pwd
      /local/var/log/translog
      
      ce-5#dir
        size      date         time       name                LongName        
      ----------  -------      ------     -----------         ----------------
             512  May-01-2001  00:00:00   .            <DIR>  .
             512  Jan-01-1988  00:09:14   ..           <DIR>  ..
             512  Aug-02-2000  19:28:32   ARCHIVE      <DIR>  archive
               0  May-01-2001  00:00:00   WORKING.LOG         working.log
          3 DIR(S),     1 FILE(S) 0 bytes
          2130116608 bytes AVAILABLE ON VOLUME /c0t0d0s1
      ce-5#
      

      版本4和5包括内容路由种族结果被记录的飞旋镖目录(配置用boomerang log-races enable命令)和出口目录日志文件FTP出口结果被记录(配置用transaction-logs export命令)。

    3. 要读文件的内容,请发出类型working.log命令。
      ce-5#type working.log
      ce-5#
      

      到现在,文件是空的。注意在dir命令的文件大小是零。

    4. 启用处理日志。
      ce-5#conf t
      Enter configuration commands, one per line. End with CNTL/Z
      ce-5(config)#transaction-logs enable
                  Starting transaction log processes
                  Started Transaction Log File Manager Archive Script
                  Started Transaction Log Daemon
      ce-5(config)#
      

      再检查发现处理日志是否启用。

      ce-5#show transaction-logging
              Transaction Logs:
              Logging is enabled.
              End user identity is visible.
              File markers are disabled
              Archive interval: every-day at 00:00
              Maximum Number of Archived Files:  3
              Exporting files to servers is disabled.
              Export interval: every-day every 1 hour
              Working Log file - size: 0
              age: 48
              No Archive Log file found
      ce-5#
      

      处理日志当前启用。

验证配置

这些是访问的网站(例如www.cisco.com)检查文件working.log的内容:

ce-5#type working.log 
987816643.766 116 10.1.1.5 TCP_MISS/0 1468 GET http://www.cisco.com/images* 
987816643.783 133 10.1.1.5 TCP_MISS/0 269 GET http://www.cisco.com/images/* 
987816643.799 299 10.1.1.5 TCP_MISS/0 18036 GET http://www.cisco.com/ - DI* 
987816643.816 166 10.1.1.5 TCP_MISS/0 4508 GET http://www.cisco.com/images* 
987816643.866 83 10.1.1.5 TCP_MISS/0 308 GET http://www.cisco.com/images/h*  
987816643.916 116 10.1.1.5 TCP_MISS/0 269 GET http://www.cisco.com/images/*  
987816643.933 99 10.1.1.5 TCP_MISS/0 1039 GET http://www.cisco.com/images/*  
987816644.16 149 10.1.1.5 TCP_MISS/0 1060 GET http://www.cisco.com/images/*  
987816644.49 133 10.1.1.5 TCP_MISS/0 868 GET http://www.cisco.com/images/h*
987816644.66 133 10.1.1.5 TCP_MISS/0 1130 GET http://www.cisco.com/images/*  
987816644.99 299 10.1.1.5 TCP_MISS/0 13945 GET http://www.cisco.com/images*
987816644.116 83 10.1.1.5 TCP_MISS/0 1886 GET http://www.cisco.com/images/* 
987816644.149 83 10.1.1.5 TCP_MISS/0 729 GET http://www.cisco.com/images/h*  

提示:多数次, working.log文件将变得非常大。查看在屏幕的文件是不可能的。执行此, FTP到Cache Engine和复制文件到本地设备查看它。

要获取对TCP_MISS的了解,参考了解缓存处理日志分析

要禁用处理日志,请发出这些命令:

 
ce-5#conf t 
Enter configuration commands, one per line. End with CNTL/Z 
ce-5(config)#no transaction-logs enable 
Stopping transaction log processes: 
Stopped transaction log daemon 
ce-5(config)# 

要检查处理日志状况,请发出此命令:

ce-5#sh transaction-logging 
Transaction Logs: 
  Logging is disabled. 
  End user identity is visible. 
  File markers are disabled 
  Archive interval: every-day at 00:00 

  Maximum Number of Archived Files:  3 
  Exporting files to servers is disabled. 
  Export interval: every-day every 1 hour 

 Working Log file - size: 3887 
                      age: Unavailable 
    No Archive Log file found 
ce-5# 

相关信息



相关的思科支持社区讨论

思科支持社区是您提问、解答问题、分享建议以及与工作伙伴协作的论坛。


Document ID: 15040