Installing and Administering an AnswerBook2 Server

Working With Server Reports

The AnswerBook2 server software maintains logs that show server errors and server access. In addition, it provides a summary report that displays how often document collections are being accessed and how many errors occur.

Book Access Summary Report

To see a summary of access to the books on the server, select View Book Access Summary from the Admin GUI. The book access report summarizes how often each book on the server has been accessed. For each book on the server, it displays the following:

Access Log Files

To turn on or turn off access logging, select Modify Server Configuration from the Admin GUI.

You can also use the following commands to perform these functions:


% /usr/lib/ab2/bin/ab2admin -o access_on [-m server_name] [-p server_port]
 

% /usr/lib/ab2/bin/ab2admin -o access_off [-m server_name] [-p server_port]
 

Note -

After you change the logging function, you must stop and start the documentation server. Log in as root on the server machine and type the following commands:


# /usr/lib/ab2/bin/ab2admin -o stop
# /usr/lib/ab2/bin/ab2admin -o start

Viewing the Access Log

To view the access log file, select View Log Files from the Admin GUI, then click on View Access Log File. The access log file is a text file that lists every access made to the documentation server. Each line in the access log looks similar to the following:


129.146.83.55 - - [04/Nov/1996:15:07:05 -0800]
"GET /icons/ab2_curr_home.gif HTTP/1.0" 200 1938

Where:

You can also use the following command to perform this function:


% /usr/lib/ab2/bin/ab2admin -o view_access [-m server_name] [-p server_port]

Error Log Files

To turn on or turn off error logging, select Modify Server Configuration from the Admin GUI.

You can also use the following commands to perform these functions:


% /usr/lib/ab2/bin/ab2admin -o error_on [-m server_name] [-p server_port]
 

% /usr/lib/ab2/bin/ab2admin -o error_off [-m server_name] [-p server_port]

Note -

After you change the logging function, you must stop and start the documentation server. Log in as root on the server machine and type the following commands:


# /usr/lib/ab2/bin/ab2admin -o stop
# /usr/lib/ab2/bin/ab2admin -o start

Viewing the Error Log

To view the error log file, select View Log Files from the Admin GUI, then click on View Error Log File. The error log file lists every error that occurred on this documentation server. You can use this information to determine the cause of server problems or unusual behaviors. These errors usually identify the server and port with which the error is associated, as well as some text that describes the error.

You can also use the following command to perform this function:


% /usr/lib/ab2/bin/ab2admin -o view_error [-m server_name] [-p server_port]

Rotating Log Files

The AnswerBook2 product allows you to save the current access or error log to a file and start logging information into an empty file.

When the Rotate Access (Error) Log File page appears:

  1. Enter the file name to save to in the Save Log File field.

    The default value is current_date.current_log_file_name. Where current_date is of the form YearYearYearYear_MonthMonth_DayDay_HourHour and current_log_file_name defaults to access-8888 or error-8888 (for example, 1997_02_26_14.access-8888.log).

    Note that the Log file location field shows you the path to where the file is saved. You cannot change this information on this page.

  2. Click on Apply.


Note -

After you change the logging function, you must stop and start the documentation server. Log in as root on the server machine and type the following commands:


# /usr/lib/ab2/bin/ab2admin -o stop
# /usr/lib/ab2/bin/ab2admin -o start

You can also use the following commands to perform these functions:


% /usr/lib/ab2/bin/ab2admin -o rotate_error [-m server_name] [-p server_port]
 

% /usr/lib/ab2/bin/ab2admin -o rotate_access [-m server_name] [-p server_port]