InnerhalbNach weiteren Dokumenten suchenSupport-Ressourcen |
Chapter 3 Administering an AnswerBook2 ServerAdministering AnswerBook2 software consists of performing the following functions, each of which includes specific tasks: Administering the Documentation ServerThe AnswerBook2 software provides a web-browser interface (the Admin GUI) and a command-line interface (ab2admin) that you can use to administer the documentation server. Most functions are available in either interface. To access the main page of the Admin GUI, select AnswerBook2 Administration from the Options Page of the AnswerBook2 browser, or, if you are running CDE, select AnswerBook2 Admin from the System_Admin applications window. All pages in the Admin GUI include a standard set of icons across the top of the screen. To access the command-line interface, use the command: /usr/lib/ab2/bin/ab2admin. For detailed information about the command-line interface, see the ab2admin(1m) man page. Note - Only authorized administrative users can access the administrative functions. For more information, see "Controlling Administrative Access". Starting and Stopping the Documentation ServerWhen you boot the system on which the documentation server is running, the server is started automatically (through the /etc/init.d/ab2mgr script). You can also manually start, stop, and restart the documentation server when needed. For example, you must restart the documentation server after you install a new document collection. To perform these functions, log in as root on the documentation server machine and use the ab2admin command-line interface.
Turning On or Off Document Source DebuggingThe AnswerBook2 server has a debugging option that, when enabled, displays unrecognized markup in the book source in red with the word "BUG" in the viewer. This function helps to identify problems if a book does not display as expected. To turn on debugging, log in as root to the documentation server's system and set the environment variable AB2_DEBUG to 1. For example:
To turn off debugging, log in as root to the documentation server's system and set the environment variable AB2_DEBUG to 0. For example:
Note - After you change the debugging parameter, you must restart the documentation server. To restart the documentation server, type:
To control debugging when you start up the server, use the following form of the start-up command:
Controlling Administrative AccessAn administrative user is a user specifically defined for performing document administrative functions. The AnswerBook2 product uses passwords to verify that a given administrator is allowed to perform administrative functions on the server. Setting Up Initial Administrative AccessThe AnswerBook2 software comes with access control turned on for performing administrative functions, but with no default administrative user defined. The first time you attempt to access the AnswerBook2 administrative functions, the software informs you that access control is turned on but no user is defined. You can do one of two things at this point:
Adding Access for AnswerBook2 AdministratorsTo add an administrative user, select Add Administrator from the Admin GUI. To add the administrative user:
Note - You need to enter the password twice for verification. You can also use the following command to perform this function:
Changing the Password for an AdministratorTo change an administrator's password, select Change Password from the Admin GUI. To modify the password:
When you click Change Password, the AnswerBook2 software checks to see that the data entered in the New Password and Re-enter New Password fields agree. If they do, the new password is stored in the database. If they do not, the software displays an error. You can also use the following command to perform this function:
Removing Access for an AdministratorTo remove a user from the list of administrative users:
You can also use the following command to perform this function:
Working with Document CollectionsAn AnswerBook2 collection is a logical grouping of books. For example, you might have a collection that contains all SolarisTM developer-oriented books. This collection can be an AnswerBook2 (SGML) collection or an AnswerBook1 (Display PostScriptTM) collection. Listing CollectionsTo see a list of all collections installed on your server, select View List of Available Collections from the Admin GUI. This list includes AnswerBook1 collections and AnswerBook2 collections. You can also use the following command to perform this function:
Adding New CollectionsTo add a collection to the server's database, select Add Collection to List from the Admin GUI. This function assumes the collection already exists as an installed package on the server's system or some other system to which the server has access. If the collection is not yet installed, use pkgadd to add the collection first, then use this function. For new collections (those that are on the Solaris 7 Documentation CD, for example), if you run the pkgadd command on the server, it adds the collections to the server's list automatically. Perform the following steps to install the collection:
You can also use the following command to perform this function:
Note - After you install a collection, you must restart the documentation server. To restart the documentation server, click Restart on the Admin GUI's status page or type the following from the command line:
Adding Existing CollectionsThe AnswerBook2 server can scan your current system to find locally installed AnswerBook1 and AnswerBook2 collections and add them to the server's database. To have the server perform this function for you, select Scan for Locally Installed Collections from the Admin GUI. This function creates and displays a list of all valid document collections it finds on the local system. To add a collection to the server's database:
Collections that do not have a checkbox next to them are already in the database. Note - If the list does not include document collections that are installed on a local mount point, verify that the directory into which the collections were installed has read access set for others. You can also use the following command to perform this function:
The command line scanning function adds all the collections it finds; it does not allow you to choose which collections to add. Note - After you install a collection, you must restart the documentation server. To restart the documentation server, click Restart on the Admin GUI's status page or type the following from the command line:
Removing AnswerBook2 CollectionsTo remove an AnswerBook2 or AnswerBook1 collection from the server's database, select Delete Collection from List from the Admin GUI. To remove the collection:
You can also use the following command to perform this function:
Note - These functions do not remove the collection packages from the system; they only remove the entry for the collection from the server's database. To remove the packages from the system use the pkgrm utility. Note - After you remove a collection, you must restart the documentation server. To restart the documentation server, click Restart on the Admin GUI's status page or type the following from the command line:
Configuring the Documentation ServerTo view the current server configuration, select View Current Configuration from the Admin GUI. To change these settings, select Modify Server Configuration from the Admin GUI. Viewing Documentation Server ConfigurationThe View Current Configuration page lists the settings shown in Table 3-1 and Table 3-2. These settings are stored in the server_config_path/dwhttpd.cfg file (which defaults to /usr/lib/ab2/dweb/data/config/dwhttpd.cfg). Note - If you are running a CGI-based server rather than the default NSAPI-based server, only some server configuration options are visible in the Admin GUI's interface. For more information, see "Configuration Issues when Running the Server as a CGI Process". Table 3-1 User-Configurable Server Configuration Settings
Note - The document administrator should not manually change the settings shown in Table 3-2. The system configures these settings when you install the server software. Table 3-2 Fixed Server Configuration Settings
You can also use the following command to view the current server configuration:
Changing Documentation Server ConfigurationWhen you install the AnswerBook2 server software, certain variables are set to default values. Use the fields on the Modify Server Configuration page to change these values. You can change the following server settings:
These functions are also available through the administration command-line interface (ab2admin). For detailed information about the command-line interface, see the ab2admin(1m) man page. You can also edit the server_config_path/dwhttpd.cfg file (which defaults to /usr/lib/ab2/dweb/data/config/dwhttpd.cfg) to change these values. Note - If you change any of these values, you must stop and start the documentation server. Log in as root on the server machine and type the following commands:
Using a Port Number Less Than 1024Port numbers below 1024 are reserved for system use. To use one of these numbers (for example, port number 80) for the AnswerBook2 server, perform the following steps:
Configuration Issues when Running the Server as a CGI ProcessBecause the AnswerBook2 server follows standard web protocols, you can run the AnswerBook2 server as a CGI process on an existing server, rather than as the default NSAPI server. For information on how to configure your server to run this way, see "Running the AnswerBook2 Documentation Server as a CGI Process". If you run your documentation server as a CGI process, the following configuration settings will not display on the View Configuration Settings page of the Admin GUI:
The only option available on the Modify Server Configuration page will be turning on or turning off access control. All other functions will not display. The following options for the ab2admin command will not work:
Working with Other Documentation ServersWhen a user clicks on a link in a book, the AnswerBook2 server can follow that link to another AnswerBook2 server. If the book exists on the current documentation server, the link goes there. If, however, the book being linked to is not located on the current server, the AnswerBook2 server "falls through" to any alternate documentation servers defined for it to access. You can use this capability to distribute documents across various servers or to create a backup of the documents. Identifying Alternate Documentation ServersTo see what alternate servers are defined, select View List of Alternate Servers from the Admin GUI. This displays a list of servers currently identified as "fall-through" servers. If a user clicks on a link in a book and that book is not located on the current server, the AnswerBook2 product examines the servers in this list to find the target for the link. The AnswerBook2 server comes with a pre-defined alternate server of http://docs.sun.com, which is Sun's master documentation server and contains released Sun documentation. For each alternate server defined for the current server, this page shows the name of the server, its port number, and a link to the list of collections installed on that server. When you click on show list of collections, you are prompted for administrative ID and password for the alternate server (if administrative access control is defined for the alternate server). In other words, you can add an alternate server without having administrative access to it, but you can only view the list of collections on the alternate server if you have administrative access to it. Note - There is no command line option to perform this function. Adding Alternate Documentation ServersTo enable your current server to access books located on another server (for the purpose of following links between books), select Add Alternate Server from the Admin GUI.
You can also use the following command to perform this function:
Removing Additional Documentation ServersTo remove a server from your server's list of alternate servers, select Delete Alternate Server from the Admin GUI. Note - This removes the server from the list of alternate servers for the local documentation server. This does not stop the removed server from functioning as a documentation server. You can also use the following command to perform this function:
Modifying Alternate Server OrderWhen you add an alternate server to the list of servers your server can use, the alternate server is added to the bottom of the server order. This order determines the sequence in which your server accesses alternate servers to follow document links. If a user requests a given document from the library and that document is not available from the default server, the server goes through the alternate server list in the defined sequence to find the document. To change the order of the servers available to your system, select Modify Server Order from the Admin GUI. Note - There is no command line option to perform this function. Working With Server ReportsThe 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 ReportTo 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 FilesTo 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:
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:
Viewing the Access LogTo 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:
Where:
You can also use the following command to perform this function:
Error Log FilesTo 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:
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:
Viewing the Error LogTo 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:
Rotating Log FilesThe 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:
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:
You can also use the following commands to perform these functions:
Administration Page IconsThe following table identifies the icons displayed on administration pages. Table 3-3 Administration Page Navigation Icons
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||