一般情况下我们要查看squid的运行状态,命中率等都是用自带的cachemgr.cgi来查看的,但是那就需要有web服务器才行,其实使用squidclient就直接可以查看到squid的运行状态、命中率,响应时间等,使用方法如下:
首先要在squid的配置文件中配置运行cachemgr选项,然后到squid的bin目录下面找到squidclient
#./squidclient -p PORT mgr:COMMAND
#./squidclient -p PORT mgr:menu 可以打印出下面的可用命令
可选的命令如下:
****************************************************************************
命令 描述 可见性
menu This Cachemanager Menu public
shutdown Shut Down the Squid Process hidden
reconfigure Reconfigure the Squid Process hidden
offline_toggle Toggle offline_mode setting hidden
config Current Squid Configuration hidden
asndb AS Number Database public
carp CARP information public
cbdata Callback Data Registry Contents public
comm_epoll_incoming comm_incoming() stats public
client_list Cache Client List public
squidaio_counts Async IO Function Counters public
diskd DISKD Stats public
dns Dnsserver Statistics public
events Event Queue public
external_acl External ACL stats public
fqdncache FQDN Cache Stats and Contents public
forward Request Forwarding Statistics public
http_headers HTTP Header Statistics public
ipcache IP Cache Stats and Contents public
mem Memory Utilization public
pconn Persistent Connection Utilization Histograms public
redirector URL Redirector Stats public
refresh Refresh Algorithm Statistics public
info General Runtime Information public
service_times Service Times (Percentiles) public
filedescriptors Process Filedescriptor Allocation public
objects All Cache Objects public
vm_objects In-Memory and In-Transit Objects public
openfd_objects Objects with Swapout files open public
io Server-side network read() size histograms public
counters Traffic and Resource Counters public
peer_select Peer Selection Algorithms public
digest_stats Cache Digest and ICP blob public
5min 5 Minute Average of Counters public
60min 60 Minute Average of Counters public
utilization Cache Utilization public
histograms Full Histogram Counts public
active_requests Client-side Active Requests public
store_digest Store Digest public
storedir Store Directory Stats public
store_check_cachable_stats storeCheckCachable() Stats public
store_io Store IO Interface Stats public
store_log_tags Histogram of store.log tags public
server_list Peer Cache Statistics public
non_peers List of Unknown sites sending ICP messages public
**********************************************************************************
阅读(1717) | 评论(0) | 转发(0) |