Sun Java System Web Proxy Server 4.0.3 2006Q2 Administration Guide

Managing the Cache URL List

The proxy has a utility called urldb that manages the URL list in the cache. You can use this utility to list the URLs that are cached. You can also selectively expire and remove cached objects from the cache database.

The urldb commands can be categorised into three groups based on the -o option:

To list domains, enter the following at the command line:

urldb -o matching_domains -e reg_exp -d conf-dir

For example:

urldb -o matching_domains -e “.*phoenix.*” -d server_root/proxy-serverid/config

where

To list all the matching sites in a domain, enter the following at the command line:

urldb -o matching_sites_in_domain -e reg_exp -m domain_name -d conf-dir

For example:

urldb -o matching_sites_in_domain -e “.*atlas” -m phoenix.com 
	-d server_root/proxy-serverid/config

where

To list all the matching sites, enter the following at the command line:

urldb -o all_matching_sites -e reg_exp -d conf-dir

For example:

urldb -o all_matching_sites -e “.*atlas.*” -d server_root/proxy-serverid/config

where

To list matching urls in a site, enter the following at the command line:

urldb -o matching_urls_from_site -e reg_exp -s site_name -d conf-dir

For example:

urldb -o matching_urls_from_site -e “http://.*atlas.*” -s atlas.phoenix.com 
	-d server_root/proxy-serverid/config

where

To expire or remove matching urls in a site, enter the following at the command line:

urldb -o matching_urls_from_site -e reg_exp -s site_name -x e -d conf-dir
urldb -o matching_urls_from_site -e reg_exp -s site_name -x r -d conf-dir

For example:

urldb -o matching_urls_from_site -e “http://.*atlas.*” -s atlas.phoenix.com 
	-x e -d iserver_root/proxy-serverid/config

where

To list all matching urls , enter the following at the command line:

urldb -o all_matching_urls -e reg_exp -d conf-dir

For example:

urldb -o all_matching_urls -e “.*cgi-bin.*” -d 
	server_root/proxy-serverid/config

where

To expire or remove all matching urls , enter the following at the command line:

urldb -o all_matching_urls -e reg_exp -x e -d conf-dir
urldb -o all_matching_urls -e reg_exp -x r -d conf-dir

For example:

urldb -o all_matching_urls -e “.*cgi-bin.*” -x e -d server_root/proxy-serverid/config

where

To expire or remove a list of URLs , enter the following at the command line:

urldb -l url-list -x e -e reg_exp -d conf-dir
urldb -l url-list -x r -e reg_exp -d conf-dir

For example:

urldb -l url.lst -x e -e “.*cgi-bin.*” -d server_root/proxy-serverid/config

where