Chapter 7: Using the SafeWord 2008 Management Console
Reporting
171
As the command line reporting tool is simply a text-based shell script, it is
easily configurable. You will need to specify the name of the SafeWord server
machine, the port on which the Admin Server is listening, and the userid and
password of an administrative user through which the report queries can be
executed. Table 10 details the variables that are defined in both versions of the
shell script.
Table 10:
Shell script variables
Using the command line reporting tool
For Windows:
report.bat
template-file report-output-file [password].
The first two arguments are required. The first argument specifies the location
of a saved report template. Refer to “Report templates” on page 169
for
instructions on how to define and save a report template. By default, report
templates are saved in the
“templates”
subdirectory of the Console installation.
The second argument specifies the location of the target Excel worksheet file.
The Console installer creates a subdirectory called
“reports”
in which all
generated reports can be contained.
The third argument is optional and allows you to specify the password of the
administrative user that is used to execute the desired report queries. This is
useful in situations where it is not appropriate to store the cleartext fixed
password in the shell script.
Variable Name
Purpose
ADMIN_HOST
Specify the IP address or hostname of the machine on
which the SafeWord Admin Server is installed
ADMIN_PORT
Specify the port number on which the SafeWord Admin
Server is listening (By default, this port number is 5040).
ADMIN_USER
Specify the userid of the administrative user account
that will execute the desired report queries. This user
account must use a fixed password to authenticate to
SafeWord.
ADMIN_PASSWORD
Specify the password for the named administrative user.
This value need not be defined in the shell script as it
can be supplied as a command line argument to the
reporting tool. If you do decide to define the password in
the shell script, you should ensure that the script is
properly secured, either via operating system security
features or via physical machine security.