Project Description
A simple application that touches each site and site collection on a Sharepoint or WSS server to rebuild the IIS cache.
This project was inspired by the Warm Up script I found at: http://blogs.msdn.com/joelo/archive/2006/08/13/697044.aspx
For information about how the script was developed, please see my blog: http://akennel.blogspot.com/

Normally IIS discards its cache overnight, which means that each Sharepoint site must be rebuilt the first time it is accessed. This can be very slow. This script will seek out every site and site collection on a sharepoint server, and send them an HTTP request, so that the site remains in cache.
The application consists of the program file, spwakeup.exe and two optional configuration files, sites.conf and exclude.conf.
You must run this application on a machine that has WSS or MOSS installed.
If you want to wake up a single site, you do not need sites.conf and it can be safely deleted.
If you need to wake up mulitple sites, list them in sites.conf, each on their own line.
If you want to exclude a single site, you do not need exclude.conf and it can be safely deleted.
If you need to exclude multiple sites, list them in exclude.conf, each on their own line.

The app recognizes 5 option switches (the switches can appear in any order):
-verbose --Displays the raw HTML of each site as it is woken.
-site:XXX.XXX -- specifies the starting URL. If you do not set anything, the app looks for sites.conf, and uses the sites listed there. If sites.conf does not exist, the default URL http://localhost is used.
-exclude:XXX.XXX -- specifies a URL that should not be woken. If you need to exclude several sites, list them in a file name exclude.conf located in the same folder as spwakeup.exe.
-nodiscover -- Turns off discovery mode.
-log:Filename -- specifies a log file to record the results. If a file is not specified, the log will be displayed on the console.

Examples:
spwakeup.exe
If the file sites.conf does not exist, runs against http://localhost. Discovers all local web applications. Displays log results on console.

spwakeup.exe -site:http://portal.mycompany.com -exclude:http://portal.mycompany.com/MySites -log:c:\log.txt
Runs against http://portal.mycompany.com. Excludes the site http://portal.mycompany.com/MySites and all its subsites. For example, http://portal.mycompany.com/MySites/Site1 would be excluded. Stores results in c:\log.txt.
Last edited Sep 23 2008 at 7:30 PM by akennel, version 13

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Archived page comments (7)

Updating...
© 2006-2010 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2010.2.2.16271