Jump to content

Ziptrain: Difference between revisions

From DocDepot
GMalcom (talk | contribs)
mNo edit summary
GMalcom (talk | contribs)
No edit summary
Line 37: Line 37:


= Syntax =
= Syntax =
{| class="wikitable" style="border-collapse: collapse; width: 100%; float: left;" border="1px" cellpadding="2px"
{| class="wikitable" style="border-collapse: collapse; width: 100%; background-color: rgb(236, 240, 241); height: 115px;" border="1px" cellpadding="2px"
|-  
|- style="height: 23px;"
| style="width: 17.97%;" | ziptrain.bat
| style="width: 25.914%; height: 23px;" | ziptrain.bat
| style="width: 82.03%;" | Compresses the 100 most recent trains' pre- and post-processed acquisitions.
| style="width: 74.086%; height: 23px;" | Compresses 100 most recent trains' pre- and post-processed acquisitions.
|-  
|- style="height: 23px;"
| style="width: 17.97%;" | ziptrain.bat <int>
| style="width: 25.914%; height: 23px;" | ziptrain.bat <int>
| style="width: 82.03%;" | Compresses the specified number of most recent trains' pre- and post-processed acquisitions.
| style="width: 74.086%; height: 23px;" | Compresses the specified number of most recent trains' pre- and post-processed acquisitions.
|-  
|- style="height: 23px;"
| style="width: 17.97%;" | ziptrain.bat --all
| style="width: 25.914%; height: 23px;" | ziptrain.bat --all
| style="width: 82.03%;" | Compresses all train files.
| style="width: 74.086%; height: 23px;" | Compresses all train files
|-  
|- style="height: 23px;"
| style="width: 17.97%;" | ziptrain.bat --all *<extension>
| style="width: 25.914%; height: 23px;" | ziptrain.bat --all *<extension>
| style="width: 82.03%;" | Compresses all files of the specified file type extension. Only one extension can be specified at a time.
| style="width: 74.086%; height: 23px;" | Compresses all files of the specified file type extension. Only one extension can be specified at a time.
|-  
|- style="height: 23px;"
| style="width: 17.97%;" | ziptrain.bat --help
| style="width: 25.914%; height: 23px;" | ziptrain.bat --help
| style="width: 82.03%;" | Displays help.
| style="width: 74.086%; height: 23px;" | Displays help
|}
|}


Line 74: Line 74:


Functionality of configuration file collection remains the same.
Functionality of configuration file collection remains the same.
{| class="wikitable" style="border-collapse: collapse; width: 100%; float: left;" border="1px" cellpadding="2px" br=""
|}

Revision as of 16:15, 7 November 2024

Ziptrain is a utility to collect and compress diagnostic data from the APU into a .zip file. It collects the 100 most recent train acquisitions (pre- and post-processed) by default, as well as configuration settings.

The number of train acquisitions can be specified using a positive integer, if more or less than 100 is desired. 

Alternatively, all files can be specified using the --all parameter. 

Specific file extensions can be specified using the --all parameter in conjunction with *.

In-terminal help is available via the --help parameter as well.


Regardless of which parameters are specified, configuration files are always collected.

The generated .zip file can be found in D:\AEI and will be named after the date as set on the APU. 

The naming format is TRYYMMDD.zip, e.g. a file compressed on December 1st, 2024 would be TR241201.zip.


Any previously compressed train acquisitions made by ZipTrain will be deleted when running the ziptrain command.

Instructions

LX-800 Systems

Copy ziptrain.bat to D:\AEI

Open the Windows command-line to D:\AEI

Enter "ziptrain.bat" in the Windows command-line, including any parameters desired. The utility will run and report back how many files it zipped.

The generated .zip file can be found in D:\AEI

T10 Systems

Copy ziptrain.bat to D:\AEI\util

Open the Windows command-line to D:\AEI\util

Enter "ziptrain.bat" in the Windows command-line, including any parameters desired. The utility will run and report back how many files it zipped.

The generated .zip file can be found in D:\AEI

Syntax

ziptrain.bat Compresses 100 most recent trains' pre- and post-processed acquisitions.
ziptrain.bat <int> Compresses the specified number of most recent trains' pre- and post-processed acquisitions.
ziptrain.bat --all Compresses all train files
ziptrain.bat --all *<extension> Compresses all files of the specified file type extension. Only one extension can be specified at a time.
ziptrain.bat --help Displays help

Examples

ziptrain.bat

Compresses the 100 most recent trains' pre- and post-processed acquisitions, along with configuration settings.

ziptrain.bat 83

Compresses the 83 most recent trains' pre- and post-processed acquisitions, along with configuration settings.

ziptrain.bat --all

Compresses all train files in the trains' directory, along with configuration settings.

ziptrain.bat --all *.035

Compresses all .035 files in the trains' directory, along with configuration settings.

ziptrain.bat --help

Displays help.

Changes in 1.1.0

By default, ZipTrain now only collects the pre and post-processed acquisition files instead of all train files.

ZipTrain now also only collects the 100 most recent trains unless otherwise specified.

Functionality of configuration file collection remains the same.