| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<refentry id='grokevt-builddb.1'> |
| 3 |
<!-- $Id: grokevt-builddb.1.docbook 119 2011-06-20 17:14:14Z tim $ --> |
| 4 |
<refmeta> |
| 5 |
<refentrytitle>grokevt-builddb</refentrytitle> |
| 6 |
<manvolnum>1</manvolnum> |
| 7 |
<refmiscinfo class="sectdesc">File Conversion Utilities</refmiscinfo> |
| 8 |
</refmeta> |
| 9 |
<refnamediv id='name'> |
| 10 |
<refname>grokevt-builddb</refname> |
| 11 |
<refpurpose>Builds a database tree based on a single windows system for the purpose of event log conversion.</refpurpose> |
| 12 |
</refnamediv> |
| 13 |
|
| 14 |
<refsect1 id='synopsis'> |
| 15 |
<title>SYNOPSIS</title> |
| 16 |
<para> |
| 17 |
<command> |
| 18 |
grokevt-builddb [ -c <replaceable>CSID</replaceable> ] <replaceable>config-profile</replaceable> <replaceable>output-dir</replaceable> |
| 19 |
</command> |
| 20 |
</para> |
| 21 |
</refsect1> |
| 22 |
|
| 23 |
<refsect1 id='description'> |
| 24 |
<title>DESCRIPTION</title> |
| 25 |
<para> |
| 26 |
grokevt-builddb uses grokevt-ripdll(1) and reglookup(1) along |
| 27 |
with information found in configuration files to extract all |
| 28 |
necessary information from a windows installation for the |
| 29 |
conversion of event log files. The registry is read to |
| 30 |
determine the locations of critical DLLs and the event log files |
| 31 |
themselves. This, and other information out of the registry is |
| 32 |
stored in a directory structure which acts as a kind of |
| 33 |
flat-file database. This database can then be used by |
| 34 |
grokevt-parselog(1) to generate human-readable output. |
| 35 |
</para> |
| 36 |
<para> |
| 37 |
The key to successfully running this utility is proper |
| 38 |
configuration. Please see grokevt(7) for information on what |
| 39 |
needs to be configured. |
| 40 |
</para> |
| 41 |
</refsect1> |
| 42 |
|
| 43 |
<refsect1 id='arguments'> |
| 44 |
<title>ARGUMENTS</title> |
| 45 |
|
| 46 |
<variablelist remap='IP'> |
| 47 |
<varlistentry> |
| 48 |
<term> |
| 49 |
<option><replaceable>config-profile</replaceable></option> |
| 50 |
</term> |
| 51 |
<listitem> |
| 52 |
<para> |
| 53 |
This is the name of the configuration profiles |
| 54 |
stored in the global configuration directory |
| 55 |
under the directory 'systems'. See grokevt(7) |
| 56 |
for more details on how to properly configure a |
| 57 |
system profile. |
| 58 |
</para> |
| 59 |
</listitem> |
| 60 |
</varlistentry> |
| 61 |
</variablelist> |
| 62 |
|
| 63 |
<variablelist remap='IP'> |
| 64 |
<varlistentry> |
| 65 |
<term> |
| 66 |
<option><replaceable>output-dir</replaceable></option> |
| 67 |
</term> |
| 68 |
<listitem> |
| 69 |
<para> |
| 70 |
The path to the location of the output database. |
| 71 |
If anything already exists in this directory, it |
| 72 |
may be overwritten or deleted. |
| 73 |
</para> |
| 74 |
</listitem> |
| 75 |
</varlistentry> |
| 76 |
</variablelist> |
| 77 |
</refsect1> |
| 78 |
|
| 79 |
<refsect1 id='options'> |
| 80 |
<title>OPTIONS</title> |
| 81 |
|
| 82 |
<variablelist remap='IP'> |
| 83 |
<varlistentry> |
| 84 |
<term> |
| 85 |
<option>-c <replaceable>CSID</replaceable></option> |
| 86 |
</term> |
| 87 |
<listitem> |
| 88 |
<para> |
| 89 |
This option allows one to explicitly set which |
| 90 |
ControlSet in the registry is used to extract |
| 91 |
event log message mappings. If specified, |
| 92 |
this item must be a positive decimal integer. |
| 93 |
If unspecified, grokevt-builddb will attempt to |
| 94 |
determine the best ControlSet by looking at the |
| 95 |
most recent CurrentControlSet, stored in the |
| 96 |
system registry under the path '/Select/Current'. |
| 97 |
Most users should ignore this option unless |
| 98 |
there is a specific reason why the last |
| 99 |
CurrentControlSet should not be used. |
| 100 |
</para> |
| 101 |
</listitem> |
| 102 |
</varlistentry> |
| 103 |
</variablelist> |
| 104 |
</refsect1> |
| 105 |
|
| 106 |
<refsect1 id='examples'> |
| 107 |
<title>EXAMPLES</title> |
| 108 |
<para> |
| 109 |
To generate a database at '~/win2k.grokevt' based on the system |
| 110 |
configuration profile 'win2k': |
| 111 |
<screen> |
| 112 |
grokevt-builddb win2k ~/win2k.grokevt |
| 113 |
</screen> |
| 114 |
|
| 115 |
To repeat the last command, instead using registry information |
| 116 |
explicitly from /ControlSet002: |
| 117 |
<screen> |
| 118 |
grokevt-builddb -c 2 win2k ~/win2k.grokevt |
| 119 |
</screen> |
| 120 |
</para> |
| 121 |
</refsect1> |
| 122 |
|
| 123 |
<refsect1 id='bugs'> |
| 124 |
<title>BUGS</title> |
| 125 |
<para> |
| 126 |
Probably a few. This script has not been extensively tested with some guest platforms. |
| 127 |
</para> |
| 128 |
<para> |
| 129 |
The databases built with this script may not be portable to other |
| 130 |
systems, depending on the database drivers installed and used in Python. |
| 131 |
</para> |
| 132 |
</refsect1> |
| 133 |
|
| 134 |
<refsect1 id='credits'> |
| 135 |
<title>CREDITS</title> |
| 136 |
<para> |
| 137 |
Written by Timothy D. Morgan. |
| 138 |
</para> |
| 139 |
</refsect1> |
| 140 |
|
| 141 |
<refsect1 id='license'> |
| 142 |
<title>LICENSE</title> |
| 143 |
<para> |
| 144 |
Please see the file "LICENSE" included with this software |
| 145 |
distribution. |
| 146 |
</para> |
| 147 |
<para> |
| 148 |
This program is distributed in the hope that it will be useful, |
| 149 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 150 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 151 |
GNU General Public License version 3 for more details. |
| 152 |
</para> |
| 153 |
</refsect1> |
| 154 |
|
| 155 |
<refsect1 id='seealso'> |
| 156 |
<title>SEE ALSO</title> |
| 157 |
<para> |
| 158 |
grokevt(7) grokevt-addlog(1) grokevt-dumpmsgs(1) grokevt-findlogs(1) grokevt-parselog(1) grokevt-ripdll(1) reglookup(1) |
| 159 |
</para> |
| 160 |
</refsect1> |
| 161 |
</refentry> |