home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / c-kermit / ckvins.txt < prev    next >
Text File  |  2011-07-15  |  75KB  |  1,731 lines

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