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 HDLC/LAP-B (ABM) User's Guide > Chapter 2 Software Installation and Verification

Installation Verification

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

A sample configuration file /opt/acc/cfg/lapb_sample.answ file is provided with the ACC Developer Software Suite product. This sample file can be used to verify that the HDLC/LAP-B (ABM) protocol module has been properly installed and is functional. Note that you may need to customize this file, to reflect the location of the mux card(s) and to reflect the mux ports to be used. The lapb_sample.answ file is shown in Appendix A “Sample Configuration Files”.

The steps in the verification process are listed below. It is assumed that the ACC Developer Software Suite product is installed on the system, and that there is at least one ACC Mux card installed with a cable and mux panel attached.

At least one loopback cable should be used to connect two of the ports on the mux panel. For the configuration file provided, it is assumed that the first two ports of the mux card are connected with a loopback cable, and that the end of the cable marked "Int" is connected to port 0.

Using the HDLC/LAP-B (ABM) Protocol Module

The ACC Installation and Configuration Guide contains the general procedure for configuring the network configuration file, creating customized downloadable firmware files (except for T1/E1 4-channel cards), and starting up the ACC subsystem with the new protocol and new configuration. To add HDLC/LAP-B (ABM) to a firmware file, see “Download Linkage” in Appendix A of this manual.

Refer to Chapter 4 “Protocol Specific Configuration” in this manual for HDLC/LAP-B (ABM) specific configuration requirements when building the network configuration file.

Verification Procedure

