9.3. Console configurator options

The config.exe file can be used with the following options:

Table 9.1. Off-line configurator options

OptionDescription
-?It displays the program version and the program usage instruction.
-cFileIt allows to specify the name of the configuration file. If omitted, the assumed name is drivers.cfg. If '-pPath' is specified too, the specified directory path is used.
-pPathIt allows to specify the directory path.
-ccIt allows to create the configuration file only if it does not exist; otherwise the existing file is used. If '-cFile' is specified too, the specified file name is used. If '-pPath' is specified too, the specified directory path is used.
-cuIt allows to create the configuration file unconditionally. If drivers.cfg exists, it's deleted and a new drivers.cfg file is created. If '-cFile' is specified too, the specified file name is used. If '-pPath' is specified too, the specified directory path is used.
-iFileIt allows to specify an input file from which the program will get the commands.
-oFileIt allows to specify an output file on which the program will copy the result of executed commands.

[Tip]Tip

These options are available by executing the program from a MS-DOS shell.

9.3.1. Example of an off-line input file

The configurator can execute scripts using the “-i” option. A script contains one command per line. For example:

d r
a r pr:1 in:telnet out:telnet cdi:* udi:tln
a r pr:2 in:* out:telnet cdi:* udi:tln
d r
quit
y

The example shows how to have the config.exe program to execute the previously listed commands, stored in the BatchCom.txt file:

C:\> config -iC:\BatchCom.txt<enter>

Here it's the execution result:

 - CONFIG (Off-line configurator for Abilis CPX) - v. 2091    - 24/09/2015 -
 - Abilis CPX - Ver. 8.5.1 - Build 4238.7 - Branch 8.5 -
 - (c) 1994/2017 - Abilis -

Press ALT-F9 to cycle between 90x25, 90x43, 90x50 screen modes.

Logged as SUPERUSER

[16:24:21] ABILIS_CPX:d r

---+--------+--------+---------------+---------------+------------+------------
PR |IN      |OUT     |CDI            |CDO            |UDI         |UDO
   |NEXT             |CGI            |CGO            |PIDI        |PIDO
   |                 |IPSRC          |IPDEST         |FFO
-------------------------------------------------------------------------------
0   *        Cp       *               *               CP           *
-------------------------------------------------------------------------------

[10:28:15] ABILIS_CPX:a r pr:1 in:telnet out:telnet cdi:* udi:tln

COMMAND EXECUTED

[10:28:27] ABILIS_CPX:a r pr:2 in:* out:telnet cdi:* udi:tln

COMMAND EXECUTED

[16:28:31] ABILIS_CPX:d r

- Not Saved (SAVE CONF) -------------------------------------------------------
---+--------+--------+---------------+---------------+------------+------------
PR |IN      |OUT     |CDI            |CDO            |UDI         |UDO
   |NEXT             |CGI            |CGO            |PIDI        |PIDO
   |                 |IPSRC          |IPDEST         |FFO
-------------------------------------------------------------------------------
0   *        Cp       *               *               CP           *
-------------------------------------------------------------------------------
1   Telnet   Telnet   *               *               TLN          *
-------------------------------------------------------------------------------
2   *        Telnet   *               *               TLN          *
-------------------------------------------------------------------------------

[17:29:15] ABILIS_CPX:quit

THE CURRENT CONFIGURATION WAS MODIFIED BUT NOT SAVED.
PROCEED WITH 'SAVE CONF' COMMAND (N/Y/A)?y

VALIDATION IN PROGRESS ...
VALIDATION SUCCESSFULLY EXECUTED

SAVE EXECUTED

[17:29:21] ABILIS_CPX:exit

Program exits.

9.3.2. Example of an off-line output file

Using the “-o” option, the off-line configurator redirects the standard output to a text file:

C:\> config -o C:\Output.txt<enter>

Suppose to enter the d ver command to the off-line configurator command line interpreter after the previous line execution. A copy of the program output will be saved in text format in the specified file. Here it's the contents of Output.txt file:

 - CONFIG (Off-line configurator for Abilis CPX) - v. 2085    - 19/02/2015 -
 - Abilis CPX - Ver. 8.0.2 - Build 3961.6 - Branch 8.0 -
 - (c) 1994/2015 - Abilis -

Press ALT-F9 to cycle between 80x25, 80x43, 80x50 screen modes.

Logged as SUPERUSER

[16:24:21] ABILIS_CPX:d ver

       Abilis CPX - Ver. 8.5.1 - Build 4238.7 - Branch 8.5 - 02/08/2017
                       CONFIG - v. 2091    - 24/09/2015
                            (c) 1994/2017 - Abilis

CX        : v. 2865.3  - 02/08/2017       CP        : v. 6808.12 - 01/08/2017
CNFG      : v. 5110.4  - 31/07/2017       COMMON    : v. 3944.9  - 26/07/2017

[16:30:19] ABILIS_CPX:exit

Program exits.