统计squid下分频道cache文件总量

Posted by 4Aiur on 03/31/2010 in SysAdmin |

统计squid下分频道cache文件总量 今天有个朋友问我怎么查看squid下分频道的cache文件总量 想了想用下面的命令实现起来方便又快捷,^_^ strings swap.state | \ awk -F”/” /^http/'{if ($3 in host) host[$3]++; else host[$3]=1}END{for (item in host) print item,host[item] | “sort -k2 -nr”}’ 同一个url是否压缩和编码的区别的话,会计算成多个。

Tags: ,

Copyright © 2010-2024 4Aiur All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.