The config.exe
file can be used with the
following options:
Table 8.1. Off-line configurator options
Option | Description |
---|---|
-? | It displays the program version and the program usage instruction. |
-cFile | It 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. |
-pPath | It allows to specify the directory path. |
-cc | It 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. |
-cu | It allows to create the configuration file unconditionally.
If drivers.cfg exists, it is 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. |
-iFile | It allows to specify an input file from which the program will get the commands. |
-oFile | It allows to specify an output file on which the program will copy the result of executed commands. |
Tip | |
---|---|
This options are available by executing the program from a MS-DOS shell. |
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 is the execution result:
- CONFIG - v. 2066 - 12/07/2010 - For CPX release 7.0.3 - build 3357.17 -
- (c) 1994/2010 - Abilis -
Logged as SUPERUSER
[10:24:29] 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
[10:28:36] 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:
Program exits.
Using the “-o” option, the off-line configurator redirects the standard output to a text file:
C:\> config -oC:\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 is the contents of
Output.txt
file:
- CONFIG - v. 2066 - 12/07/2010 - For CPX release 7.0.3 - build 3357.17 - - (c) 1994/2010 - Abilis - Logged as SUPERUSER [10:35:08] ABILIS_CPX:d ver Abilis CPX - Ver. 7.0.3 - 24/11/2010 - Build 3357.17 - 24/11/2010 CONFIG - v. 2066 - 12/07/2010 (c) 1994/2010 - Abilis CX : v. 2483.3 - 16/11/2010 CP : v. 5005.23 - 24/11/2010 COR : v. 2036 - 09/02/2010 CNFG : v. 3788.18 - 24/11/2010 COMMON : v. 3099.10 - 24/11/2010 [17:44:46] ABILIS_CPX:exit Program exits.