home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckv211.zip / ckvins.txt < prev    next >
Text File  |  2004-04-11  |  77KB  |  1,710 lines

  1.  
  2. C-Kermit 8.0 Installation Instructions for VMS
  3.  
  4.    [ [1]Contents ] [ [2]C-Kermit ] [ [3]Kermit Home ]
  5.  
  6.       As of C-Kermit version: 8.0.211, 10 April 2004
  7.       This file last updated: Sat Apr 10 16:39:25 2004 (New York City
  8.    time)
  9.  
  10.      IF YOU ARE READING A PLAIN-TEXT version of this document, note that
  11.      this file is a plain-text dump of a Web page. You can visit the
  12.      original (and possibly more up-to-date) Web page here:
  13.  
  14.   [4]http://www.columbia.edu/kermit/ckvins.html
  15.  
  16.    Authors:
  17.           F. da Cruz, C. Gianone, M. Evarts, Columbia University, New
  18.           York, NY.
  19.           Terry Kennedy, Saint Peters College, Jersey City, NJ.
  20.           And: Peter Mossel, James Sturdevant, Richard Gilbert, Sebastian
  21.           Bazley.
  22.     ________________________________________________________________________
  23.  
  24.   CONTENTS
  25.  
  26.   1. [5]QUICKSTART GUIDE
  27.   2. [6]BOOTSTRAPPING
  28.   3. [7]CONFIGURING VMS FOR BEST RESULTS WITH KERMIT
  29.      3.1. [8]TERMINAL BUFFER SIZE
  30.      3.2. [9]USER QUOTAS AND PRIVILEGES
  31.      3.3. [10]CONFIGURING SERIAL COMMUNICATION PORTS
  32.      3.4. [11]CONFIGURING LAT DEVICES
  33.      3.5. [12]THE VIRTUAL TERMINAL DRIVER
  34.      3.6. [13]CAPTIVE ACCOUNTS AND RESTRICTED ACCESS
  35.   4. [14]DECODING VMS C-KERMIT HEX FILES
  36.   5. [15]INSTALLING VMS C-KERMIT
  37.   6. [16]USING MODEMS
  38.   7. [17]BUILDING VMS C-KERMIT FROM THE SOURCE CODE
  39.      7.1. [18]PROGRAMMING TIPS
  40.      7.2. [19]VMS TCP/IP NETWORKING SUPPORT FOR C-KERMIT
  41.   8. [20]CASE STUDY: ALPHA SETUP AND TEST RESULTS
  42.   9. [21]MAKING AND USING VMSINSTAL KITS)
  43.     ________________________________________________________________________
  44.  
  45.   1. QUICKSTART GUIDE
  46.  
  47.    To install VMS C-Kermit on VAX/(Open)VMS 5.0 or later, and Alpha
  48.    OpenVMS (all versions), please follow the instructions in the next
  49.    three major sections of this file. VMS C-Kermit will also be available
  50.    for the IA64 (Itanium) as soon as the IA64 version of VMS is released.
  51.    Section 3, [22]Configuring VMS for Best Results with Kermit, contains
  52.    important information needed to achieve solid performance from
  53.    C-Kermit. Please read it and follow the suggestions or give it to your
  54.    system manager. Section 4, [23]Decoding VMS C-Kermit Hex Files,
  55.    explains the process required to create an executable image from the
  56.    "text-only" HEX files. These HEX files are distributed on the ANSI
  57.    tapes from Columbia University and are decoded using an
  58.    assembly-language program which is also provided. If you have received
  59.    VMS C-Kermit on TK50 tape in BACKUP format, then you already have
  60.    binary executable files included on the tape. Section 5,
  61.    [24]Installing VMS C-Kermit, gives step-by-step instructions for
  62.    making C-Kermit available and fully configured for your users.
  63.  
  64.    If you are running a version of VMS *prior* to 5.0, or need to
  65.    customize the C-Kermit sources, please refer to [25]Section 5.
  66.  
  67.    [ [26]Contents ] [ [27]C-Kermit ] [ [28]Kermit Home ]
  68.     ________________________________________________________________________
  69.  
  70.   2. BOOTSTRAPPING
  71.  
  72.    In many cases, you can get C-Kermit onto your VMS system using FTP, an
  73.    old version of Kermit that is already there, or some other existing
  74.    file transfer method, or by copying it from magnetic tape, diskette,
  75.    or CDROM.
  76.  
  77.    In case none of those methods are available to you, here is a method
  78.    to "bootstrap" C-Kermit onto a VAX system from another computer. It
  79.    uses the older and smaller "Kermit-32" program (which runs only on
  80.    VAXes, not Alphas) to load the newer and larger C-Kermit program.
  81.  
  82.    Suppose, for example, you have a PC with DOS, Windows, or some form of
  83.    UNIX such as Linux, which has FTP capability, and the PC is connected
  84.    to your VAX through its serial port (directly, with a null modem
  85.    cable, or else through a modem), and the PC already has its own Kermit
  86.    program installed (MS-DOS Kermit, Kermit 95, or C-Kermit, depending on
  87.    the OS). Here are specific instructions you can try; this example
  88.    assumes the PC has Linux and C-Kermit:
  89.  
  90.     1. Get the files vmsmit.hex and vmsdeh.mar with anonymous ftp in text
  91.        mode onto your PC from:
  92.   [29]ftp://kermit.columbia.edu/kermit/b
  93.        Also get the appropriate version of VMS C-Kermit on your PC from
  94.        the C-Kermit website:
  95.   [30]http://www.columbia.edu/kermit/ckermit.html
  96.     2. Use C-Kermit on Linux to log in to VMS:
  97.   set line /dev/ttyS0 ; or whatever
  98.   set speed 19200
  99.   set flow xon/xoff
  100.   set transmit eof \26
  101.   connect
  102.     3. Log in to VMS, SET DEFAULT to the desired directory, and then give
  103.        the following commands at the VMS prompt:
  104.   set terminal /ttsync /hostsync
  105.     4. Give the following command at the VMS prompt:
  106.   create vmsmit.hex
  107.     5. Escape back to C-Kermit on Linux with Ctrl-\ C.
  108.     6. Tell C-Kermit to:
  109.   transmit vmsmit.hex
  110.     7. Repeat steps 4-6 for VMSDEH.MAR.
  111.     8. Now you should have VMSMIT.HEX and VMSDEH.MAR in your VMS
  112.        directory. Give the following commands to VMS:
  113.   macro vmsdeh
  114.   link vmsdeh
  115.   run vmsdeh
  116.     9. When VMSDEH prompts for a filename, type "vmsmit.hex".
  117.    10. When VMSDEH is finished, it prompts you for another filename. Just
  118.        press the Enter (Return) key.
  119.    11. Now VMSMIT.EXE should be in your directory. To run it, type:
  120.   run vmsmit
  121.        at the VMS prompt.
  122.    12. Use this program to transfer the appropriate version of C-Kermit
  123.        to VMS, and then you will have a modern, fast, up-to-date version
  124.        of Kermit.
  125.  
  126.    WARNING: You can't use Kermit-32 ("Bliss Kermit") to receive a VMS
  127.    binary program. If you have to use Kermit-32 to get C-Kermit onto your
  128.    VAX, you'll need to transfer a hex-encoded version of the binary,
  129.    rather than the straight binary, and then "dehexify" the result as
  130.    shown above. This is because Kermit-32 stores incoming binary files in
  131.    a format that is not appropriate for VMS executables (variable 510
  132.    instead of fixed 512).
  133.  
  134.    [ [31]Contents ] [ [32]C-Kermit ] [ [33]Kermit Home ]
  135.     ________________________________________________________________________
  136.  
  137.   3. CONFIGURING VMS FOR BEST RESULTS WITH KERMIT
  138.  
  139.   3.1. Terminal Buffer Size
  140.  
  141.    VMS is shipped with default installation parameters designed to
  142.    function on all possible configurations. Some of these parameters have
  143.    not been changed since the "average" VMS system was a VAX-11/780 with
  144.    1Mb of memory.
  145.  
  146.    The main parameter that affects Kermit is the terminal type-ahead
  147.    buffer size, which applies to serial terminal devices (with the TT or
  148.    TX prefix). There are two possible values in VMS - the "normal" size
  149.    and the "alternate" size. The defaults for these are 78 and 200 bytes,
  150.    respectively. If more data arrives at the terminal driver than these
  151.    buffers can hold (which is a likely occurrence during file transfer),
  152.    it will be discarded and file transfers will be slowed down or
  153.    terminated by errors.
  154.  
  155.    This is most frequently seen when receiving files on a slow VAX,
  156.    particularly when using long packets and/or sliding windows. File
  157.    reception requires larger system buffers (to hold arriving packets),
  158.    and the speed of the VAX controls how quickly Kermit can empty them.
  159.  
  160.    The recommended minimum size for each of these buffers is the number
  161.    shown as "Buffer size" by the C-Kermit SHOW PROTOCOL command, which is
  162.    the total amount of memory allocated by C-Kermit for packet buffers
  163.    (window slots times packet length). VMS C-Kermit is shipped with a
  164.    buffer size of 9065, which can be altered by the user with a SET
  165.    BUFFERS command.
  166.  
  167.    To change the values of the VMS typeahead buffer sizes, you should
  168.    edit the file SYS$SYSTEM:MODPARAMS.DAT. Determine the new values you
  169.    want to use and add lines like the following to the end of the
  170.    MODPARAMS.DAT file:
  171.  
  172.   MIN_TTY_TYPAHDSZ = new_value_for_regular      ! For VMS C-Kermit
  173.   MIN_TTY_ALTYPAHD = new_value_for_alternate    ! For VMS C-Kermit
  174.  
  175.    for example:
  176.  
  177.   MIN_TTY_TYPAHDSZ = 2064
  178.   MIN_TTY_ALTYPAHD = 2064
  179.  
  180.    The TTY_ALTYPAHD size should be at least as great as the TTY_TYPAHDSZ.
  181.    Digital recommends a value of 2064 or greater for TTY_ALTYPAHD if you
  182.    are running VMS V5.5 or higher, or if you are running the optional
  183.    LATmaster code under VMS V5.4-1, -2, or -3.
  184.  
  185.    You should also examine this file to be sure there aren't any other
  186.    definitions for TTY_TYPAHDSZ or TTY_ALTYPAHD. If there are, you'll get
  187.    warning messages in the next step.
  188.  
  189.      You may wish to simply set TTY_TYPAHDSZ=TTY_ALTYPAHD=2064, since
  190.      most common VMS "TTY ports" these days are actually LAT or TCP/IP
  191.      devices, which cannot easily be configured to use the alternate
  192.      buffer. Also, it takes a privileged user or program to set a port
  193.      to use the alternate buffer, and since we do not recommend
  194.      installing Kermit with privileges, this would restrict Kermit
  195.      access to privileged users.
  196.  
  197.      Let's consider a medium-sized VAX with perhaps 64 "ports" (either
  198.      serial ports or LAT or TCP/IP network ports). This system probably
  199.      has at least 16 megabytes of memory. Configuring TTY_TYPAHDSZ to
  200.      2064 will take up 64 * 2064 bytes of memory, or 132096 bytes. This
  201.      is less than 1 per cent of available memory. Most systems would
  202.      have more than 16Mb of memory for 64 simultaneous users, lowering
  203.      the percentage even further.
  204.  
  205.    In some cases, it might also be necessary to increase your system's
  206.    MAXBUF parameter. It should be somewhat longer than the longest packet
  207.    you want Kermit to be able to send or receive, to allow for SYS$QIO
  208.    overhead (the bigger the value, the more overhead). DEC currently
  209.    recommends 2300, which should be sufficient for 2K (2048-byte)
  210.    packets. If you want to use C-Kermit's maximum packet length, 9024,
  211.    then your MAXBUF should be set to about 12000. Do this in the
  212.    SYS$SYSTEM:MODPARAMS.DAT file:
  213.  
  214.   MIN_MAXBUF=xxxx
  215.  
  216.    You should also ensure that PQL_MBYTLM is at least MAXBUF + 2300;
  217.    otherwise, at least on early 5.x VMS releases (reportedly), the system
  218.    can crash.
  219.  
  220.    To have these changes take effect, run the "AUTOGEN" procedure:
  221.  
  222.   @SYS$UPDATE:AUTOGEN GETDATA SETPARAMS
  223.  
  224.    or:
  225.  
  226.   @SYS$UPDATE:AUTOGEN SAVPARAMS SETPARAMS
  227.  
  228.    or:
  229.  
  230.   @SYS$UPDATE:AUTOGEN SAVPARAMS GENPARAMS FEEDBACK
  231.   DIFFERENCE/OUTPUT=DIFF.DAT/PARALLEL SETPARAMS.DAT
  232.   EDIT/TPU DIFF.DAT ! Check out what Autogen is going to do to me.
  233.   @SYS$UPDATE:AUTOGEN SETPARAMS REBOOT
  234.  
  235.    (Read about AUTOGEN in the VMS Guide to System Management)
  236.  
  237.    This incorporates the new buffer sizes into the system configuration,
  238.    and they will take effect the next time the system is reloaded.
  239.  
  240.    To examine your system parameters:
  241.  
  242.   run sys$system:sysgen
  243.   SYSGEN> use current
  244.   SYSGEN> show maxbuf                (should be at least 2064)
  245.   SYSGEN> show virtualpagecnt        (should be at least 50000)
  246.   SYSGEN> show /tty                  (TTY_ALTYPAHD should be at least 2064)
  247.  
  248.    In an emergency, or for testing purposes, you can also change your
  249.    MIN_MAXBUF value "on the fly":
  250.  
  251.   $ run sys$system:sysgen
  252.   SYSGEN> set maxbuf 2300
  253.   SYSGEN> write active
  254.   SYSGEN> exit
  255.  
  256.    This operation should be used with caution, and should probably NOT be
  257.    used with values greater than about 3000. The AUTOGEN procedure is
  258.    safer because it understands the relationships among the major
  259.    parameters.
  260.  
  261.    NOTE: Although it is still recommended that you make your MAXBUF
  262.    setting large enough for Kermit packets, it is (as of C-Kermit edit
  263.    190) no longer strictly necessary. C-Kermit's packet writer now
  264.    recovers from MAXBUF and quota-exceeded errors automatically by
  265.    backing off and retransmitting the packet in appropriate-size chunks
  266.    (size determined by trial and error). But this involves a small amount
  267.    of additional overhead, so it's still best to have adequate MAXBUF and
  268.    quotas.
  269.  
  270.   3.2. User Quotas and Privileges
  271.  
  272.    C-Kermit communications are also affected by the user's BYTLM quota
  273.    and possibly also the process page quota (PGFLQUO). Also the BIOLM
  274.    quota (should be at least 10 or 20).
  275.  
  276.    In modern versions of VMS, the default BYTLM quota is 8192, which
  277.    should normally be adequate. If C-Kermit users experience error
  278.    messages informing them that a quota was exceeded during terminal
  279.    emulation or file transfer, the system manager should increase the
  280.    user's BYTLM and/or process page quota. To find out the user's quotas,
  281.    the system manager should:
  282.  
  283.   set default sys$system
  284.   run authorize
  285.   UAF> show <username>
  286.  
  287.    Then look for the relevant quotas and adjust them as required. The
  288.    BYTLM quota should be somewhat greater than the product of Kermit's
  289.    window size and packet size, for example, 8192 for 4 window slots and
  290.    2000-byte-packets. PGFLQUO should be 20,000 or higher.
  291.  
  292.    If users will be using C-Kermit's PUSH command or issuing REMOTE
  293.    commands (such as REMOTE DIR) to the VMS C-Kermit server, the user
  294.    will need to have the ability to create subprocesses (AUTHORIZE
  295.    parameter PRCLM). If Kermit will itself be invoked as a subprocess
  296.    (for example, from within a menu system) this should be considered as
  297.    well. Kermit uses local mailboxes for remote command execution, so
  298.    users will also need the TMPMBX privilege if these commands are to be
  299.    used.
  300.  
  301.   3.3. Configuring Serial Communication Ports
  302.  
  303.    If your system has a port that is frequently used for file transfers
  304.    (for example, with a modem), you should have your system manager
  305.    enable the alternate type-ahead buffer, and direct memory access, by
  306.    placing the command:
  307.  
  308.   $ SET TERMINAL ddcu:/PERMANENT/ALTYPEAHD/DMA
  309.  
  310.    in the system-wide startup command file, where ddcu: is the name of
  311.    the device, for each such device. If DMA is not enabled, Kermit will
  312.    run more slowly and use a lot more CPU time. (Note: DMA is only
  313.    available on certain types of devices; e.g. TX but not TT or LTA).
  314.  
  315.    If the device is connected to a modem, and is to be used for dialing
  316.    out, also include the /MODEM qualifier:
  317.  
  318.   $ SET TERMINAL ddcu:/PERMANENT/ALTYPEAHD/DMA/MODEM
  319.  
  320.    The modem must also be configured to make DSR follow CD. In modems
  321.    that use the Hayes AT command set, the command is AT&S1. If you can't
  322.    configure your modem this way, then VMS will hang up on it during the
  323.    dialing process, preventing you from completing calls (C-Kermit's DIAL
  324.    command will make this setting in the modem for you on a per-call
  325.    basis, but only if this information is in its internal modems
  326.    database; tell C-Kermit to SET MODEM TYPE xxx and then SHOW MODEM to
  327.    find out). A less desirable workaround is to configure the modem to
  328.    ignore DTR (AT&D0), but this can block normal hangup methods even when
  329.    you want to use them, thus opening security loopholes. A third
  330.    possibility is to jumper the CD and DSR wires in your modem cable.
  331.  
  332.    If the VMS port is not connected to a modem or other data
  333.    communications device that follows the RS-232 (V.24) signaling
  334.    conventions, or if the VMS port does not have a full complement of
  335.    RS-232 wires (which are lacking in modular MMJ ports, for example),
  336.    you might have to set the /NOMODEM qualifier instead:
  337.  
  338.   $ SET TERMINAL ddcu:/PERMANENT/ALTYPEAHD/DMA/NOMODEM
  339.  
  340.    Even with these settings you might experience what UNIX users know
  341.    fondly as "getty babble", which occurs when logins are enabled on the
  342.    device. This occurs with Kermit, SET HOST/DTE, or any other method of
  343.    communication; for example, AT<CR> is sent to the modem, the modem
  344.    echoes AT<CRLF> and then says OK<CRLF>. VMS thinks a user named AT is
  345.    trying to log in with a password of OK, and says "User authorization
  346.    failure", but the modem echoes this too, and so on, back and forth,
  347.    many times, maybe forever. Reportedly, this can be prevented by giving
  348.    the SECURE attribute to the port in question, e.g.:
  349.  
  350.   $ SET TERMINAL ddcu:/PERMANENT/SECURE
  351.  
  352.    which disables logins on the port until a BREAK signal is received.
  353.  
  354.    Additionally, for non-privileged users to access a terminal device,
  355.    they need to be granted access to it. The default for terminals is
  356.    access only by users with SYSTEM privileges (UIC group less than or
  357.    equal to MAXSYSGROUP, or with SYSPRV privilege). See the VMS
  358.    documentation for the SET PROTECTION command for more information.
  359.    Note that if you grant everyone access to the port, anyone can make
  360.    phone calls via the modem, so you might want to limit this to
  361.    particular users, possibly by using a device ACL (VMS V5.0 and later
  362.    only).
  363.  
  364.   3.4. Configuring LAT Devices
  365.  
  366.    In this discussion, we are using a DECserver 700-16 (the kind with
  367.    MMJ/RJ45 connectors that lack a full complement of modem signals).
  368.    (For examples of configuring the DECserver 200, also see [34]Section
  369.    5.)
  370.  
  371.     3.4.1. Connecting a LAT Port to a PC
  372.  
  373.    We'll begin by connecting a PC's serial port to DECserver Port 2.
  374.    Commands are given at the DECserver's console, normally Port 1. In
  375.    case it is a new DECserver and you haven't yet given it a name:
  376.  
  377.   Local> set privilege
  378.   Local> define server name latbox
  379.   Local> initialize delay 0
  380.  
  381.    We'll be using the server name "latbox" in the examples. Now set up
  382.    port minimally for a test:
  383.  
  384.   Local> define port 2 autobaud disable
  385.   Local> define port 2 speed 19200
  386.   Local> define port 2 signal check disable
  387.   Local> logout port 2
  388.  
  389.    Then:
  390.  
  391.     1. Plug a BN25G-04 cable into LAT port 2.
  392.     2. Plug the appropriate adapter (H8585-something) into the other end
  393.        and connect it to the PC's serial port. In this case, the PC has a
  394.        DB-9, so we use the H8585-AA.
  395.     3. Start Kermit on the PC and tell it to:
  396.   SET PORT COM1 (or whatever)
  397.   SET SPEED 19200
  398.   SET FLOW NONE
  399.   SET CARRIER OFF
  400.   CONNECT
  401.     4. Press the Enter key. You should see the Local> prompt, and you
  402.        should be able to type commands, e.g. to connect to your VMS
  403.        system.
  404.  
  405.    OK, so it works in local mode. If not, check your cabling. Now to set
  406.    it up for remote mode, i.e. to allow VMS to make a connection to the
  407.    PC through the DECserver port:
  408.  
  409.   Local> change port 2 access remote
  410.   Local> show port 2
  411.  
  412.    Take note of the port's name; by default it is PORT_2, but you can
  413.    change it to anything you like with:
  414.  
  415.   Local> change port 2 name blah
  416.  
  417.    We'll stick with PORT_2 in this discussion.
  418.  
  419.    With Kermit on the PC is still in CONNECT mode, do:
  420.  
  421.   Local> test port 2
  422.  
  423.    This should put a test pattern on PC screen.
  424.  
  425.    Now to set up the port for use from VMS. First enable SYSPRV, CMKRNL,
  426.    LOG_IO, and SYSNAM privileges, then:
  427.  
  428.   $ run sys$system:latcp
  429.   LATCP> create port lta600:
  430.   LATCP> set port lta600: /application /node=latbox /port=port_2 /noqueue
  431.   LATCP> exit
  432.  
  433.    The /NODE switch gives the nodename of the DECserver; the /PORT switch
  434.    gives the port *name* (not number) of the port on the DECserver. The
  435.    /NOQUEUE switch is important; otherwise if somebody does "set port
  436.    lta600" when it is in use, they will sit there and wait until it
  437.    becomes free.
  438.  
  439.    Then in VMS:
  440.  
  441.   $ set terminal LTA600: /permanent /fullduplex /altypeahd /speed=19200
  442.  
  443.    This sets the typeahead buffer and makes the speeds match. You can use
  444.    LATCP again to verify the setup:
  445.  
  446.   $ run sys$system:latcp
  447.   LATCP> show port lta600:
  448.  
  449.   Target Port Name: PORT_2       Actual Port Name:
  450.   Target Node Name: LATBOX       Actual Node Name:
  451.   Target Service Name:           Actual Service Name:
  452.  
  453.    (Use "show port" without any port number to look at all defined LAT
  454.    ports.)
  455.  
  456.    That's it. Now start kermit and assign the port:
  457.  
  458.   $ kermit
  459.   C-Kermit> set line lta600:
  460.   C-Kermit> show communications
  461.  
  462.    This should display the name and speed of the LAT device, as
  463.    configured above. Then to make the connection:
  464.  
  465.   C-Kermit> connect
  466.  
  467.    Type some characters to VMS C-Kermit -- you should see them come out
  468.    on the PC's screen. Type some characters on the PC keyboard and they
  469.    should come out on VMS C-Kermit's screen.
  470.  
  471.    On the PC, escape back to the Kermit prompt and type "show comm" or
  472.    "show modem" to see what modem signals are being presented by the
  473.    connection. DECservers that have 25-pin serial connectors, such as the
  474.    200 and the 700-8, can do full modem control, but those with mini
  475.    connectors, such as the 700-16, make you choose between limited sets
  476.    of modem signals; the DECserver can be configured for either hardware
  477.    flow control (recommended for high-speed connections) or DTR/CD
  478.    (allowing each end of the connection to tell when the other end has
  479.    hung up), but you can't have both. On the DECserver, use:
  480.  
  481.   Local> define port 2 signal select xxx
  482.  
  483.    where xxx is CTS-DSR-RTS-DTR or RI-DCD-DSR-DTR, to select the desired
  484.    complement of modem signals; the first one for hardware flow control,
  485.    the second one for ring/hangup control.
  486.  
  487.   Local> define port 2 signal control enable
  488.   Local> logo port 2
  489.  
  490.    On the PC, use "show comm" to make sure the PC sees the CTS signal. If
  491.    so, tell Kermit to:
  492.  
  493.   set flow rts/cts
  494.  
  495.    Then put the PC Kermit in server mode and, using VMS C-Kermit as
  496.    client, transfer some files. Experiment with window size, packet
  497.    length, and unprefixing to achieve the highest transfer rate. Then
  498.    experiment with higher serial speeds -- this will require a LATCP
  499.    command on VMS, "change port" and "logout port" commands on the
  500.    DECserver, and a "set speed" command in PC Kermit.
  501.  
  502.     3.4.2. Setting Up a Dialout Port
  503.  
  504.    Now let's connect a modem to DECserver Port 3 for high-speed data
  505.    transfer (RTS/CTS, but no RI/CD). In this example the modem is a USR
  506.    Courier.
  507.  
  508.    Connect port 3 (in this case with BN25G-04 cable with an H8585-AC
  509.    adapter) to the modem. Then at the DECserver:
  510.  
  511.   Local> set privilege
  512.   Local> define port 3 autobaud disable
  513.   Local> define port 3 speed 38400
  514.   Local> define port 3 signal select cts
  515.   Local> define port 3 signal check enable
  516.   Local> define port 3 access remote
  517.   Local> define port 3 name dialout
  518.   Local> logout port 3
  519.   Local> show port 3
  520.  
  521.    Back at VMS:
  522.  
  523.   $ run sys$system:latcp
  524.   LATCP> create port lta601:
  525.   LATCP> set port lta601: /application /node=latbox /port=dialout /noqueue
  526.   LATCP> exit
  527.   $ set terminal LTA601: /permanent /fullduplex /altypeahd /speed=38400
  528.  
  529.    Now start C-Kermit and assign the port:
  530.  
  531.   $ kermit
  532.   C-Kermit> set modem type usr
  533.   C-Kermit> set line lta601:
  534.   C-Kermit> show comm           ; Speed should be 38400
  535.   C-Kermit> set dial display on ; To verify modem dialog
  536.   C-Kermit> dial 7654321
  537.  
  538.    And off you go.
  539.  
  540.    For other configurations, refer to your DECserver and LATCP
  541.    documentation. You can set up port "hunt groups", you can assign
  542.    logical names to the VMS ports, which can refer to single LAT ports or
  543.    entire hunt groups, and so on. You can even define "bidirectional"
  544.    ports for both calling in and calling out, but these are difficult to
  545.    troubleshoot when there are problems.
  546.  
  547.   3.4.3. DECservers and Telnet
  548.  
  549.    DECservers that support TCP/IP connections can be used by C-Kermit for
  550.    shared dialout modem access. The DECserver can be configured for this
  551.    using a command like:
  552.  
  553.   CHANGE TELNET LISTENER 2001 PORT 1 ENABLE
  554.  
  555.    This associates TCP socket 2001 with serial port 1 on the DECserver.
  556.    Then you can use Kermit to Telnet to port 2001 on the DECserver and
  557.    dial the modem that is on the DECserver's serial port 1.
  558.  
  559.    If you cannot get reverse LAT working, but LAT is working, it is still
  560.    possible to use Kermit via LAT so long as your system (and Kermit)
  561.    support TCP. Start Kermit, tell it to "set host localhost" (the TCP
  562.    loopback name). In connect mode you can log back on to the same system
  563.    (see the cautions in [35]Using C-Kermit about "C-Kermit in the
  564.    Middle").
  565.  
  566.    Then you can use SET HOST/LAT from the CONNECT session to dial out,
  567.    login to the remote system and start the remote Kermit. Now go back to
  568.    the original Kermit session to transfer the files. You should try it
  569.    first with SET PREFIXING ALL in C-Kermit, and probably also SET PARITY
  570.    SPACE, and relatively short packets. If that works, you can try
  571.    settings that give higher performance at your own risk.
  572.  
  573.   3.5. The Virtual Terminal Driver
  574.  
  575.    For incoming modem connections, it can be very useful if the VMS
  576.    system is set up to support Virtual Terminals. Once these have been
  577.    set up, then if an incoming connection fails because of line problems,
  578.    it should be possible to reconnect to the original session by
  579.    redialling and logging in again. You should then get a prompt asking
  580.    if you wish to connect to your disconnected session, allowing you to
  581.    resume where you left off. You should see something like this:
  582.  
  583.       You have the following disconnected process:
  584.   Terminal   Process name    Image name
  585.   VTA456:    ABCDEF          (none)
  586.   Connect to above listed process [YES]: Y
  587.   Connecting to terminal _VTA456:
  588.   ABCDEF>
  589.  
  590.    There is a timeout of something like an hour, after which the
  591.    disconnected session is deleted entirely.
  592.  
  593.    [If on re-dialing the host you find you are reconnected to the
  594.    original session without needing to login, then that host has a
  595.    security problem, as well as a misconfigured DECserver and/or modem or
  596.    lead...]
  597.  
  598.    The virtual terminal driver is loaded at startup (or later) using
  599.    SYSGEN or SYSMAN as appropriate. The definition for TTY_DEFCHAR2 in
  600.    MODPARAMS.DAT also needs to be changed to set the appropriate bit to
  601.    enable the disconnect processing by default on all terminals. [This
  602.    change needs a reboot.]
  603.  
  604.    Something like the following should work (check the VMS manuals):
  605.  
  606.    VAX:
  607.           $ MCR SYSGEN VTA0/NOADAPTER/DRIVER=TTDRIVER
  608.  
  609.    Alpha:
  610.           $ MCR SYSMAN IO CONNECT VTA0/NOADAPTER -
  611.           /DRIVER=SYS$LOADABLE_IMAGES:SYS$TTDRIVER.EXE
  612.  
  613.    MODPARAMS.DAT:
  614.           TTY_DEFCHAR2 = 135170 ! = %x21002. Check the manual!
  615.           (%x20000 = Disconnect, %x1000 = Line Edit, %x2 = Autobaud)
  616.  
  617.   3.6. Captive Accounts and Restricted Access
  618.  
  619.    Some VMS sites restrict users from getting at the DCL prompt and
  620.    services by setting their accounts to be "captive". This should
  621.    automatically prevent C-Kermit's DCL-access commands (such as PUSH)
  622.    from working. Any attempt to execute such a command should result in
  623.    C-Kermit issuing an error message. Should a user circumvent this, VMS
  624.    will automatically terminate the user's process. In addition to
  625.    CAPTIVE, accounts can also be set to RESTRICTED, to disable all types
  626.    of spawning. Note that DEC says that RESTRICTED is only used "to
  627.    ensure users complete login processing without interruption". DEC
  628.    further states that they intend to modify VMS utilities to no longer
  629.    prohibit spawning in a future release.
  630.  
  631.    Further, you should be aware that preventing users from getting to DCL
  632.    only provides an illusion of security. There are many ways of getting
  633.    to DCL which are non-obvious. For cases where absolute security is
  634.    required, you should in- vestigate the AUTHORIZE flags CAPTIVE and
  635.    DISIMAGE. Consult the VMS Security Manual for more information.
  636.  
  637.    C-Kermit itself can be configured to prevent system access, by
  638.    compiling it with the NOPUSH option (for this you would have to edit
  639.    CKVKER.COM file and add a definition for the symbol NOPUSH to the
  640.    CFLAGS). This disables not only the PUSH command and its synonyms
  641.    (RUN, @, SPAWN), but also OPEN !READ, OPEN !WRITE, as well as the
  642.    server's execution of REMOTE HOST commands. See CKCCFG.DOC for further
  643.    information.
  644.  
  645.    There is also a runtime approach for this: put the (invisible) command
  646.    NOPUSH someplace where it will always be executed; for example, the
  647.    system-wide CKERMIT.INI file, or in the "kermit" command definition:
  648.  
  649.   $ KERMIT :== "$SYS$TOOLS:KERMIT ""-C"" ""NOPUSH"""
  650.  
  651.    You can also define the logical name (environment variable) CK_NOPUSH
  652.    to achieve the same effect.
  653.  
  654.    The NOPUSH command does at runtime exactly what defining the NOPUSH
  655.    symbol at compile time does.
  656.  
  657.    [ [36]Contents ] [ [37]C-Kermit ] [ [38]Kermit Home ]
  658.     ________________________________________________________________________
  659.  
  660.   4. DECODING VMS C-KERMIT HEX FILES
  661.  
  662.      VMS C-Kermit hex files are not kept up to date. In fact, we only
  663.      have a few of them -- nonet versions for old versions of VMS on VAX
  664.      and Alpha. Once you have it on your VMS system and decode it, you
  665.      can use it to download a more current and appropriate version. 
  666.  
  667.    If you have obtained the executable VMS C-Kermit program encoded in
  668.    printable "hex" format on magnetic tape or over a network, you can
  669.    decode it back into a runnable .EXE program image using the CKVDEH.MAR
  670.    program. This is an assembly-language program for the VAX or Alpha,
  671.    which you should assemble, link, and run as follows:
  672.  
  673.   $ macro ckvdeh  (on the Alpha, substitute "macro/migrate ckvdeh")
  674.   $ link ckvdeh
  675.   $ run ckvdeh
  676.  
  677.    CKVDEH prompts you for the input file name and then creates a .EXE
  678.    file with the same root name. For example, if you enter CKVKER.HEX as
  679.    the source file, the resulting executable will be CKVKER.EXE. This
  680.    procedure works on both the VAX and the Alpha -- the same program,
  681.    CKVDEH.MAR, compiles and runs on both platforms.
  682.  
  683.    The C-Kermit .EXE files were built under VAX/(Open)VMS 5.x and Alpha
  684.    OpenVMS 1.x (whenever possible; otherwise under 6.1). The VAX versions
  685.    will not run under pre-5.0 VMS releases. If you have a VMS 4.x system
  686.    with C compiler, however, you should be able to build C-Kermit using
  687.    the CKVOLD.COM procedure.
  688.  
  689.    Since VMS C-Kermit can be built with no TCP/IP support or with support
  690.    for several different TCP/IP packages, and it can be built on both the
  691.    VAX and Alpha platforms, you should pick the right .HEX file for your
  692.    environment.
  693.  
  694.    The naming conventions are as follows:
  695.  
  696.   CKVaKER-VMSnn-tttvv.xxx
  697.  
  698.    where:
  699.  
  700.   CKV = "C-Kermit for VMS".
  701.     a = architecture: A for Alpha, V for VAX.
  702.   KER = Kermit
  703.    nn = VMS version, e.g. 55 for VMS 5.5, 70 for VMS 7.0.
  704.   ttt = TCP/IP product, if any:
  705.         CMU = CMU-OpenVMS/IP ("CMU/Tek")
  706.         UCX = Compaq (DEC) TCP/IP(*)
  707.         PST = Process Software TCPware
  708.         TGV = Process Software (Cisco (TGV)) MultiNet(*)
  709.         WIN = Attachmate (Wollongong) WIN/TCP (PathWay)(*)
  710.    vv = The version number of the TCP/IP product (may be 2 or more characters)
  711.   xxx = HEX (text-encoded binary) or EXE (true binary)
  712.  
  713.    When there is no TCP/IP support built in, tttvv is "NONET".
  714.  
  715.      * It's a bit of a task to keep up with all the buyouts and renaming.
  716.        Any of these companies or products can be snapped up and/or
  717.        renamed at any time, and most of them have been, including DEC
  718.        itself.
  719.  
  720.    Examples:
  721.  
  722.   CKVVKER-VMS55-NONET.HEX:   VAX, VMS 5.5, no TCP/IP, hex format.
  723.   CKVAKER-VMS62-TGV40.EXE: Alpha, VMS 6.2, Multinet 4.0, binary format.
  724.  
  725.    Not every combination is necessarily available. In general, an .EXE
  726.    built under a certain version of VMS will also run under later VMS
  727.    versions, but the opposite is usually not true. Also, if a version was
  728.    built under the same VMS version that you have, but with a higher ECO
  729.    level (OS or library patches), it might not run.
  730.  
  731.    So try to pick one that was built under a VMS version less than or
  732.    equal to yours, and with the the same TCP/IP product you have having
  733.    with a version number less than or equal to yours. If that doesn't
  734.    work, try the next earlier one, etc. If you can't find one for your
  735.    TCP/IP product, try the lowest-numbered UCX (DEC TCP/IP) version; most
  736.    third-party TCP/IP products also support UCX applications. In any
  737.    case, after getting the appropriate executable onto your VMS disk,
  738.    rename it to KERMIT.EXE, e.g.:
  739.  
  740.   $ RENAME CKVAKER-VMS62-TGV40.EXE KERMIT.EXE
  741.  
  742.    The "labeled file converter" is simple; it comes in a VAX version,
  743.    CKVVCVT-VMSnn.{HEX,EXE}, and an Alpha version,
  744.    CKVACVT-VMSnn.{HEX,EXE}. Rename it to CKVCVT.EXE so VAX and Alpha
  745.    users don't have to use different names for the same program.
  746.  
  747.    [ [39]Contents ] [ [40]C-Kermit ] [ [41]Kermit Home ]
  748.     ________________________________________________________________________
  749.  
  750.   5. INSTALLING VMS C-KERMIT
  751.  
  752.    VMS C-Kermit must be installed on your VMS system by hand. There is no
  753.    VMSINSTAL kit because it would have to include many megabytes of
  754.    differently- configured executables to choose from, and many of
  755.    system-configuration items discussed above are best done by the system
  756.    manager manually, in privileged mode, after some thought and
  757.    consideration.
  758.  
  759.      IMPORTANT: DO NOT INSTALL VMS C-KERMIT AS A PRIVILEGED PROGRAM!
  760.      Instead, install it as a foreign command.
  761.  
  762.    To install C-Kermit, follow this procedure:
  763.  
  764.     1. If you have the old Bliss Kermit-32 on your system, rename it to
  765.        KERMIT32.EXE. If you have a symbol KERMIT defined to run
  766.        Kermit-32, change the symbol name to KERMIT32.
  767.     2. Identify the directory where you want to install the C-Kermit
  768.        program. Normally this would be a directory that is unaffected by
  769.        installation of DEC software, such as SYS$TOOLS =
  770.        SYS$SYSDEVICE[SYSTOOLS]. From now on, we will assume you are using
  771.        SYS$TOOLS:.
  772.     3. Copy the desired .EXE file (VAX or Alpha, with the appropriate
  773.        networking support) to that directory, rename it to KERMIT.EXE,
  774.        and give users permission to run it, for example:
  775.   $ COPY CKVVKER-VMS55-UCX20.EXE SYS$TOOLS:KERMIT.EXE
  776.   $ SET PROTECTION=(S:RWED,O:RWED,G:RE,W:RE) SYS$TOOLS:KERMIT.EXE
  777.        If Kermit is going to be used a lot, you can have it preloaded and
  778.        its pure memory segments shared:
  779.   $ INSTALL ADD SYS$TOOLS:KERMIT.EXE/OPEN/HEADER/SHARE
  780.     4. Copy the standard CKERMIT.INI file to the same directory:
  781.   $ COPY CKERMIT.INI SYS$TOOLS:
  782.   $ SET PROTECTION=(S:RWED,O:RWED,G:RE,W:RE) SYS$TOOLS:CKERMIT.INI
  783.     5. Add the following line to SYS$COMMON:[SYSMGR]SYSTARTUP_V5.COM (or
  784.        whatever your system startup file is):
  785.   $ DEFINE/SYSTEM CKERMIT_INI SYS$TOOLS:CKERMIT.INI
  786.     6. Find your system-wide login DCL command procedure:
  787.   $ SHOW LOGICAL SYS$SYLOGIN
  788.   "SYS$SYLOGIN" = "SYS$TOOLS:SYLOGIN.COM" (LNM$SYSTEM_TABLE)
  789.        and then add the following line to it:
  790.   $ KERMIT :== $SYS$TOOLS:KERMIT
  791.        This defines SYS$TOOLS:KERMIT.EXE as a "foreign command".
  792.        NOTE: VMS 6.2 and later support automatic creation of foreign
  793.        commands by placing the corresponding .EXE (or .COM) files in any
  794.        directory that is included in the DCL$PATH logical name; e.g.:
  795.   $ DEFINE DCL$PATH SYS$DISK:[],DISK1:[TOOLS],SYS$SYSTEM:
  796.     7. Install the C-Kermit HELP file in your VMS HELP library. First
  797.        delete any earlier KERMIT help entry, then install the new one:
  798.   $ LIBRARY/HELP/DELETE=KERMIT SYS$HELP:HELPLIB.HLB
  799.   $ LIBRARY/INSERT/HELP SYS$HELP:HELPLIB.HLB CKVKER.HLP
  800.     8. Create a publicly accessible directory, such as [KERMIT], in which
  801.        to make other C-Kermit files available to your users:
  802.  
  803.         CKERMIT.KDD
  804.                 Sample dialing directory file.
  805.  
  806.         CKERMIT.KSD
  807.                 Sample services directory.
  808.  
  809.         CKERMIT.KND
  810.                 Sample network directory.
  811.  
  812.         CKEDEMO.KSC
  813.                 Macro definitions from "Using C-Kermit".
  814.  
  815.         CKEVT.INI
  816.                 Command file to demonstrate special screen effects from
  817.                 "Using C-Kermit".
  818.  
  819.         CKCKER.UPD
  820.                 A supplement to the book, "Using C-Kermit", describing
  821.                 features added since the book was published.
  822.  
  823.         CKCKER.BWR
  824.                 The general C-Kermit beware file.
  825.  
  826.         CKVKER.BWR
  827.                 The VMS-specific C-Kermit beware file.
  828.  
  829.        If the Kermit program is not installed as a "foreign command" as
  830.        in (6) above, you can still RUN it, but you can't pass
  831.        command-line arguments to it this way. However, you can pass
  832.        command-line arguments if you invoke it with the MCR command:
  833.   $ mcr kermit -s oofa.txt ; (assumes "kermit.exe" in sys$system)
  834.        or:
  835.   $ mcr disk1:[olga]kermit -s oofa.txt ; (explicit path given)
  836.  
  837.    [ [42]Contents ] [ [43]C-Kermit ] [ [44]Kermit Home ]
  838.     ________________________________________________________________________
  839.  
  840.   6. USING MODEMS
  841.  
  842.    If you have a VAX or Alpha with a real serial port (DB-9 or DB-25),
  843.    you can use it with a modem. If your machine has MMJ (assymetrical
  844.    RJ-45) modular jack sockets (like a VAXstation 3100), you won't be
  845.    able to make very good use of modems since these ports do not support
  846.    modem signals.
  847.  
  848.    Before attempting to use a modem on port (say) TTA0, you (or the
  849.    system manager) will need to configure the port as a modem port:
  850.  
  851.  $ SET TERMINAL TTA0 /MODEM /ALTYP /PERM
  852.  
  853.    From section 5.2.3.1 of the I/O User's Reference Manual:
  854.  
  855.      Remote terminal connections have a timeout feature for the security
  856.      of dial-up lines. If no channel is assigned to the port within 30
  857.      seconds, or a port with an assigned channel is not allocated, the
  858.      DTR signal is dropped. Such action prevents an unused terminal from
  859.      tying up a line. However, there are configurations (such as a
  860.      printer connected to a remote line) in which the line should not be
  861.      dropped even though it is not being used interactively. To bypass
  862.      the 30-second timeout, set the system generation parameter
  863.      TTY_DIALTYPE to 4. (Note that if TTY_DIALTYPE is equal to 4, all
  864.      dial-up lines will skip the timeout waiting for a channel to be
  865.      assigned.)
  866.  
  867.    The following is reprinted by permission; references to Kermit-32 are
  868.    obsolete.
  869.  
  870.                   How to Use a MODEM With Your VMS System
  871.                              Richard B. Gilbert
  872.                         Computer Systems Consultant
  873.               76702.1567@CompuServe.Com Revised July 30, 1996
  874.  
  875.    Most MODEMs come with factory defaults intended for dialout use with
  876.    PCs. The MODEM is typically set to ignore DTR; e.g., assume that it is
  877.    always asserted and to assert CD at all times regardless of the actual
  878.    state of the received carrier. The user is not required to do much, if
  879.    anything, to get it to work. Such a MODEM requires some configuration
  880.    before it will work properly, or at all, with a VMS System.
  881.  
  882.    Be sure that the serial port you are using supports MODEM control
  883.    signals. On the DMF32, for example, only ports 0 and 1 can be used
  884.    with MODEMS. These ports on the DMF32 must have DIP switches set to
  885.    enable MODEM control signals. The VAXStation 3100 does NOT support
  886.    MODEM control! (It is possible to use a MODEM but the VAXstation
  887.    cannot detect the loss of the connection; the next person to dial in
  888.    could find himself logged in to your account!) The MicroVAX 3100 does
  889.    support MODEM control. As a general rule, anything with a DEC Modified
  890.    Modular Jack (MMJ) connector does not support full MODEM control; the
  891.    MMJ has only six pins and nine are required. Eight pin RJ45 connectors
  892.    are sometimes used; e.g. on some models of the DECserver 700, where a
  893.    choice is offered as to the signals supported.
  894.  
  895.    Connect the MODEM with a cable that supports MODEM control signals,
  896.    such as Digital's BC22E. The BC22F, connecting all twenty-five pins,
  897.    is overkill but will work quite well. A twenty-five conductor ribbon
  898.    cable will also work but a shielded cable is highly recommended in
  899.    order to comply with Radio Frequency Interference (RFI) requirements.
  900.  
  901.    Note that while it was possible to "fake it" with VMS V4.x and
  902.    earlier, VMS V5 requires that all of the MODEM control signals be
  903.    connected. (Pins 2-8, 20 and 22 should be connected straight through;
  904.    i.e., 2-2, 3-3, 4-4, ...). If you are forced to sacrifice one signal,
  905.    try RI (Ring Indicator) first. For reference, here is the standard
  906.    pinout for the RS-232-C DB-25 connector.
  907.  
  908.    Pin Description
  909.    1   Protective ground (may be connected to shield at ONE end only)
  910.    2*  Transmitted data (TxD)
  911.    3*  Received data (RxD)
  912.    4*  Request to send (RTS)
  913.    5*  Clear to send (CTS)
  914.    6*  Data set ready (DSR)
  915.    7*  Signal ground
  916.    8*  Carrier detect (CD)
  917.    12  Speed Mode Indicate (or secondary CD)
  918.    15  Synchronous transmit clock
  919.    17  Synchronous receive clock
  920.    19  Speed select (or secondary RTS)
  921.    20* Data terminal ready (DTR)
  922.    22* Ring indicator (RI)
  923.    23  Data Signal Rate Select (DSRS)
  924.  
  925.    It should be noted that not all devices connect or support all these
  926.    pins and not all those listed are necessary for "full MODEM control".
  927.    The pins marked with an asterisk are generally essential to
  928.    satisfactory and secure operation of your modem.
  929.  
  930.    You will need to make some switch settings on your MODEM. The
  931.    following settings are for a U.S. Robotics Courier V32bis FAX Modem.
  932.    Other U.S. Robotics MODEMs use quite similar switch numbers and
  933.    settings. Other manufacturers may use different switch numbers but the
  934.    functions available are typical. See your MODEM's instruction manual
  935.    for the sordid details. The settings marked with an asterisk are
  936.    critical to the successful use of your MODEM. Some settings can also
  937.    be made from the CPU via the MODEM's AT command set, in which case the
  938.    hardware switch settings determine the MODEM's power on defaults. The
  939.    AT commands in parentheses, following the switch settings, are the
  940.    commands for a U.S. Robotics Courier HST Dual Standard MODEM. Check
  941.    your manual for the proper commands for your MODEM.
  942.  
  943.     1. (*) DTR Normal (controlled by CPU) (AT&D2&W)
  944.     2. Verbal result codes (Useful during dialout) (ATV1)
  945.     3. (*) Do not display result codes (Quiet mode) (ATQ1)
  946.     4. Echo off line commands (Useful during dialout) (ATE1)
  947.     5. (*) Auto answer (MODEM will answer the phone if DTR is asserted)
  948.        (ATS0=1)
  949.     6. (*) Normal Carrier detect (controlled by MODEM) (AT&C1&W)
  950.     7. Display originate result codes only.
  951.     8. Normal At command set (Must be enabled for auto dial.)
  952.     9. Online after +++
  953.    10. Load NVRAM defaults on power up.
  954.  
  955.    Many users have observed a VMS System dropping DTR (Data Terminal
  956.    Ready) while a user is trying to dial in, causing the MODEM to hang up
  957.    the phone. The terminal driver will drop DTR if it sees DSR (Data Set
  958.    Ready) for more than thirty seconds, without also seeing CD (Carrier
  959.    Detect). If it is possible to configure the MODEM so that it does not
  960.    assert DSR until it asserts CD (AT &S1&W), do so. Otherwise it will be
  961.    necessary to use a modified cable. At the VAX end of the cable, cut
  962.    the wire leading to pin 6 (DSR) and jumper pin 6 to pin 8 (CD).
  963.    Commands similar to the following should be placed in your
  964.    SYS$MANAGER:SYSTARTUP_VMS.COM (SYSTARTUP_V5.COM for VMS V5.X) file to
  965.    set up an asynchronous port for use with a MODEM. You may want to add
  966.    some more qualifiers but this will get you going.
  967.  
  968. $       SET TERMINAL -
  969.         /PERMANENT -    ! Make settings permanent
  970.         /MODEM -        ! Use MODEM control signals
  971.         /DIALUP -       ! Gives the DIALUP identifier to user.
  972.         /HANGUP -       ! Hang up the phone when user logs off
  973.         /AUTOBAUD -     ! Detect the user's baud rate and set it.*
  974.         /ALTYPEAHD -    ! Use the alternate typeahead buffer.  The
  975.                         ! alternate typeahead buffer can be made larger
  976.                         ! than the regular one.  This is helpful if you
  977.                         ! are doing file transfers.  See SYSGEN parameter
  978.                         ! TTY_ALTYPAHD.
  979.         /HOSTSYNC -     ! VMS System will send XOFF when its buffer is
  980.                         ! nearly full and XON when it is ready for more
  981.                         ! input.  See SYSGEN parameter TTY_ALTALARM.
  982.         _TXA0:
  983.  
  984. $       SET SECURITY /CLASS=DEVICE /PROTECTION=W:R      ! VMS V6
  985.                         ! Sets device protection to allow non-privileged
  986.                         ! users to allocate the device for dialing out.
  987.                         ! Otherwise user must own device or hold SYSPRV.
  988. or
  989. $       SET PROTECTION=W:R /DEVICE                      ! VMS V5
  990.  
  991.      * Many modern MODEMs are capable of using a fixed DTE rate to talk
  992.        to the computer; e.g. if they are set to 19200, they will talk to
  993.        the computer at 19200 regardless of what speed they are using to
  994.        talk to the remote MODEM. This feature has performance
  995.        implications for MODEMs that do data compression using either
  996.        CCITT V.41 or MNP. For such MODEMs, set a speed that is at least
  997.        four times the rated DCE speed of the MODEM or the highest
  998.        available speed using /SPEED=xxxxx rather than using /AUTOBAUD.
  999.        The MODEM must be set to use the corresponding speed. The U.S.
  1000.        Robotics Courier series are set to a particular DTE rate by the
  1001.        most recent AT&W command; the rate set is the current speed of the
  1002.        port. See your MODEM's instructions for details.
  1003.  
  1004.    The following commands should probably go in SYS$SYLOGIN, your
  1005.    system-wide login command file:
  1006.  
  1007.  
  1008. $! Test for interactive or batch mode
  1009. $!
  1010. $       IF F$MODE() .NES. "INTERACTIVE" THEN GOTO 10$
  1011. $!   Set up device dependant terminal characteristics.  This only works
  1012. $! if the terminal responds to ANSI Device Attributes (DA) control string.
  1013. $! Most DEC terminals (VT1xx, VT2xx, VT3xx, VT4xx, VT5xx, LAxxx) and
  1014. $! compatibles will do so.
  1015. $       IF F$GETDVI("TT", "TT_MODEM") THEN $ SET TERMINAL /INQUIRE
  1016. $ 10$:
  1017. **************************************************************************
  1018.  
  1019.    To set the terminal for temporary dialout use, execute the following
  1020.    commands:
  1021.  
  1022. $       ALLOCATE TXA0:  KER$COMM        ! Logical is useful for Kermit-32.
  1023. $       SPEED="''P1'"
  1024. $! Default to 1200 baud.                ! Pick a suitable default value.
  1025. $       IF SPEED .EQ. "" THEN SPEED=1200
  1026. $       SET TERMINAL /NOAUTOBAUD /SPEED='SPEED' KER$COMM:
  1027.  
  1028.    You may need to add a /NOECHO qualifier if your terminal program is
  1029.    too stupid to read with no echo. It is not necessary with SET
  1030.    HOST/DTE, KERMIT, XMODEM, or HOST32.
  1031.  
  1032.    To support a MODEM on a DECServer 200:
  1033.  
  1034.     1. Set up the terminal server as follows: (assuming port 8)
  1035.   Local> DEFINE PORT 8 ACCESS DYNAMIC AUTOBAUD DISABLED
  1036.   Local> DEFINE PORT 8 DSRLOGOUT DISABLED FLOWCONTROL XON
  1037.   Local> DEFINE PORT 8 INACTIVITY ENABLED MODEM ENABLED
  1038.   Local> DEFINE PORT 8 SIGNAL CHECK ENABLED
  1039.   Local> DEFINE PORT 8 SPEED 2400 ALTERNATE SPEED 1200
  1040.   Local> DEFINE PORT 8 DIALUP ENABLED
  1041.   Local> LOGOUT PORT 8
  1042.   Local> DEFINE SERVICE service_name PORT 8 IDENT "string"
  1043.   Local> SET SERVICE service_name PORT 8 IDENT "string"
  1044.        Other port characteristics may be defined "to taste".
  1045.     2. Insert the following statements in SYS$STARTUP:LAT$SYSTARTUP.COM
  1046.        (SYS$MANAGER:LTLOAD.COM for VMS V5.4 and below):
  1047.   CREATE PORT LTA100: /NOLOG
  1048.   SET PORT LTA100: /APPLICATION /NODE=server_name /SERVICE=service_name -
  1049.         /NOQUEUE /NOLOG
  1050.        The LTA number is more or less arbitrary but must take into
  1051.        account the fact that LAT startup creates a few ports temporarily
  1052.        (starting at LTA1) and the number you choose must not conflict.
  1053.        The server_name and service_name must correspond exactly to the
  1054.        names used in the DECserver DEFINE SERVER server_name and DEFINE
  1055.        SERVICE service_name commands!
  1056.     3. Insert the following statements in SYS$MANAGER:SYSTARTUP_VMS.COM
  1057.        (SYS$MANAGER:SYSTARTUP_V5.COM for VMS V5.X):
  1058. $!
  1059. $       @SYS$STARTUP:LAT$STARTUP.COM    ! Start LAT.
  1060. $! Note that SYS$STARTUP:LAT$STARTUP.COM starts LAT and then invokes
  1061. $! LAT$SYSTARTUP.COM to complete the system specific part of the startup.
  1062. $! VMS V5.4 and below would use @SYS$MANAGER:LTLOAD.COM.
  1063. $!
  1064. $! Set up MODEM port on terminal server.  The SET TERMINAL may not
  1065. $! be necessary at all since the DECserver DEFINE commands include equivalents
  1066. $! for everything except /ALTYPEAHD.
  1067. $       SET TERMINAL /PERMANENT /DIALUP /ALTYPEAHD /HOSTSYNC    LTA100:
  1068. $       SET SECURITY /CLASS=DEVICE /PROTECTION=W:R              LTA100:
  1069.     4. Reboot or execute the commands in steps 2 and 3.
  1070.  
  1071.    [ [45]Contents ] [ [46]C-Kermit ] [ [47]Kermit Home ]
  1072.     ________________________________________________________________________
  1073.  
  1074.   7. BUILDING VMS C-KERMIT FROM THE SOURCE CODE
  1075.  
  1076.    If you have the VMS C-Kermit source files in a ZIP archive, unpack the
  1077.    archive with:
  1078.  
  1079. unzip -aa ckv211.zip
  1080.  
  1081.    C-Kermit is written in the C programming language. To build C-Kermit
  1082.    on the VAX, you must have VAX C, DEC C, or GNU GCC. At some sites, the
  1083.    C header files are archived in a VMS library and then VMS C-Kermit
  1084.    might not be compilable. If the C compiler (preprocessor) complains
  1085.    about not being able to find header files, you'll have to extract them
  1086.    from the library. A sample DCL procedure for this can be found at the
  1087.    end of this file.
  1088.  
  1089.    WARNING: When building with GCC on a VMS system that has Multinet
  1090.    installed, you must ensure that the GCC TIME.H file is used instead of
  1091.    the Multinet TIME.H; otherwise there will be a fatal error in CKVTIO.C
  1092.    at the declaration of "tcount", around line 450. Other warnings appear
  1093.    to be harmless.
  1094.  
  1095.    WARNING: DEC C 4.0 has a bug in which the XABALL struct member
  1096.    xab$b_bkz (used in CKVFIO.C) is not defined. DEC gives a simple
  1097.    example -- compiling the following code with DEC C using either /DECC
  1098.    and /VAXC:
  1099.  
  1100.   #include <rms.h>
  1101.   struct XABALL xabDATAall;
  1102.   int f() {
  1103.       xabDATAall.xab$b_bkz = 63;
  1104.       return 1;
  1105.   }
  1106.  
  1107.    Results in:
  1108.  
  1109.   %CC-E-NEEDMEMBER, In this statement, "xab$b_bkz" is not a member of "xabDATAa
  1110. ll"
  1111.  
  1112.    If you find that the above code produces the same problem on your
  1113.    system, define BUGFILL7, e.g.:
  1114.  
  1115.   @ckvker.com "" "" "BUGFILL7"
  1116.  
  1117.    BEWARE: Certain versions of VAX C can generate incorrect code when a
  1118.    function is used before it is declared, and it generates a return
  1119.    value (via a return statement) that is not used; other functions might
  1120.    have their entry masks (argument lists) corrupted. If you experience
  1121.    bizarre behavior from a version of C-Kermit built with VAX C, try
  1122.    recompiling with /OPT=NOINLINE and /NOOPT, or some other reduced
  1123.    optimization level.
  1124.  
  1125.    Both VAX C and DEC C are moving targets. A version of C-Kermit that
  1126.    was built successfully with version x.y of the compiler almost always
  1127.    fails to build under version x.y+1. Thus you will find increasing
  1128.    numbers of #ifdefs in the code (mostly CKCNET.C and .H and the CKV*.*
  1129.    modules) keyed on explicit C compiler version numbers. Note the form
  1130.    of these carefully -- they have to be just right). Also note that you
  1131.    can't use constructions like:
  1132.  
  1133.   #if __DECC_VER >= 500000000
  1134.  
  1135.    ANYWHERE in a portable module because neither "#if" nor relational
  1136.    operators in preprocessor statements are portable.
  1137.  
  1138.    The number of possible VMS C-Kermit configurations is large, perhaps
  1139.    not even countable: VAX vs Alpha, VAXC vs DECC vs GCC, no network
  1140.    support vs Multinet vs TCPware vs Wollongong vs UCX vs CMU/Tek, and
  1141.    this release of VMS versus all the others. The kicker is in the
  1142.    releases; for example DEC C 4.0 vs 4.1 vs 5.0 vs 5.3 (etc) versus the
  1143.    TCP/IP product's header files, which themselves go through all sorts
  1144.    of releases and patches. We can't guarantee that C-Kermit can be
  1145.    successfully built on every combination, but in version 6.0 we are
  1146.    much closer to that goal than ever before.
  1147.  
  1148.    Before leaving this topic, let's look at how to find out the relevant
  1149.    version numbers. SHOW SYSTEM (among other commands) tells you the VMS
  1150.    version number. To find the C version number, try:
  1151.  
  1152.   $ CC /VER
  1153.  
  1154.    which works for recent DECC versions, or:
  1155.  
  1156.   $ CC NLA0: /NOOBJ /VERSION
  1157.  
  1158.    or (when the above doesn't work):
  1159.  
  1160.   $ CC/LIST=FOO SYS$INPUT
  1161.   ^Z
  1162.  
  1163.    and then look at the first line of FOO.LIS.
  1164.  
  1165.    The method for finding out the TCP/IP product version number depends
  1166.    on the product. For Multinet:
  1167.  
  1168.   $ MU SHOW /VERSION
  1169.  
  1170.    For DEC TCP/IP (UCX) versions 3.0 and later:
  1171.  
  1172.   $ UCX SHOW VERSION
  1173.  
  1174.    For earlier releases, or ones where the above command doesn't work,
  1175.    try:
  1176.  
  1177.   $ RUN SYS$SYSTEM:UCX$VERSIONS
  1178.  
  1179.    or:
  1180.  
  1181.   $ ANALYZE/IMAGE SYS$SYSTEM:*BGDRIVER
  1182.  
  1183.    or:
  1184.  
  1185.   $ ANALYZE/IMAGE SYS$LOADABLE_IMAGES:*BGDRIVER
  1186.  
  1187.    For others: (somebody please fill this in)
  1188.  
  1189.    Before trying to compile, make sure you've got the disk space and
  1190.    quotas, etc, that are needed. In version 6.0 and later, you'll
  1191.    probably need as much as 8 or 10 megabytes for all the sources,
  1192.    objects, and binaries.
  1193.  
  1194.    The User Authorization File (UAF) parameters of the account in which
  1195.    C-Kermit will be built must be set to accomodate the large size of
  1196.    some source modules. Recommended values are:
  1197.  
  1198.   PAGE FILE QUOTA:  at least 60000
  1199.   Working set extent:  at least 5012
  1200.  
  1201.    To modify: Suppose a user KERMIT is the VMS account from which Kermit
  1202.    is maintained. To set these values, the system manager must do the
  1203.    following:
  1204.  
  1205.   $ set default sys$system
  1206.   $ mcr authorize
  1207.   UAF> modify kermit/pgflquo=60000/wsextent=5012
  1208.   UAF> exit
  1209.  
  1210.    If errors such as:
  1211.  
  1212.   %cc-f-text Virtual Memory limits exceeded
  1213.  
  1214.    occur during the build procedure, these parameters may need adjustment
  1215.    (upwards).
  1216.  
  1217.    To build C-Kermit, create a new directory and make it your current
  1218.    directory:
  1219.  
  1220.   $ CREATE/DIR [.KERMIT]
  1221.   $ SET DEFAULT [.KERMIT]
  1222.  
  1223.    and put the C-Kermit source files and build procedures there, for
  1224.    example by copying them from the distribution tape or cartridge.
  1225.  
  1226.    Two build procedures are provided for C-Kermit 6.0 and later; one
  1227.    (CKVOLD.COM) for VMS 4.x, the other (CKVKER.COM) for VMS 5.0 and
  1228.    later. The two are equivalent except for syntax, and should work
  1229.    everywhere. No extra products (MAKE, MMS, MMK, etc) are required (but
  1230.    MMS or MMK will be used if present). The auxilliary file CKVKER.MMS is
  1231.    used if MMS or MMK are present. To build C-Kermit:
  1232.  
  1233.    $ @CKVKER  (or @CKVOLD)
  1234.  
  1235.    Please read the comments at the top of CKVKER.COM itself for further
  1236.    instructions and information.
  1237.  
  1238.    NOTE: if you get messages like this in the link step:
  1239.  
  1240.   %LINK-I-OPENIN, Error opening SYS$COMMON:[SYSLIB]VAXCRTLG.OLB; as input,
  1241.   %RMS-E-FNF, file not found
  1242.   %LINK-I-OPENIN, Error opening SYS$COMMON:[SYSLIB]VAXCRTL.OLB; as input,
  1243.   %RMS-E-FNF, file not found
  1244.  
  1245.    it probably means you have a LNK$LIBRARY symbol defined in your job
  1246.    (or system-wide) and the definition is inappropriate. DEASSIGN it if
  1247.    possible. If not, and if the LINK step produced no other error
  1248.    messages, and the WERMIT.EXE binary seems to run OK, then you can
  1249.    ignore the error messages.
  1250.  
  1251.    If you get huge amounts of warnings like:
  1252.  
  1253.               getsockname(sock,(struct sockaddr *)&l_sa,&slen);
  1254.   ............^
  1255.   %CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer
  1256.   value "&slen" is "int", which is not compatible with "unsigned int".
  1257.   at line number 5870 in file DISK$USRG:[FDC.KERMIT]CKCNET.C;20
  1258.  
  1259.    this indicates that some essential header file is not being executed,
  1260.    which can happen for all sorts of reasons (usually some symbol was
  1261.    defined by some other header file that interferes with a subsequent
  1262.    one). The trick here is to get an include-file listing, which is
  1263.    possible with DECC (maybe VAXC too):
  1264.  
  1265.   @ckvker.com "" "" "" /LIST/SHOW=INCLUDE
  1266.  
  1267.    and then look through the CK????.LIS file of the offending module.
  1268.  
  1269.   7.1. Programming Tips
  1270.  
  1271.    For testing the DEC C version number:
  1272.  
  1273.   #ifdef __DECC_VER
  1274.   #if (__DEC_VER >= 050100000)
  1275.   blah
  1276.   #endif
  1277.   #endif
  1278.  
  1279.    Note: the version number is vvuuteeee; vv is the major version (like
  1280.    5), uu is the update number (like the "3" in 5.3), t is a code for
  1281.    field test, real release, etc, and eeee is the edit suffix. This is
  1282.    available only in DECC 5.0 and later. It also has a __VMS_VER... Note
  1283.    #2: Remember not to add a leading zero because that changes it to
  1284.    octal.
  1285.  
  1286.   7.2. VMS TCP/IP Networking Support for C-Kermit
  1287.  
  1288.    VMS C-Kermit is capable of establishing TCP/IP TELNET connections and
  1289.    acting as a TELNET program with built-in file transfer, script
  1290.    programming, character-set translation, etc, if it is built
  1291.    appropriately. If you have one of the following products installed on
  1292.    your system, complete with libraries and header files:
  1293.  
  1294.     1. DEC TCP/IP (UCX)
  1295.     2. TGV MultiNet TCP/IP
  1296.     3. Wollongong WIN/TCP or PathWay
  1297.     4. Process Software TCPware
  1298.     5. CMU-OpenVMS/IP with Mike O'Malley's sockets library
  1299.  
  1300.    then you can include TCP/IP capability in your version of VMS
  1301.    C-Kermit.
  1302.  
  1303.    The TCP/IP product is selected automatically by the build procedure
  1304.    based on the presence or absence of certain files on your system. To
  1305.    override the automatic selection, define the symbol NET_OPTION in one
  1306.    of the following ways before running the build procedure:
  1307.  
  1308.   $ NET_OPTION = "NONET"      ! Build with no TCP/IP networking support
  1309.   $ NET_OPTION = "CMU_TCPIP"  ! Build with CMU/Tek TCP/IP networking support
  1310.   $ NET_OPTION = "DEC_TCPIP"  ! Build with DEC TCP/IP (UCX) support
  1311.   $ NET_OPTION = "MULTINET"   ! Build with TGV MultiNet TCP/IP support
  1312.   $ NET_OPTION = "TCPWARE"    ! Build with Process Software TCPware support
  1313.   $ NET_OPTION = "WINTCP"     ! Build with WIN/TCP or PathWay support
  1314.  
  1315.    That is, type one of the commands listed above at the DCL prompt
  1316.    (shown above as "$") before running the build procedure. You can also
  1317.    force a "NONET" build with the CKVKER.COM "N" command-line option.
  1318.  
  1319.    Note: If you are building a version with TCP/IP support, and you have
  1320.    the required TCP/IP libraries and header files, but the #include files
  1321.    can't be found at compile time, then maybe they were put into a text
  1322.    library, in which case you need to unpack the include-file library
  1323.    into separate files using the VMS LIBRARY command.
  1324.  
  1325.     7.2.1. DEC TCP/IP (UCX) If the C-Kermit build procedure does not notice
  1326.     that you have DEC TCP/IP installed when you really do, it is likely because
  1327.     the file SYS$STARTUP:UCX$STARTUP.COM is read-protected (e.g. because your
  1328.     site runs DECinspect). Turn on READONLY privilege.
  1329.  
  1330.     If the DEC TCP/IP version of KERMIT.EXE crashes immediately upon startup
  1331.     with a message like:
  1332.  
  1333.   %LIB-E-ACTIMAGE, error activating image
  1334.    R4GRIE$DIA0:[SYS0.SYSCOMMON.][SYSLIB]UCX$IPC_SHR.EXE;1
  1335.   -SYSTEM-F-PRIVINSTALL
  1336.  
  1337.    it means the system manager has to install the UCX sharable library:
  1338.  
  1339.   INSTALL ADD SYS$SHARE:UCX$IPC_SHR.EXE
  1340.  
  1341.     7.2.2. Wollongong / Attachmate TCP/IP Wollongong (now Attachmate (now
  1342.     defunct)) support should work for both new (PathWay) and older (WIN/TCP)
  1343.     versions, and C-Kermit versions linked under older Wollongong versions
  1344.     should still run under the newer version. But note that the pieces of the
  1345.     Wollongong package are now unbundled -- you have to buy the runtime,
  1346.     access, API, etc, pieces separately, and (of course) you need the API to
  1347.     compile C-Kermit with Wollongong TCP/IP support.
  1348.  
  1349.     C-Kermit 7.0 has been verified to build on VMS ... with Pathway 3.1 with a
  1350.     few harmless warning messages, but the following change is required to the
  1351.     Attachmate-supplied file TWG$TCP:[NETDIST.MISC]DEF.COM to remove the
  1352.     definition of DECC$SYSTEM_INCLUDE:
  1353.  
  1354.   $ diff twg$tcp:[netdist.misc]def.com
  1355.   ************
  1356.   File TWG$COMMON:[NETDIST.MISC]DEF.COM;2
  1357.      37   $! define decc$system_include   twg$tcp:[netdist.include],      -
  1358.      38   $!                              twg$tcp:[netdist.include.sys]
  1359.      39   $!
  1360.   ******
  1361.   File TWG$COMMON:[NETDIST.MISC]DEF.COM;1
  1362.      37   $ define decc$system_include    twg$tcp:[netdist.include],      -
  1363.      38                                   twg$tcp:[netdist.include.sys]
  1364.      39   $!
  1365.  
  1366.    You can't build VMS C-Kermit with Wollongong TCP/IP support using GCC
  1367.    due to the use of "noshare" in the Wollongong header files.
  1368.  
  1369.    Reportedly, when building C-Kermit with WIN/TCP support with older
  1370.    versions (5.1 and earlier?) of WIN/TCP, the symbol WIN$PERROR is
  1371.    undefined at link time and the build fails. Workaround: change the one
  1372.    reference to win$perror(), which occurs in the contti() function in
  1373.    CKVTIO.C, to be simply perror().
  1374.  
  1375.     7.2.3. TGV / Cisco / Process MultiNet If your VAX has the TGV MultiNet
  1376.     TCP/IP networking product, CKVKER.COM automatically builds C-Kermit with
  1377.     MultiNet TCP/IP support included. However:
  1378.  
  1379.      * In older (pre-V3.1) MultiNet installations, the header files might
  1380.        not be installed. Without these, C-Kermit will not build
  1381.        correctly. The system manager can add Multinet 3.1 programming
  1382.        support by installing MNETLIB031 from the Multinet distribution,
  1383.        if licensed to do so.
  1384.      * Anyone building the VMS version with certain versions of TGV
  1385.        MultiNet support under VAX C 3.1 might get an error message about
  1386.        conficting definitions of "time_t". This is because of a conflict
  1387.        between DEC's <types.h> and MultiNet's <types.h> caused because
  1388.        DEC changed the definition between VAX C 3.0 and 3.1. Kermit can't
  1389.        do anything about this because CKVTIO.C #includes <time.h>, which
  1390.        itself includes <types.h>. The warning is not fatal.
  1391.  
  1392.     7.2.4. CMU-OpenVMS/IP CMU-OpenVMS/IP (CMUIP), originally CMU/Tek-TCP/IP, is
  1393.     a public domain TCP/IP package originally developed at Carnegie-Mellon
  1394.     University (CMU) by Tektronix (Tek). CMUIP was released to the public trust
  1395.     in December 1992 as CMU-OpenVMS/IP and is now maintained by a diligent
  1396.     group from around the Internet. Support is provided through the usenet
  1397.     group:
  1398.  
  1399.   vmsnet.networks.tcp-ip.cmu-tek
  1400.  
  1401.    BSD socket support for C-Kermit is supported thanks to a new
  1402.    CMU-OpenVMS/IP socket library written by Mike O'Malley of Digital
  1403.    Equipment Corporation. If you have this library installed on your VMS
  1404.    system, the build procedure will find the file
  1405.    CMUIP_ROOT:[SYSLIB]LIBCMU.OLB and C-Kermit will be built automatically
  1406.    with CMU-OpenVMS/IP support unless you define NET_OPTION to say
  1407.    otherwise. The LIBCMU socket library can be found on the
  1408.    kermit.columbia.edu anonymous ftp server.
  1409.  
  1410.   7.3. Adding SSL/TLS Security
  1411.  
  1412.    As of C-Kermit 8.0.208 it is possible to build VMS C-Kermit binaries
  1413.    with SSL/TLS security, allowing securely authenticated and encrypted
  1414.    SSL/TLS or SSL-TELNET connections to be made (but not FTP, since as
  1415.    yet Kermit's FTP client has not been ported to VMS). To build a secure
  1416.    version of VMS C-Kermit, include CK_SSL in P3 and define logicals
  1417.    OPENSSL and SSLLIB to point to OpenSSL and libs, or install Compaq SSL
  1418.    V1.0A. Note that SSL-enabled binaries are restricted by USA export
  1419.    law, and therefore can not be put on publicly accessible FTP or Web
  1420.    sites.
  1421.  
  1422.    [ [48]Contents ] [ [49]C-Kermit ] [ [50]Kermit Home ]
  1423.     ________________________________________________________________________
  1424.  
  1425.   8. CASE STUDY: ALPHA SETUP AND TEST RESULTS
  1426.  
  1427.    Written by Peter Mossel.
  1428.  
  1429.    Model number: DEC3000/400, a workstation with 64MB of memory.
  1430.    Ports used: OPA1: (a MMJ connector for the alternate operator console)
  1431.    TTA1: (a 25-pin male D-connector on the back)
  1432.    Operating System: OpenVMS V1.0
  1433.    Firmware: V1.1
  1434.  
  1435.    Upon power-up, the console displays something like:
  1436.  
  1437.   ...
  1438.   CPU   OK  KN15-BA V1.1-S11A IO20 sV1.0 DECchip 21064 P2.1
  1439.   ...
  1440.  
  1441.    Testing setup 1: OPA1:
  1442.  
  1443.   +-------+
  1444.   |     MMJ--- DECconnect cable ---MMJ H8571-A--- modem cable to PC
  1445.   +-------+                            (passive adapter)
  1446.  
  1447.    In words, plug a DECconnect cable with MMJ plugs on both ends in the
  1448.    alternate console port on the back of the DEC3000/400. Make sure S3 is
  1449.    in the "up" position. The workstation screen is now the console
  1450.    (OPA0:) and the extra port, OPA1:, is available for connecting a
  1451.    terminal or printer. This MMJ plug is the only MMJ plug on the back of
  1452.    this machine.
  1453.  
  1454.    My other host for the test is a DECpc 466, a 66MHz i486 with DOS 5.0
  1455.    and MS-DOS Kermit 3.12. The 466 has 2 serial ports, both 9-pin. I
  1456.    attached a standard 9-pin to 25-pin modem cable (the ones that came
  1457.    into existence with the IBM PC/AT which originally had only a 9-pin
  1458.    serial port) to the serial port on the 466.
  1459.  
  1460.    Now we must join a 25-pin connector and a MMJ connector. This is done
  1461.    with a passive adapter (H8571-A) which converts the RS423 signalling
  1462.    standard (balanced TX+ TX- RX+ RX-, DTR, DSR) to RS-232. All this is
  1463.    fairly standard for DEC sites. Note that when connecting a modem to an
  1464.    MMJ connector, we have only a subset of the required modem signals, so
  1465.    this is not supported via MMJ. The other port (TTA1) has full modem
  1466.    control. Note that the DECconnect cable always reverses TX and RX, so
  1467.    it effectively functions as a NULL-modem cable.
  1468.  
  1469.    Testing setup 2: TTA1
  1470.  
  1471.   +-------+
  1472.   |     25-pin D connector --- NULL modem cable to PC
  1473.   +-------+
  1474.  
  1475.    Use the (only) 25-pin D-connector on the back. Now we need a null
  1476.    modem cable (see the Kermit book), and, because my PC has a 9-pin
  1477.    serial port, I also need a 9-pin to 25-pin modem cable.
  1478.  
  1479.    Testing setup 3: LAT
  1480.  
  1481.    Connect the PC with a standard cable to the terminal server, which
  1482.    speaks LAT to my DEC3000/400. The speed can be set up to 19200 baud
  1483.    with the terminal server in use.
  1484.  
  1485.    Test script for setup 1 and 2:
  1486.  
  1487.    On DEC3000:
  1488.  
  1489. $ kermit
  1490. C-Kermit>set line xxx
  1491.    (where xxx is OPA1 or TTA1)
  1492. C-Kermit>set speed 19200
  1493.  
  1494.    On the PC:
  1495.  
  1496. C:\kermit
  1497. MS-Kermit>set port 1
  1498. MS-Kermit>set speed 19200
  1499. MS-Kermit>server
  1500.  
  1501.    On the DEC3000:
  1502.  
  1503. C-Kermit>get test.fil
  1504. C-Kermit>finish
  1505.  
  1506.    On the PC
  1507.  
  1508. MS-Kermit>quit
  1509.  
  1510.    Test script for setup 3 (LAT):
  1511.  
  1512.    On the PC
  1513.  
  1514. C:\kermit
  1515. MS-Kermit>set port 1
  1516. MS-Kermit>set speed 19200
  1517. MS-Kermit>connect
  1518.  
  1519.           ( Now log into DEC3000 as host )
  1520.  
  1521. $ kermit -x
  1522.  
  1523.           ( back to the PC )
  1524.  
  1525. MS-Kermit>get test.fil
  1526. MS-Kermit>bye
  1527.  
  1528.    Results:
  1529.  
  1530.    In all three cases, the data transfer speed is excellent. Over 80% of
  1531.    the bandwidth of the communication channel is used for the file
  1532.    transfer, sometimes even more. The DEC3000 is loaded with processes
  1533.    (MOTIF, Sybase DBMS, NFS clients and servers,...) and heavy network
  1534.    activity (DECnet, LAT, TCP/IP but no characters have ever been lost,
  1535.    even when the DBMS fires up. No special SYSGEN parameters, just
  1536.    configured for a normal workstation with MOTIF.
  1537.  
  1538.    Notes:
  1539.  
  1540.     1. Device protection
  1541.        In a system like this out of the box, the device protection on
  1542.        TTA1 and OPA1 does not allow an unprivileged user to use these
  1543.        lines for DIAL-OUT from Kermit. Thus, the system manager must set
  1544.        every time the system is rebooted:
  1545.   $ set protection=w:rwlp/device OPA1:
  1546.   $ set protection=w:rwlp/device TTA1:
  1547.        Without these special protections, a terminal connected to these
  1548.        ports will still be able to login and get the "Username:" prompt.
  1549.     2. Console device speed
  1550.        The Alpha VMS V1.0 cover letter mentions that the command
  1551.   $ set terminal/speed=nnnn/perm/opa1:
  1552.        will have no effect on the speed of OPA1. In practice, there is no
  1553.        problem with Kermit file transfers. The data just get thru fine
  1554.        and file transfers are OK. The release notes also mention that
  1555.        setting the speed of OPA1 can be accomplished by setting the
  1556.        console environment variable "tta1_baud" to the desired speed. See
  1557.        the hardware guide on how to do this. The problem will be fixed in
  1558.        a future release.
  1559.  
  1560.    [ [51]Contents ] [ [52]C-Kermit ] [ [53]Kermit Home ]
  1561.     ________________________________________________________________________
  1562.  
  1563.   9. MAKING AND USING VMSINSTAL KITS
  1564.  
  1565.    (NOTE: This section is only for future reference, in case it becomes
  1566.    practical to distribute VMSINSTAL kits for C-Kermit. For now, please
  1567.    ignore.)
  1568.  
  1569.    (The reason it isn't practical to build VMSINSTAL kits is that they
  1570.    would be HUGE -- we have five networking options times two processors
  1571.    (VAX and Alpha) times two choices of whether you want to build from
  1572.    the source code or accept the included binary, and the resulting kit
  1573.    still would not solve the many VMS configuration problems discussed
  1574.    above.)
  1575.  
  1576.    After building C-Kermit using one of the procedures outlined above,
  1577.    execute the DCL procedure CKVMSI.COM to create a VMSINSTAL kit. This
  1578.    kit can be created either with or without the source code. In any
  1579.    case, it includes the C-Kermit executable program, the C-Kermit help
  1580.    file (for installation in your HELP library), plus a sample
  1581.    CKERMIT.INI (C-Kermit initialization) file, and release notes. You may
  1582.    now install C-Kermit using the command:
  1583.  
  1584.   @sys$update:vmsinstal kermit
  1585.  
  1586.    It will prompt you for which components you want installed, and where
  1587.    to put them. CKVMSI and CKVKIT were written by Terry Kennedy of Saint
  1588.    Peters College.
  1589.     ________________________________________________________________________
  1590.  
  1591.   9.1. Sample Header-File Extraction Procedure
  1592.  
  1593.    This one is for VAX C, and probably needs a few more files extracted
  1594.    from it than are shown below.
  1595.  
  1596. $!
  1597. $! XTRACTHD.COM
  1598. $! By Robert Weiner, Programming PLUS, rweiner@watsun.cc.columbia.edu
  1599. $! FEB-1992
  1600. $! Use this Extract Header command script to extract the VAXC header files
  1601. $! from sys$library:vaxcdef into the current directory inorder to compile
  1602. $! ckermit if you don't have the include files already in sys$library:
  1603. $! You must also modify the CKVKER.COM procedure to include
  1604. $! "CCFLAGS = /INC=([])" for this to work, ie. search current directory too.
  1605. $!
  1606. $ write sys$output "Extracting CKERMIT Include Files into Local Directory..."
  1607. $!
  1608. $lib /log /extract=CTYPE        /output=CTYPE.h         sys$library:vaxcdef.tlb
  1609. $lib /log /extract=DCDEF        /output=DCDEF.h         sys$library:vaxcdef.tlb
  1610. $lib /log /extract=DESCRIP      /output=DESCRIP.h       sys$library:vaxcdef.tlb
  1611. $lib /log /extract=DEVDEF       /output=DEVDEF.h        sys$library:vaxcdef.tlb
  1612. $lib /log /extract=DVIDEF       /output=DVIDEF.h        sys$library:vaxcdef.tlb
  1613. $lib /log /extract=ERRNO        /output=ERRNO.h         sys$library:vaxcdef.tlb
  1614. $lib /log /extract=FILE         /output=FILE.h          sys$library:vaxcdef.tlb
  1615. $lib /log /extract=IN           /output=IN.h            sys$library:vaxcdef.tlb
  1616. $lib /log /extract=INET         /output=INET.h          sys$library:vaxcdef.tlb
  1617. $lib /log /extract=IODEF        /output=IODEF.h         sys$library:vaxcdef.tlb
  1618. $lib /log /extract=JPIDEF       /output=JPIDEF.h        sys$library:vaxcdef.tlb
  1619. $lib /log /extract=LIMITS       /output=LIMITS.h        sys$library:vaxcdef.tlb
  1620. $lib /log /extract=NETDB        /output=NETDB.h         sys$library:vaxcdef.tlb
  1621. $lib /log /extract=RMS          /output=RMS.h           sys$library:vaxcdef.tlb
  1622. $lib /log /extract=SETJMP       /output=SETJMP.h        sys$library:vaxcdef.tlb
  1623. $lib /log /extract=SIGNAL       /output=SIGNAL.h        sys$library:vaxcdef.tlb
  1624. $lib /log /extract=SOCKET       /output=SOCKET.h        sys$library:vaxcdef.tlb
  1625. $lib /log /extract=SSDEF        /output=SSDEF.h         sys$library:vaxcdef.tlb
  1626. $lib /log /extract=STARLET      /output=STARLET.h       sys$library:vaxcdef.tlb
  1627. $lib /log /extract=STAT         /output=STAT.h          sys$library:vaxcdef.tlb
  1628. $lib /log /extract=STDIO        /output=STDIO.h         sys$library:vaxcdef.tlb
  1629. $lib /log /extract=STDLIB       /output=STDLIB.h        sys$library:vaxcdef.tlb
  1630. $lib /log /extract=STRING       /output=STRING.h        sys$library:vaxcdef.tlb
  1631. $lib /log /extract=STSDEF       /output=STSDEF.h        sys$library:vaxcdef.tlb
  1632. $lib /log /extract=SYIDEF       /output=SYIDEF.h        sys$library:vaxcdef.tlb
  1633. $lib /log /extract=TIME         /output=TIME.h          sys$library:vaxcdef.tlb
  1634. $lib /log /extract=TIMEB        /output=TIMEB.h         sys$library:vaxcdef.tlb
  1635. $lib /log /extract=TT2DEF       /output=TT2DEF.h        sys$library:vaxcdef.tlb
  1636. $lib /log /extract=TTDEF        /output=TTDEF.h         sys$library:vaxcdef.tlb
  1637. $lib /log /extract=TYPES        /output=TYPES.h         sys$library:vaxcdef.tlb
  1638. $lib /log /extract=UAIDEF       /output=UAIDEF.h        sys$library:vaxcdef.tlb
  1639. $!
  1640. $! The end
  1641. $!
  1642.  
  1643.    [ [54]Top ] [ [55]Contents ] [ [56]C-Kermit Home ] [ [57]C-Kermit 8.0
  1644.    Overview ] [ [58]Kermit Home ]
  1645.      _________________________________________________________________
  1646.  
  1647.    C-Kermit 8.0 VMS Installation Instructions / The Kermit Project /
  1648.    Columbia University / 17 March 2003
  1649.  
  1650. References
  1651.  
  1652.    1. http://www.columbia.edu/kermit/ckvins.html#contents
  1653.    2. http://www.columbia.edu/kermit/ckermit.html
  1654.    3. http://www.columbia.edu/kermit/index.html
  1655.    4. http://www.columbia.edu/kermit/ckvins.html
  1656.    5. http://www.columbia.edu/kermit/ckvins.html#x1
  1657.    6. http://www.columbia.edu/kermit/ckvins.html#x2
  1658.    7. http://www.columbia.edu/kermit/ckvins.html#x3
  1659.    8. http://www.columbia.edu/kermit/ckvins.html#x3.1
  1660.    9. http://www.columbia.edu/kermit/ckvins.html#x3.2
  1661.   10. http://www.columbia.edu/kermit/ckvins.html#x3.3
  1662.   11. http://www.columbia.edu/kermit/ckvins.html#x3.4
  1663.   12. http://www.columbia.edu/kermit/ckvins.html#x3.5
  1664.   13. http://www.columbia.edu/kermit/ckvins.html#x3.6
  1665.   14. http://www.columbia.edu/kermit/ckvins.html#x4
  1666.   15. http://www.columbia.edu/kermit/ckvins.html#x5
  1667.   16. http://www.columbia.edu/kermit/ckvins.html#x6
  1668.   17. http://www.columbia.edu/kermit/ckvins.html#x7
  1669.   18. http://www.columbia.edu/kermit/ckvins.html#x7.1
  1670.   19. http://www.columbia.edu/kermit/ckvins.html#x7.2
  1671.   20. http://www.columbia.edu/kermit/ckvins.html#x8
  1672.   21. http://www.columbia.edu/kermit/ckvins.html#x9
  1673.   22. http://www.columbia.edu/kermit/ckvins.html#x3
  1674.   23. http://www.columbia.edu/kermit/ckvins.html#x4
  1675.   24. http://www.columbia.edu/kermit/ckvins.html#x5
  1676.   25. http://www.columbia.edu/kermit/ckvins.html#x5
  1677.   26. http://www.columbia.edu/kermit/ckvins.html#contents
  1678.   27. http://www.columbia.edu/kermit/ckermit.html
  1679.   28. http://www.columbia.edu/kermit/index.html
  1680.   29. ftp://kermit.columbia.edu/kermit/b
  1681.   30. http://www.columbia.edu/kermit/ckermit.html
  1682.   31. http://www.columbia.edu/kermit/ckvins.html#contents
  1683.   32. http://www.columbia.edu/kermit/ckermit.html
  1684.   33. http://www.columbia.edu/kermit/index.html
  1685.   34. http://www.columbia.edu/kermit/ckvins.html#x5
  1686.   35. http://www.columbia.edu/kermit/ck60manual.html
  1687.   36. http://www.columbia.edu/kermit/ckvins.html#contents
  1688.   37. http://www.columbia.edu/kermit/ckermit.html
  1689.   38. http://www.columbia.edu/kermit/index.html
  1690.   39. http://www.columbia.edu/kermit/ckvins.html#contents
  1691.   40. http://www.columbia.edu/kermit/ckermit.html
  1692.   41. http://www.columbia.edu/kermit/index.html
  1693.   42. http://www.columbia.edu/kermit/ckvins.html#contents
  1694.   43. http://www.columbia.edu/kermit/ckermit.html
  1695.   44. http://www.columbia.edu/kermit/index.html
  1696.   45. http://www.columbia.edu/kermit/ckvins.html#contents
  1697.   46. http://www.columbia.edu/kermit/ckermit.html
  1698.   47. http://www.columbia.edu/kermit/index.html
  1699.   48. http://www.columbia.edu/kermit/ckvins.html#contents
  1700.   49. http://www.columbia.edu/kermit/ckermit.html
  1701.   50. http://www.columbia.edu/kermit/index.html
  1702.   51. http://www.columbia.edu/kermit/ckvins.html#contents
  1703.   52. http://www.columbia.edu/kermit/ckermit.html
  1704.   53. http://www.columbia.edu/kermit/index.html
  1705.   54. http://www.columbia.edu/kermit/ckvins.html#top
  1706.   55. http://www.columbia.edu/kermit/ckvins.html#contents
  1707.   56. http://www.columbia.edu/kermit/ckermit.html
  1708.   57. http://www.columbia.edu/kermit/ck80.html
  1709.   58. http://www.columbia.edu/kermit/index.html
  1710.