.TH NNADMIN 1m "Release 6.6" .\" (c) Copyright 1988, 1990, Kim F. Storm. All rights reserved. .UC 4 .SH NAME nnadmin \- nn database administration .SH SYNOPSIS .B nnadmin [ .I commands ] .SH DESCRIPTION .I nnadmin is a control program for the \fInnmaster\fP(1M) daemon which is responsible for building and maintaining the database used by the \fInn\fP(1) news reader. .LP \fInnadmin\fP allows you to display extracts from the log file, display the "raw" contents of the database, make consistency checks on the database, instruct the running \fInnmaster\fP to expire one or more groups, alter the options of the running \fInnmaster\fP, and much more. .LP \fInnadmin\fP runs in two modes: interactive and non-interactive. .LP In interactive mode, simple one line menus are used to show the available operations which are then selected by typing the letter associated with the command (normally the first letter in the command name). .LP In non-interactive mode, the .I commands argument will be used as a series of key-strokes which are interpreted exactly as if they were typed in from the keyboard in interactive mode. For example, to stop the \fInnmaster\fP, the following invocation of nnadmin can be used: .br \fInnadmin\fP MK .br which will select the (M)aster submenu from the main menu, and then the (K)ill entry from the submenu. .LP In non-interactive mode, the menus are not displayed and the commands are not echoed! \fInnadmin\fP will exit when there are no more key-strokes to be read from the .I commands argument. It is not possible to specify a group name in the .I commands argument, so the functionalities of \fInnadmin\fP that relates to specific groups are only available in interactive mode. .LP Some "dangerous" commands will require that you confirm them by following them by "Y" on the command line. The most noteable are IY (initialize database) and EY (expire all groups). These commands will be marked with a \fB[Y]\fP following the command name. .LP You can also invoke an interactive \fInnadmin\fP using the .B :admin command in \fInn\fP. .SH SHELL ESCAPES At all prompts you can hit `!' to spawn a subshell. .LP The working directory of the subshell will be changed to the database directory when invoked from the MASTER or DUMP menus, and it will changed to the group's spool directory (if it exists) when invoked from the GROUP menu. .SH MAIN MENU From the main menu (identified by the .B ADMIN prompt) you can select the following operations: .TP .B C)onf .br Show current configuration parameters such as directories, files, programs, network usage, etc. .TP \fBE)xpire [Y]\fP .br Send a request to the \fInnmaster\fP daemon to schedule (and run) expire for all groups in the database. .TP .B G)roups .br Enter the GROUP submenu. .TP \fBI)nit [Y]\fP .br Send a request to the \fInnmaster\fP daemon to recollect all groups in the database. .TP .B L)og .br Enter the LOG submenu. .TP .B M)aster .br Enter the MASTER submenu. .TP .B Q)uit .br Quit \fInnadmin\fP. .TP .B S)tat .br Print general statistics about the database. See the section on Database Statistics below. .TP .B U)pdate .br Update the incore copy of the database master index. .TP .B V)alidate .br Make a thorough consistency check on the database. If inconsistencies are found in a group, you will be asked whether a request should be sent to the \fInnmaster\fP daemon to recollect the group (in non-interactive mode, requests will be sent automatically for all corrupted groups). .TP .B W)akeup .br Send a wakeup signal to the \fInnmaster\fP daemon to have it receive messages sent to it, perform the required actions, and then collect articles as necessary. .TP \fBZ\fP (silent validation) .br This operation is identical to the Validate operation, expect that no output is produced during the consistency check; this operation is used by the \fInnmaster\fP to execute the \-\fBC\fP option. .SH THE MASTER MENU The master menu (identified by the .B MASTER prompt) provides access to overall database information, and to send control messages to the \fInnmaster\fP daemon. .TP .B C)heck In interactive mode and in verbose batch mode (\fInnadmin\fP MC), print a message telling whether \fInnmaster\fP is running or not. In silent batch mode (\fInnadmin\fP =MC) exit with a status code of 0 if \fInnmaster\fP is running and 1 otherwise; this may be useful is administrative scripts. .TP .B D)ump Enter the DUMP submenu. .TP .B F)iles .br Print a listing (using .IR ls (1)) of all the data and index files in the database. .TP .B G)roup .br Print the master index entry for a single group identified by its internal group number. .TP .B K)ill .br Stop the \fInnmaster\fP when it has finished its current task. .TP .B O)ptions .br Change the runtime options of the running \fInnmaster\fP daemon. Currently, only the value of the \-r and \-e options can be modified. .TP .B S)tat .br Print general statistics about the database. See the section on Database Statistics below. .TP .B T)race .br Turn the trace option \-t on or off in the running \fInnmaster\fP. .SH THE DUMP MENU The dump menu (identified by the .B DUMP prompt) allows you to print the master index entry for various selections of groups in the database. .TP .B A)ll .br Print all groups in the database. .TP .B E)mpty .br Print the empty groups in the database. .TP .B H)oles Print the groups where the `min' field in the active file is not the first article saved in the database (because it doesn't exist or because it is ignored for some other reason, e.g. bad or old). .TP .B I)gnored Print groups which are ignored, either in the GROUPS file or because of some other condition (mainly no spool directory). .TP .B N)on-empty .br Print the non-empty groups in the database. .TP .B V)alid Print the groups which are present in the active file. .TP .B in(W)alid Print the groups in the database which are not present in the active file. .SH THE LOG MENU The log menu (identified by the .B LOG prompt) enables you the extract specific entries from the log file, and to truncate the log file. .LP The entries in the log file share the following format: .sp 0.5v :