Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
ACC Installation and Configuration Guide > Appendix A Files, Utilities, and Daemons

Sample ttgen Configuration File

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The /opt/acc/cfg/loopback.answ file is a sample ttgen configuration file. The sample file is automatically created when the ACC product is installed. The MUX-Definition statements in this file are created to match the hardware that is installed on the system at the time the file is created. In the case that the ACC multiplexer cards are moved within the system after the product is installed, it may be necessary to either manually modify the loopback.answ file, or to recreate the file to reflect the new hardware location.

The file may be recreated by running:

% cd /opt/acc/cfg  
% /opt/acc/lbin/acc_bld_lpbk -t sample_header \
-o loopback.answ

Once the configuration file is created or modified, the ttgen utility must be run to create a downloadable file:

% ttgen -o loopback.answ  loopback.tmem

The following is an example of a file created by the acc_bld_lpbk script on a system that has two NIO ACC multiplexer cards, an 8-Channel and a 2-Channel card installed:

* ttgen input file

#include "/opt/acc/cfg/ttgendefine"
ttgen
Configuration
System-name "ACC ttgen File"
Program-zlu 100
Terminal-zlu 1000
Logical-Term 800
Physical-Term 800
Buffer-Pool 3000000
Logical-Size 252
Logical-Data 10 X25CNT,0,X25CNT_LDSIZE
Queue-Limit 200
Transmit-Limit 100
Unack-Limit 5000
Port-Limit 20000
E1T1-Port-Limit 100000
Node-entry 1

Interface-Definition
Mux 0 0:12 /opt/acc/z7200a/loopback.zabs
Mux 1 0:16 /opt/acc/z7350a/loopback.zabs

Port-Definition
Port 0:0 RS232 57600 Int SDLC x1 NRZ
Port 0:1 RS232 57600 Ext SDLC x1 NRZ
Port 0:2 RS232 57600 Int SDLC x1 NRZ
Port 0:3 RS232 57600 Ext SDLC x1 NRZ
Port 0:4 RS232 57600 Int SDLC x1 NRZ
Port 0:5 RS232 57600 Ext SDLC x1 NRZ
Port 0:6 RS232 57600 Int SDLC x1 NRZ
Port 0:7 RS232 57600 Ext SDLC x1 NRZ

Port 1:0 RS232 57600 Int SDLC x1 NRZ
Port 1:1 RS232 57600 Ext SDLC x1 NRZ
Terminal-Definition
Term 600 0:0 PORTTEST 0000h 0000h 99 0 0 0 0 "For Loopback Test"
Term 601 0:1 PORTTEST 0000h 0000h 99 0 0 0 0 "For Loopback Test"
Term 602 0:2 PORTTEST 0000h 0000h 99 0 0 0 0 "For Loopback Test"
Term 603 0:3 PORTTEST 0000h 0000h 99 0 0 0 0 "For Loopback Test"
Term 604 0:4 PORTTEST 0000h 0000h 99 0 0 0 0 "For Loopback Test"
Term 605 0:5 PORTTEST 0000h 0000h 99 0 0 0 0 "For Loopback Test"
Term 606 0:6 PORTTEST 0000h 0000h 99 0 0 0 0 "For Loopback Test"
Term 607 0:7 PORTTEST 0000h 0000h 99 0 0 0 0 "For Loopback Test"
Term 608 0:0 MONITOR 0000h 0000h 01 0 0 0 0 "For Watch Feature"
Term 609 1:0 PORTTEST 0000h 0000h 99 0 0 0 0 "For Loopback Test"
Term 610 1:1 PORTTEST 0000h 0000h 99 0 0 0 0 "For Loopback Test"
Term 611 1:0 MONITOR 0000h 0000h 01 0 0 0 0 "For Watch Feature"

Node-Definition
Local-Node 123

End$

Following on the next page is an example of a file created by the acc_bld_lpbk script on a system that has a T1/E1 4-Channel ACC multiplexer card installed:

* ACC Loopback test TTGEN input file

#include "/opt/acc/cfg/ttgendefine"
ttgen
Configuration
System-name "ACC ttgen input file"
Program-zlu 100
Terminal-zlu 1000
Logical-Term 800
Physical-Term 800
Buffer-Pool 3000000
Logical-Size 252
Logical-Data 10 X25CNT,0,X25CNT_LDSIZE
Queue-Limit 200
Transmit-Limit 100
Unack-Limit 5000
Port-Limit 20000
E1T1-Port-Limit 100000
Node-entry 1

Interface-Definition
z7300a 0 0:4 /opt/acc/z7300a/loopback.zabs

Port-Definition
Port 0:0 E1RJ45 Int CRCMF HDB3
Port 0:1 E1RJ45 Ext CRCMF HDB3
Port 0:2 E1RJ45 Int CRCMF HDB3
Port 0:3 E1RJ45 Ext CRCMF HDB3