The procedure described involves using the zmlog, ttgen, zmntr, and zterm utilities. These utilities are described in the ACC Utilities Reference Guide.

  1. Modify the interface definition statement in the /opt/acc/cfg/lapb_sample.answ to reflect the location of the ACC Mux cards if necessary. (Refer to Chapter 4 “Protocol Specific Configuration” in this manual for information on how to modify this statement.) Also modify the <card-type> term for the Interface-Definition statement to "z7200a", or your card type.

  2. The sample file only configures the first two ports of one mux card. If desired, expand the configuration file to include additional ports.

    NOTE: For the test described here, the ports that will be connected together via a loopback cable must have one port configured as DTE, and the other as DCE. The mux ports must also have one set to internal clocking and the other to external clocking.

    In the sample configuration file, the even ports are set to internal clocking and the odd ports are set to external clocking. Also note that for 2-port and 8-port cards the loopback cable must be connected so that the end marked "Int" is connected to the port configured for internal clocking.

  3. Run ttgen on the modified network configuration (.answ) file.

    % ttgen -o lapb_sample.answ lapb_sample.tmem
    ttgen: END$ 0 Disasters, 0 Errors, 0 Warnings
    %
  4. Bring up the ZCOM subsystem:

    % zmasterd cold /opt/acc/cfg/lapb_sample.tmem

    Monitor the appropriate /var/opt/acc/log/*.tlog file, e.g. mon.tlog, tue.tlog, etc., to make sure the ACC ZCOM subsystem comes up. The following zmlog messages should be seen:

    -------------------------------------------------------------------
    MON JUN 16 13:36:25 1998: ZMLOG: MESSAGE LOGGING RESUMED
    -------------------------------------------------------------------
    13:36:11 ZNODE 00109 zcom SYSTEM DOWN, EXITING
    13:36:11 ZMAST 00129 STOPPING ZMLOG DAEMON.
    13:36:11 ZMON 00049 END OF zMON REQUEST, PROGRAM TERMINATED
    13:36:11 ZMON 00075 zcom SYSTEM STOPPED
    13:36:24 ZMAST 00101 LAUNCHED DAEMON ZMLOG, PID 1433.
    13:36:24 ZMAST 00117 ZMASTERD DAEMON START RUNNING ...
    13:36:24 ZMAST 00101 LAUNCHED DAEMON ZMON, PID 1434.
    13:36:25 ZMON 00002 RESOURCE MANAGER (REV 1.32) FOR zcom 6.2.0.0
    13:36:25 ZMON 00003 COLD START WITH: LAPB_SAMPLE.TMEM
    13:36:25 ZMON 00100 CARD 0 STARTING UP ...
    13:36:32 ZMON 00110 CARD 0 STARTUP SUCCESSFUL, CARD READY
    13:36:32 ZMON 00020 COLD START COMPLETED, zcom SYSTEM READY
    13:36:32 ZMON 00004 WAITING FOR ZMON REQUESTS ...
    13:36:32 ZMAST 00101 LAUNCHED DAEMON ZNODE, PID 1455.
    13:36:32 ZCOM 00165 NODE 123 IS NOW
  5. The zmntr utility can be used to display the original state of the HDLC link:

    ZMNTR> tt 10 20
    ZLU# MX P:SC TERMINAL DESCRIPTION.. RX.MES TX.MES ERRORS E.RATE STATE.......
    0010 00 0:00 HDLC LINK 1 0 0 0 0.00% DISABLED
    0020 00 1:00 HDLC LINK 2 0 0 0 0.00% DISABLED
    **** ** ** MESSAGE TOTALS 0 0 0 NAN% ***********
    ZMNTR> ex
    #
  6. The link can now be enabled using the zterm utility:

    # zterm
    13:40:09 ZCOM INTERACTIVE COMMAND UTILITY
    13:40:09 PRIMARY ZLU is 801
    ZTERM> rc 10 20
    ZTERM> cn 10 20 EN
    ZTERM> rx
    13:40:29 STAT CHG (UP) RSPNS FROM ZLU#00020(00123) NO ERROR DETECTED
    13:40:29 STAT CHG (UP) RSPNS FROM ZLU#00010(00123) NO ERROR DETECTED

    <CNTRL-C>

    13:40:37 ERROR ON ZREAD: INTERRUPT OCCURS WHILE WAITING
    13:40:37 MESSAGES RECEIVED 2, MESSAGES SENT 0
    13:40:37 ELAPSED TIME SECS 8, MESSAGES/SEC 0
    13:40:37 DATA IN KBytes 0, DATA RATE (KB/S) 0
    13:40:37 Sys CPU 0%, User CPU 0%, TOTAL CPU 0%
    13:40:37 MUX 0 UTILIZATION 1%
    ZTERM> EX
  7. The zmntr utility can be used to observe the state of the link:

    ZMNTR> tt 10 20
    ZLU# MX P:SC TERMINAL DESCRIPTION.. RX.MES TX.MES ERRORS E.RATE STATE.......
    0010 00 0:00 HDLC LINK 1 0 0 0 0.00% DEACTIVATED
    0020 00 1:00 HDLC LINK 2 0 0 0 0.00% DEACTIVATED
    **** ** ** MESSAGE TOTALS 0 0 0 NAN% ************
    ZMNTR> EX
  8. The link can now be brought up using the zterm utility:

    # zterm
    13:42:40 ZCOM INTERACTIVE COMMAND UTILITY
    13:42:40 Primary ZLU is 801
    ZTERM> rc 10 20
    ZTERM> cn 10 20 ac [Activate the link.]
    ZTERM> ex
    NOTE: Note that no status change will be received for the activate request.
  9. The zmntr utility can be used to observe the state of the link:

    ZMNTR> tt 10 20
    ZLU# MX P:SC TERMINAL DESCRIPTION.. RX.MES TX.MES ERRORS E.RATE STATE.......
    0010 00 0:00 HDLC LINK 1 0 0 0 0.00% Up
    0020 00 1:00 HDLC LINK 1 0 0 0 0.00% Up
    **** ** ** Message totals 0 0 0 .00% **
    ZMNTR> ex
  10. Data can now be sent over the established link. In this example, two 50 byte messages are sent on ZLU 10 using zsend mode 0 (indicating that no response is desired when messages have been sent).

    % zterm
    13:44:28 ZCOM INTERACTIVE COMMAND UTILITY
    13:44:28 Primary ZLU is 801
    ZTERM> rc 10 20
    ZTERM> tx 10 50 0 2 2
    13:44:45 TX test complete!!!
    ZTERM>
  11. The sent data can now be received and displayed:

    ZTERM> rx list
    13:44:51 Msg from tmnl ZLU#00020(00123) len 50 No error detected
    Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII.....
    000 5A74 3031 3534 3100 206D 6573 7361 6765 206E 6F2E Zt01541 message no.
    010 2030 3030 3031 206C 656E 6774 6820 2020 2035 3024 00001 length 50$
    020 6F70 7172 7374 7576 7758 opqrstuvwX
    13:44:51 Msg from tmnl ZLU#00020(00123) len 50 No error detected
    Lcn .00. .01. .02. .03. .04. .05. .06. .07. .08. .09. ASCII.....ASCII.....
    000 5A74 3031 3534 3100 206D 6573 7361 6765 206E 6F2E Zt01541 message no.
    010 2030 3030 3032 206C 656E 6774 6820 2020 2035 3024 00002 length 50$
    020 6F70 7172 7374 7576 7758 opqrstuvwX

    <CNTL-C>

    13:44:53 Error on ZREAD: Interrupt occurs while waiting
    13:44:53 Messages received 2, Messages sent 0
    13:44:53 Elapsed time secs 2, Messages/sec 1
    13:44:53 Data in KBytes 0, Data rate (KB/s) 0
    13:44:54 Sys CPU 0%, User CPU 2%, Total CPU 2%
    13:44:54 Mux 0 utilization 1%
    ZTERM> ex
  12. The ASCII part of the displayed message can be used to observe the message number. The rx command must be terminated using a <cntrl-C> command.

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