Cisco Model 6109 6 MHz Off-Air Reference (NTSC) Guía De Instalación
Chapter 1 Overview
22
78-4021139-01 Rev D
In the following example, Command1, Command2, and Command3 are applied if
the argument xyz is defined.
#ifdef xyz
Command1
Command2
Command3
#else
Command4
Command5
Command6
#endif
Another way to skip a section is with the #skip directive. The Command1,
Command2, and Command3 lines are also not processed in the following example.
#skip
Command1
Command2
Command3
#endif
The preprocessor also supports inclusion of other files. The #include directive
causes a file to be inserted at the current position. In the following example, the file
x.txt is processed. The file must be in the ConfigFiles directory.
#include x.txt
The special command "exit" causes the current file processing to be terminated. This
is the single command that does not require the # character in the first column.
Legacy Configuration File Format
The legacy configuration file format is only used from a single place on the web GUI.
The legacy configuration file format is only used from a single place on the web GUI.
On the Configuration Manager - Configuration Files page, the LoadConfigFileName
entry supports the legacy file format. Entering a file name here and clicking Commit
Changes causes the file to be processed.
The legacy configuration file was designed to create a set of objects, typically
The legacy configuration file was designed to create a set of objects, typically
devices, and preset the state of those objects. Each line of the file creates an object.
After the data defining the type of object and instance name, additional commands
can be appended that preset the state of the device. Presetting many items requires a
long command line. This is handled by supporting a continuation (\) character
allowing the virtual command line to be spread over many lines in the file. The
number of lines is effectively unlimited.
A command line consists of a set of arguments separated by termination characters.
A command line consists of a set of arguments separated by termination characters.
An argument is a text string indicating a name or a type. Termination characters are
whitespace, commas, and the equal sign. The semicolon indicates a comment. Blank
lines are ignored.