The OCFA Administration scripts and programs

OCFA incorporates a range of administration tools. These tools can be split into the following sections:

Operation

Tools used to operate on a case:

Cleanup database

A script for cleaning up the database belonging to the specified case name.
Usage:

cleanupdb.sh <casename>

This script will first drop the database for the given case, then creates a fresh clean database for the specified case.

Cleanup case

A script to clean up the specified case.
Usage:

cleanupcase.sh <casename>

Create case

A script to create a case.
Usage:

createcase.pl <casename> <password>

Please refer to the "Getting Started" section for the context to use createcase.


Delete case

A script to delete a case.
Usage:

deletecase.sh <casename>

The delete case script will clean up the database and all working directories for the defined case name. During execution the user will be asked for permission to delete the database and the case directories.

Ocfahalt

A command to stop all running ocfa modules.

Park midas

A script that places the current index in a different directory.
Usage:

parkmidas.pl <casename> <directory in which current index will be put>

Midas is the historical name for the indexing module. Ocfa now uses the lucene indexer, but the naming has not yet been updated.
The script will copy the index files in /var/ocfa/<casename>/midas to the new directory. It will also adapt the configuration file so that the index is visible in the user interface. The script is useful when you want to start a new index.

Park case

Script that creates a searchable database for the end-user while still allowing new evidence to be scrubbed. Usage:

parkcase.pl <casename> <directory in which current index will be put>

The script will first park the index. It will then copy the database to <case>>parked and optimizes the copy for querying. It will then create a new configuration file for the httpd server.

Start case

Script to automatically start all needed modules.  The module list to start will be extracted from the rulelist.
Usage:

startcase.pl <casename>

Please refer to the "Getting Started" section for further explanation.

Generation

Tools to generate output/overviews.

Make overview

Usage:

makeoverview.pl

Please refer to the "Getting Started" section for further explanation.