# Help for Harvest Broker Administration

The Harvest Broker allows dynamic control of many functions. The simplest way to access this control is through the HTML/Forms Administrative Interface.

Note: Changes to the broker configuration are not saved when the broker is restarted. Permanent changes to the broker configuration should be done through the broker.conf file.

## Window Fields

Command
  Select an administrative command. See below for a description of the commands.
Parameters
  Specify parameters for those commands that need them.
Password
  The administrative password.
Broker Host
  The host where the broker is running.
Broker Port
  The port where the broker is listening.

## Administrative Commands

Add objects by file
  Add object(s) to the Broker. The parameter is a list of filenames that contain SOIF object to be added to the Broker.
Close log
  Flush all accumulated log information and close the current log file. Causes the Broker to stop logging. No parameters.
Compress Registry
  Performs garbage collection on the Registry file. No parameters.
Delete expired objects
  Deletes any object from the Broker whose Time-to-Live has expired. No parameters.
Delete objects by query
  Deletes any object(s) that matches the given query. The parameter is a query with the same syntax as user queries. Query flags are currently unsupported.
Delete objects by oid
  Deletes the object(s) identified by the given OID numbers. The parameter is a list of OID numbers. The OID numbers can be obtained by using the `dumpregistry` command.
Disable log type
  Disables logging information about a particular type of event. The parameter is an event type. See Enable log type for a list of events.
Enable log type
  Enables logging information about a particular type of events. The parameter is the name of an event type. Currently, event types are limited to the following:
  Update
    Log updated objects.
  Delete
    Log deleted objects.
  Refresh
    Log refreshed objects.
  Query
    Log user queries.
  Query-Return
    Log objects returned from a query.
  Cleaned
    Log objects removed by the cleaner.
  Collection
    Log collection events.
  Admin
    Log administrative events.
  Admin-Return
    Log the results of administrative events.
  Bulk-Transfer
    Log bulk transfer events.
  Bulk-Return
    Log objects sent by bulk transfers.
  Cleaner-On
    Log cleaning events.
  Compressing-Registry
    Log registry compression events.
  All
    Log all events.
Flush log
  Flush all accumulated log information to the current log file. No parameters.
Generate statistics
  Generates some basic statistics about the Broker object database. No parameters.
Index changes
  Index only the objects that have been added to the recently. No parameters.
Index corpus
  Index the entire object database. No parameters.
Open log
  Open a new log file. If the file does not exist, create a new one. The parameter is the name (relative to the broker) of a file to use for logging.
Restart server
  Force the broker to reread the Registry and reindex the corpus. This does not actually kill the broker process. No parameters. This is usually used only for Replica brokers.
Rotate log file
  Rotates the current log file to LOG.YYMMDD. Opens a new log file. No parameters.
Set variable
  Sets the value of a broker configuration variable. Takes two parameters, the name of a configuration variable and the new value for the variable. The configuration variables that can be set are those that occur in the broker.conf file. The change only is valid until the broker process dies.
Shutdown server
  Cleanly shutdown the Broker. No parameters.
Start collection
  Perform collections. No parameters.