| United States-English |
|
|
|
![]() |
ACC X.25/ISDN Data Analyzer User's Guide > Appendix B Network ConfigurationSetting Up the Network Configuration File |
|
The first step is to configure the analyzer ports into the ttgen configuration file. A sample file is supplied with the product to illustrate how the configuration should be done. This file is called /opt/acc/cfg/x25an_sample.answ, or x25an_4ch_sample.answ for E1/T1 cards. A full listing of these files is given at the end of this appendix. Some parts of these files are used below to illustrate the configuration process.
The Frame capture protocol used by the X.25 Protocol Analyzer is provided in all the downloadable files. The X.25 Protocol Analyzer may be used with any of these files. The mux firmware download file is specified in the network configuration file in the card-type statement. For example: z7200a 0 0:4 /opt/acc/z7200a/x25.zabs Each multiplexer that is to run X.25 connections, or Data Analyzer ports, will need a card-type entry, such as z7200a. The bus and slot numbers must correspond to the physical position of the interface card. Refer to the ACC Installation and Configuration Guide for more information on determining the hardware location. Each port on each multiplexer card to be used for the Data Analyzer must be correctly configured to support the Frame capture firmware protocol. In the 8-channel sample shown below, ports 2 to 7 on mux 0 are used for analyzer ports. Note the following configuration requirements:
Port 00:00 RS232 57600 Int SDLC x1 NRZ In the example file, mux 0 ports 0 and 1 are used for a sample X.25 connection that is looped back between these ports. Use the loopback cable supplied with the selected ACC interface panel to connect these ports (see Figure B-1 “Connections For 8-Channel Example”). Ensure the end marked Internal is connected to port 0, and the end marked External is connected as described below. Connect the Y-cable as shown. The connector designated “P2” on the Y-cable goes to the connector marked External on the loopback cable. See also Appendix A “Analyzer Cable Assemblies” for more detailed description of the Y-cable. Finally the ZLUs to be used for the Analyzer session must be defined. Take care to define these carefully since errors in these definitions may not be detected by ttgen. If there are such errors they may not be detected until the ports are used. Term 0019 0:2 HDLC.FRAME 0 0 90 20 1 0 0 "Protocol Analyzer" Follow the steps below to configure the ZLUs, refer to the examples above for clarification. In the example, ZLUs 19 and 20 form an analyzer pair, so do 21 and 22, and 23 and 24.
Once the network configuration is complete, the file must be compiled by ttgen. To run ttgen use the following command: $ ttgen -o file.answ file.tmem Here file.answ is the source file that has just been set up, and file.tmem is the output file to be used by zmon to start the ACC Mux system. For example, to compile the sample file: $ ttgen -o /opt/acc/cfg/x25an_sample.answ \ Here the -o option allows a previous copy of the output file /opt/acc/cfg/x25an_sample.tmem to be overwritten if it already exists. If there are inconsistencies in the configuration file, ttgen may report errors or warnings. These should be corrected and ttgen rerun until it runs without error. Once ttgen has been successfully run, ACC Mux subsystem must be restarted (note this command must be executed as superuser). First stop ACC Mux using: $ zmasterd stop Once the ttgen file is properly configured, the ACC Mux subsystem can be started using the appropriate .tmem file. $ zmasterd cold /opt/acc/cfg/x25an_sample.tmem Once ACC Mux is up and running, start the pcapture daemon. $ pcapture The pcapture program can also be started automatically with the ACC Mux Subsystem by adding the statement “start pcapture” to the file /opt/acc/cfg/zmasterd_list. This will cause zmasterd to automatically start this program. Pcapture runs as a daemon and reports its errors to the ACC Mux message file. If pcapture is not running correctly, look at the end of the daily ACC Mux log file, or on the system console if console logging has been enabled for ACC Mux. The log file name depends on the day of the week (i.e., /var/opt/acc/log/mon.tlog is Monday's file). To look at the end of this file: $ tail -20 /var/opt/acc/log/mon.tlog This will display the last 20 lines of the log file. When pcapture is started successfully only the revision message should appear; if pcapture is having problems it will display some reasons and then terminate. In the second example more than one copy of pcapture has been started, so the second one fails and terminates. 19:11:38 pcapt 00001 Protocol analyzer capture program Rev B.11.00 Once pcapture has been successfully started, pdisplay may be run. It may be run interactively, or may be run as single commands. For example just specifying pdisplay alone puts it into the interactive mode: $ pdisplay The prompt Display> indicates pdisplay is ready for interactive commands. Starting pdisplay with a command following the program name causes it to execute the single command and terminate, for example:
Exit program This method may be used to save the display output from a capture file to a file, or to pipe the output to more: $pdisplay display /var/opt/acc/log/sample.eve > printfile Refer to the section on “Detailed Command Descriptions”"Detailed Command Descriptions" for more information on the possible commands and options. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||