Subchannel-Definition
* Mux 0, port 0,subchan 01, timeslot 1
Subch 0:0:01 HDLC INV=off ITBS=2 ts:01:FFh

* Mux 0, port 0,subchan 02, timeslot 2 to 7
Subch 0:0:02 HDLC INV=off ITBS=12 ~
ts:02:FFh ts:03:FFh ts:04:FFh ts:05:FFh ts:06:FFh ts:07:FFh

* Mux 0, port 0,subchan 03, timeslot 8 to 31
Subch 0:0:03 HDLC INV=off ITBS=48 ~
ts:08:FFh ts:09:FFh ts:10:FFh ts:11:FFh ts:12:FFh ts:13:FFh ~
ts:14:FFh ts:15:FFh ts:16:FFh ts:17:FFh ts:18:FFh ts:19:FFh ~
ts:20:FFh ts:21:FFh ts:22:FFh ts:23:FFh ts:24:FFh ts:25:FFh ~
ts:26:FFh ts:27:FFh ts:28:FFh ts:29:FFh ts:30:FFh ts:31:FFh

* Mux 0, port 1,subchan 01, timeslot 1
Subch 0:1:01 HDLC INV=off ITBS=2 ts:01:FFh

* Mux 0, port 1,subchan 02, timeslot 2 to 7
Subch 0:1:02 HDLC INV=off ITBS=12 ~
ts:02:FFh ts:03:FFh ts:04:FFh ts:05:FFh ts:06:FFh ts:07:FFh

* Mux 0, port 1,subchan 03, timeslot 8 to 31
Subch 0:1:03 HDLC INV=off ITBS=48 ~
ts:08:FFh ts:09:FFh ts:10:FFh ts:11:FFh ts:12:FFh ts:13:FFh ~
ts:14:FFh ts:15:FFh ts:16:FFh ts:17:FFh ts:18:FFh ts:19:FFh ~
ts:20:FFh ts:21:FFh ts:22:FFh ts:23:FFh ts:24:FFh ts:25:FFh ~
ts:26:FFh ts:27:FFh ts:28:FFh ts:29:FFh ts:30:FFh ts:31:FFh

* Mux 0, port 2,subchan 01, timeslot 1
Subch 0:2:01 HDLC INV=off ITBS=2 ts:01:FFh

* Mux 0, port 2,subchan 02, timeslot 2 to 7
Subch 0:2:02 HDLC INV=off ITBS=12 ~
ts:02:FFh ts:03:FFh ts:04:FFh ts:05:FFh ts:06:FFh ts:07:FFh

* Mux 0, port 2,subchan 03, timeslot 8 to 31
Subch 0:2:03 HDLC INV=off ITBS=48 ~
ts:08:FFh ts:09:FFh ts:10:FFh ts:11:FFh ts:12:FFh ts:13:FFh ~
ts:14:FFh ts:15:FFh ts:16:FFh ts:17:FFh ts:18:FFh ts:19:FFh ~
ts:20:FFh ts:21:FFh ts:22:FFh ts:23:FFh ts:24:FFh ts:25:FFh ~
ts:26:FFh ts:27:FFh ts:28:FFh ts:29:FFh ts:30:FFh ts:31:FFh

* Mux 0, port 3,subchan 01, timeslot 1
Subch 0:3:01 HDLC INV=off ITBS=2 ts:01:FFh

* Mux 0, port 3,subchan 02, timeslot 2 to 7
Subch 0:3:02 HDLC INV=off ITBS=12 ~
ts:02:FFh ts:03:FFh ts:04:FFh ts:05:FFh ts:06:FFh ts:07:FFh

* Mux 0, port 3,subchan 03, timeslot 8 to 31
Subch 0:3:03 HDLC INV=off ITBS=48 ~
ts:08:FFh ts:09:FFh ts:10:FFh ts:11:FFh ts:12:FFh ts:13:FFh ~
ts:14:FFh ts:15:FFh ts:16:FFh ts:17:FFh ts:18:FFh ts:19:FFh ~
ts:20:FFh ts:21:FFh ts:22:FFh ts:23:FFh ts:24:FFh ts:25:FFh ~
ts:26:FFh ts:27:FFh ts:28:FFh ts:29:FFh ts:30:FFh ts:31:FFh

Terminal-Definition

Node-Definition
Local-Node 123

End$

The /opt/acc/cfg/loopback.answ file will be created whether or not there are ACC interface cards on the system at the time acc_bld_lpbk is run. In the case that there are no ACC interface cards installed, the loopback.answ file will be similar to the one shown, except that there will be no Mux, Port, or Term statements. The /opt/acc/cfg/loopback.tmem will also still be created, and can be used to bring up the ACC MUX Subsystem.

Refer to the ACC Utilities Reference Guide for more information on the format of the .answ file, and on running ttgen to create the .tmem files.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2000 Hewlett-Packard Development Company, L.P.