Getstats 3.0 Write Commands

write <reptype> <levels> <filename>

reptype can be dirtree, domain, error, or redir. This indicates what type of report you want

levels can be in the range 1 to 12, but is limited by the number of levels in memory. If dtrlevels is 6, then you can write a dirtree report with up to 6 levels. The dtrlevels setting also limits the redirect and error reports. If domlevels is 2, you can write a domain report with up to 2 levels.

You must set servername and icon before using the write command.

As shown in the following example, you can produce multiple reports from the same data. Change the output options using set commands before each write command. Any command arguments that contain upper case characters or special characters must be enclosed in quotes.

set servername "http://www.columbia.edu/"
set icon "http://www.columbia.edu/httpd/getstats/getstats.gif"
set ignorepublic yes
set sortkey nreq
set ignoreimages no
write dirtree 6 /www/data/httpd/reports/columbia/19980207.dtrreq6.html
write dirtree 2 /www/data/httpd/reports/columbia/19980207.dtrreq2.html
set sortkey nreq
set ignoreimages yes
write dirtree 6 /www/data/httpd/reports/columbia/19980207.htrreq6.html
write dirtree 2 /www/data/httpd/reports/columbia/19980207.htrreq2.html

* Academic Information Systems 212 854.1919 consultant@columbia.edu *
Research and Development Group
last modified on 02/11/98