acc_bld_lpbk |
 |
This script is used to produce a sample loopback ttgen configuration
file. It is run automatically when the ACC product is installed.
If additional ACC MUX cards are installed into the system, or if
ACC MUX cards are moved within the system, this script can be useful
for recreating a loopback configuration file. (Refer to the following
section, “Sample ttgen Configuration File” and examples.)
The script is run as follows:
% /opt/acc/lbin/acc_bld_lpbk -o <output file> \
-t <ttgen file header> [-p <protocol>]
The output file parameter indicates where the .answ file that is being built will
be written. This file name should have a .answ suffix,
and it is suggested that its path be /opt/acc/cfg/.
The ttgen file header parameter refers to a file that contains
the TTGEN file configuration fields that occur before the Interface-Definition statement.
The file /opt/acc/cfg/sample_header is
provided for this purpose. The script uses this as the header of
the .answ file being created.
The script creates MUX statements for each ACC MUX card that is
currently installed in the system. It uses the protocol parameter if
it is provided, or it uses /opt/acc/<card-type>/loopback.zabs if
it is not.
It then creates port definition statements for each port for
each mux that is installed. It defines the ports differently for
T1/E1 4-Channel interface cards, as seen in the examples that follow.
Even numbered ports are defined as internally clocked, and odd
ports are externally clocked.
PORTTEST term entries are created for each port. This allows
the zmntr loopback test to
be run on each port.
A MONITOR term entry is created for each mux so that the watch feature can be used.