home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc190.zip / ckvker.bwr < prev    next >
Text File  |  1996-03-21  |  35KB  |  755 lines

  1. CKVKER.BWR          "Beware File" for C-Kermit Version 5A        -*- text -*-
  2.  
  3.             (Open)VMS VERSION FOR DEC VAX AND AXP
  4.  
  5. Applies to 5A(190)
  6. Last update: Wed Mar 29 18:58:22 1995
  7.  
  8. Authors: Frank da Cruz and Christine M. Gianone (Columbia University, NYC);
  9.          Terry Kennedy (Saint Peters College, Jersey City, NJ).
  10.  
  11.   Copyright (C) 1985, 1994, Trustees of Columbia University in the City of New
  12.   York.  The C-Kermit software may not be, in whole or in part, licensed or
  13.   sold for profit as a software product itself, nor may it be included in or
  14.   distributed with commercial products or otherwise distributed by commercial
  15.   concerns to their clients or customers without written permission of the
  16.   Office of Kermit Development and Distribution, Columbia University.  This
  17.   copyright notice must not be removed, altered, or obscured.
  18.  
  19. Report problems, suggestions, fixes, etc, to:
  20.  
  21.   Frank da Cruz
  22.   Columbia University
  23.   Academic Information Systems (AcIS)
  24.   612 West 115th Street
  25.   New York, NY  10025  USA
  26.  
  27.   Internet:         fdc@columbia.edu
  28.   Fax:              +1 212 662-6442
  29.  
  30. VMS C-Kermit installation instructions are in the file CKVKER.INS.  Please
  31. be sure you have read that file before concluding that C-Kermit isn't working
  32. right on VMS.
  33.  
  34. Note: "VMS" as used in this document refers to both VMS and OpenVMS on both
  35. VAX and AXP (Alpha) processors.  Most of the words in the previous sentence
  36. are trademarks (TM) of Digital Equipment Corporation.
  37.  
  38.  
  39. DOCUMENTATION
  40.  
  41. C-Kermit 5A is documented in the book "Using C-Kermit" by Frank da Cruz and
  42. Christine M. Gianone, Digital Press, Burlington, MA, USA, ISBN 1-55558-108-0.
  43. Price: US $39.95.  To order, call Columbia University, New York City,
  44. at +1 212 854-3703, or Digital Press / Butterworth-Heinemann at:
  45.  
  46.     +1 800 366-2665   (Woburn, Massachusetts office for USA & Canada)
  47.     +44 1865 314627   (Oxford, England distribution centre for UK & Europe)
  48.     +61 03 9245 7111  (Melbourne, Vic, office for Australia & NZ)
  49.     +65 356-1968      (Singapore office for Asia) 
  50.     +27 (31) 2683111  (Durban office for South Africa)
  51.  
  52. COMMAND PARSER
  53.  
  54. VMS-style command-line editing (arrow keys, etc) is not supported.  Kermit
  55. does not use the VMS F$PARSE facility -- it has its own command parser that
  56. lacks certain features of F$PARSE (arrow-key editing, etc) but has many other
  57. features that F$PARSE lacks: "?"-help, keyword and filename completion,
  58. filename menus, variables, macros, etc.  As of edit 190, C-Kermit does support
  59. command recall (via Ctrl-B and Ctrl-N, not via arrow keys).
  60.  
  61. If you write a DCL command file that starts Kermit with a command-file name
  62. as its first command-line argument, e.g.:
  63.  
  64.   $ kermit oofa.scr
  65.  
  66. and then SUBMIT this DCL command file as a batch job, be aware that the
  67. batch job is executed out of your login directory, so if the command file
  68. (OOFA.SCR in this case) is not in your login directory, you must either SET
  69. DEFAULT to the directory it is in, or else give a fully qualified filename:
  70.  
  71.   $ set default [mydir.mysubdir]
  72.   $ kermit oofa.scr
  73.  
  74. or:
  75.  
  76.   $ kermit [mydir.mysubdir]oofa.scr
  77.  
  78. Contrary to expectations of VMS users, the MSEND command does NOT use
  79. commas to separate file specifications.  E.g. say this:
  80.  
  81.   C-Kermit>msend ckc*.% cku*.% ckv*.%
  82.  
  83. not this:
  84.  
  85.   C-Kermit>msend ckc*.%, cku*.%, ckv*.%
  86.  
  87. CD (Change Directory) to a DECnet node does not work in VMS C-Kermit.
  88.  
  89. OPEN READ does not work if FILE TYPE is LABELED.  Use SET FILE TYPE TEXT
  90. before OPEN READ, then change the file type, if necessary, before file
  91. transfer operations.  (This bug will be fixed in the next release.)
  92.  
  93. The OPEN !READ process needs to be closed explicitly.  If it is not, then
  94. subsequent SEND commands will erroneously try to read from the !READ process.
  95.  
  96. OPEN !WRITE does not work in VMS C-Kermit.
  97.  
  98. VMS C-Kermit does NOT provide program status codes in the normal VMS manner.
  99. Rather, it returns the codes described on pp. 323-324 of "Using C-Kermit", by
  100. assigning them to the symbol CKERMIT_STATUS.  For example, if a RECEIVE
  101. operation failed:
  102.  
  103.   $ show symbol ckermit_status
  104.     CKERMIT_STATUS == "4"
  105.   $
  106.  
  107. Arguments supplied to the EXIT (or QUIT) commands take precedence:
  108.  
  109.   C-Kermit>exit 1234
  110.   $ show symbol ckermit_status
  111.     CKERMIT_STATUS == "1234"
  112.   $
  113.  
  114. If C-Kermit encounters no execution errors, and EXIT (QUIT) is given without
  115. an operand, then:
  116.  
  117.   C-Kermit>exit
  118.   $ show symbol ckermit_status
  119.     CKERMIT_STATUS == "0"
  120.   $
  121.  
  122. You can use the CKERMIT_STATUS symbol as in this DCL example:
  123.  
  124.   $ kermit -s oofa.txt
  125.   $ if ckermit_status .eq. 0 then goto ok
  126.  
  127.  
  128. RUNNING C-KERMIT IN DCL COMMAND PROCEDURES
  129.  
  130. It is often desirable to wrap C-Kermit in a DCL command procedure.  Such
  131. a procedure, for example OOFA.COM, can be run either directly on your job's
  132. controlling terminal by:
  133.  
  134.   $ @OOFA
  135.  
  136. or as a batch job via:
  137.  
  138.   $ SUBMIT OOFA
  139.  
  140. When you are writing a DCL command procedure that runs C-Kermit, you
  141. must make a choice:
  142.  
  143.  1. If you want to be able to include Kermit commands in the DCL procedure as
  144.     "image data" (i.e. lines that don't start with $), then you can NOT
  145.     include any Kermit commands that would require access to the real console
  146.     terminal's keyboard and screen, such as CONNECT.  That is, the person who
  147.     runs the DCL procedure can NOT interact directly with a remote computer.
  148.     This type of DCL command procedure can be run either on a terminal via @,
  149.     or as a batch job via SUBMIT.  If you include a CONNECT command in this
  150.     type of batch job, the CONNECT command will fail with the following
  151.     message: 
  152.  
  153.       Sorry, Kermit's CONNECT command can be used only on a real terminal.
  154.       If this is not a batch a job, then you must:
  155.  
  156.       $ DEFINE SYS$INPUT SYS$COMMAND
  157.       
  158.       in your DCL command procedure before starting Kermit.
  159.  
  160.  2. If you want the user to be able to interact directly with the remote
  161.     computer through Kermit's CONNECT command, then:
  162.  
  163.     (a) The DCL procedure can be run only with @, not with SUBMIT.  That is,
  164.         it cannot be a batch job; it must have access to the console terminal.
  165.  
  166.     (b) You must include the following DCL command in the DCL procedure 
  167.         immediately before starting Kermit:
  168.  
  169.         $ DEFINE SYS$INPUT SYS$COMMAND
  170.  
  171.         (/USER, /NOLOG, etc, switches may be used).
  172.  
  173.     (c) You can not include Kermit commands as "image data" in the DCL command
  174.         procedure.  Instead, you must create a separate Kermit command file,
  175.         and use command-line arguments to instruct Kermit to execute it; for
  176.         example:
  177.  
  178.         $ define /user/nolog sys$input sys$command
  179.         $! Execute oofa.scr instead of normal initialization file.
  180.         $ kermit -y oofa.scr
  181.  
  182.         or:
  183.  
  184.         $ define /user sys$input sys$command
  185.         $! Execute oofa.scr after executing normal initialization file.
  186.         $ kermit "-C" "take oofa.scr" 
  187.  
  188. Here is a sample DCL command procedure of the first type, which can be run
  189. either on the controlling terminal or as a batch procedure, and requires no
  190. interaction from the user.  Lines beginning with dollar sign ($) are DCL
  191. commands, other lines are fed to the application program (Kermit).
  192.  
  193.   1. $ write sys$output "Hello from DCL"
  194.   2. $ set default [myuserid.mysubdirectory]
  195.   3. $ kermit
  196.   4. set prompt {}
  197.   5. echo Hello from C-Kermit
  198.   6. @ write sys$output "Hello from DCL from inside C-Kermit"
  199.   7. take oofa.scr
  200.   8. exit
  201.   9. $ write sys$output "All done."
  202.  
  203. (The numbers are not part of the file.)  Lines 1-3 are DCL commands.  Line 3
  204. starts C-Kermit.  Lines 4-8 are C-Kermit commands.  Line 4 shows how to set
  205. C-Kermit's prompt to nothing to reduce clutter in the batch log, should you
  206. desire.  Line 5 shows how to enter messages in the batch log.  Line 6 shows
  207. how to run DCL commands from within Kermit (you can use @ (at-sign), !
  208. (exclamation mark), or the word RUN -- all of them are synonyms, followed by
  209. a DCL command).  Line 8 exits from C-Kermit back to DCL.
  210.  
  211. In line 7, C-Kermit is told to execute a script program from another file,
  212. OOFA.SCR.  Script programs to be run during the batch session are best kept in
  213. separate C-Kermit command files because certain commands, notably GOTO, FOR,
  214. WHILE, and XIF, do not work when entered in the interactive command stream.
  215. Here is a sample command file:
  216.  
  217. set take echo on        ; Make Kermit commands appear in the batch log
  218. set take error on       ; This stops execution automatically upon error
  219. set input echo on       ; This makes INPUT material appear in the batch log
  220. set host blah           ; Make a network connection to host "blah"
  221. set file display serial ; Use SERIAL or NONE for the batch log, not FULL or CRT
  222. input 5 login:          ; Wait for a login prompt
  223. output myuserid\13      ; Send my user ID and a carriage return
  224. input 5 Password:       ; Wait for password prompt
  225. output \$(P1)\13        ; Send my password (see below) and a carriage return
  226. input 20 \13\10$\32     ; Wait for system prompt
  227. output kermit\13        ; Start Kermit on host "blah"
  228. input 5 Kermit>         ; Wait for Kermit> prompt
  229. output server\13        ; Put remote Kermit in server mode
  230. in 5 READY TO SERVE...  ; Wait for READY message
  231. get oofa.txt            ; Get a file from the remote server
  232. bye                     ; Terminate the remote session
  233. end                     ; Return to local C-Kermit prompt
  234.  
  235. VERY IMPORTANT: Batched login scripts are inherently insecure because the
  236. passwords are visible in plaintext, either in a file or else in the batch
  237. queue entry.  VMS presently offers no secure way (known to the writers of this
  238. document) to enter a password into a batch job.
  239.  
  240. Two very insecure methods can be used:
  241.  
  242. 1. Put the password in the Kermit script file.  The risk here is that anybody
  243.    who gains access to the file, or to the system backup tapes, can learn your
  244.    password on the remote system.
  245.  
  246. 2. Give the password as a parameter to the SUBMIT command when starting the
  247.    batch job, for example:
  248.  
  249.    $ SUBMIT OOFA /NOTIFY /PARAM=("mypassword")
  250.  
  251.    (This sets the DCL parameter P1 to your password on the remote host (for
  252.    further information, give the DCL command "help submit /param").  Quotation
  253.    marks are necessary to preserve lowercase letters (important when logging
  254.    in to UNIX hosts).  DCL parameters may be referenced in Kermit commands as
  255.    \$(P1), \$(P2), etc.)  The disadvantage here is that the VMS SHOW
  256.    ENTRY/FULL command displays the parameters from your SUBMIT command, making
  257.    the password visible to (at least) the system operator, and (most likely)
  258.    also to other users, such as members of your group (batch queues are, by
  259.    default, read-accessible by all members of their group).
  260.    
  261. Both methods can be made somewhat safer by adjusting the protections on the
  262. files and/or batch queues that will contain sensitive information, but there
  263. can be no guarantees.  Therefore: EXERCISE EXTREME CAUTION with passwords in
  264. login scripts and batch jobs.
  265.  
  266. And please note further that passwords passed in plain text -- as they still
  267. must be in most cases, particularly those involving dialup access -- are
  268. subject to discovery by various other means, including, but not limited to,
  269. wire tapping.
  270.  
  271. RUNNING C-KERMIT FROM ALL-IN-1
  272.  
  273.   Dr. David Kelly, Australian Environmental Protection Authority
  274.   kellyd@airmoon.epa.nsw.gov.au
  275.  
  276. ALL-IN-1 uses mailboxes (MBX) devices, rather than terminals.  TT: is
  277. reassigned from the user's controlling terminal to a mailbox device.  C-Kermit
  278. uses TT: as its default line device and so doesn't work straight off under
  279. ALL-IN-1.  SYS$INPUT is reassigned to something else again.  SYS$OUTPUT
  280. remains assigned to the user's original terminal line so it can be used to
  281. specify the line device for C-Kermit when called from within ALL-IN-1.  Below
  282. is a script which can be run from ALL-IN-1 which calls C-Kermit to receive a
  283. file.  SYS$OUTPUT is temporarily redefined to stop some guff showing on the
  284. screen.
  285.  
  286. $! RECEIVE_FROM_PC.COM
  287. $!
  288. $! Transfer file from PC into ALL-IN-1 using KERMIT
  289. $! Invoked by TRANSFER_PC_TO_A1.SCP, which is in turn called by the RF
  290. $! option on DT menu.
  291. $!
  292. $ set noon
  293. $ on control_y then goto exit
  294. $
  295. $       tt1=f$trnlnm("sys$output")
  296. $       kermit :== $epa__system:Ckermit
  297. $       define/user sys$input sys$command
  298. $       define sys$output sys$login:del.txt
  299. $       kermit -l 'tt1' -b 9600 -r -a a1file.a1f -q -i
  300. $       deassign sys$output
  301. $       del sys$login:del.txt;
  302. $exit:
  303. $ exit
  304.  
  305. Similarly a file can be sent :
  306.  
  307. $! SEND_TO_PC.COM
  308. $! Transfer document from ALL-IN-1 to the PC
  309. $! invoked by TRANSFER_A1_TO_PC.SCP which is, in turn, called by the
  310. $! SF option on the DT menu
  311. $!
  312. $ set noon
  313. $ on control_y then goto exit
  314. $!
  315. $       write oamailbox "OA GET #CURDOC_FILENAM"
  316. $       @dclmailbox:
  317. $       a1file = "''result'"
  318. $       vmsfile = "A1FILE.A1F"
  319. $       copy/nolog/noconfirm 'a1file' 'vmsfile'
  320. $       kermit :== $epa__system:Ckermit
  321. $       define/user sys$input sys$command
  322. $       tt1=f$trnlnm("sys$output")
  323. $       define sys$output sys$login:del.txt
  324. $       kermit -l 'tt1' -b 9600 -s A1FILE.A1F -q -i
  325. $       deassign sys$output
  326. $       del sys$login:del.txt;
  327. $       if $severity .le. 1 then goto exit
  328. $! if an error occurs, tell ALL-IN-1
  329. $       write oamailbox "OA GET $PC_KERMIT_STATUS=0"
  330. $       @dclmailbox:
  331. $exit:
  332. $ deletex/nolog a1file.a1f;*
  333. $ exit
  334.  
  335. EXTERNAL PROTOCOLS
  336.  
  337. You can use the ZMODEM SZ and RZ commands as "external protocols" over a
  338. connection you have established with C-Kermit, to a host or service that
  339. does not support Kermit protocol.  Start the file transfer on the remote
  340. end, escape back to C-Kermit, give the SPAWN command, and then (for example):
  341.  
  342.   $ define tt xxx:
  343.   $ rz
  344.  
  345. where xxx is the designation of the terminal device (TT or LTA) that you have
  346. dialed out on.  When the transfer is complete, LOGOUT from the SPAWN'd
  347. subprocess and you'll be back at the C-Kermit prompt.
  348.  
  349. GENERAL FAILURES
  350.  
  351. ...can occur for many reasons beyond Kermit's control, many of them related to
  352. VMS system parameters or limits on the user or process: disk quotas, user
  353. pagefile quotas (AUTHORIZE parameter PGFLQUO), system pagefile space filling
  354. up, etc.  See CKVINS.DOC (installation instructions) for details.
  355.  
  356. To increase a user's pagefile quota, tell AUTHORIZE to MODIFY
  357. username/PGFLQUO=number.  The system itself might be running out of pagefile
  358. space, which would cause the system to grind to a halt and eventually crash.
  359. You can check the system pagefiles with SHOW MEMORY/FILE: add up the "Free"
  360. numbers for the [*]*PAGEFILE.SYS files and see if the total is big enough
  361. (there should normally be at least 100K free pages on an active system).  If
  362. not, the system manager would use the procedure @SYS$UPDATE:SWAPFILES to
  363. resize the files.
  364.  
  365. VMS C-Kermit can hang or crash with an "access violation" under certain
  366. conditions when trying to hang up a modem-controlled device that is already
  367. hung up; investigation shows that the hang or crash happens in VMS kernel
  368. space, not in Kermit.
  369.  
  370. "Zombie" process can be left behind under certain conditions when a VMS
  371. Kermit server has been sent a BYE command, particularly over a TCP/IP
  372. connection (connection disappears before VMS has a chance to print its
  373. "logged out" message, and now there is nothing to print it on).
  374.  
  375. One user reported "massive failures" when transferring files with VMS C-Kermit
  376. through a particular kind of terminal server.  She had followed all the
  377. directions in the manual, the CKVINS.DOC file, and the CKVKER.BWR files (as it
  378. was before this item was added).  The terminal server uses TELNET protocol to
  379. an DECstation 3000 Model 600 running VMS 6.1 and TGV MultiNet 3.3, using an
  380. Equinox ELG48 terminal server.  Later, she reported: "It turned out that
  381. upgrading the software on our terminal server has fixed the problem.  It's so
  382. odd that the problem only occured after we upgraded from VMS V5.5-2 to V6.1,
  383. since the terminal server worked fine before the upgrade.  It's also weird
  384. that this terminal server has always worked fine for our Suns, also.  Here's
  385. the details of the terminal server if you want to keep these details on file:
  386. Equinox PBX 20 with ELG 48 board.  The ELG 48 rev was 2.30.  After upgrading
  387. it to V2.33, everything works fine."
  388.  
  389. FILE OPERATIONS
  390.  
  391. As of edit 190, VMS C-Kermit supports append operations: the various logs
  392. (packet, debug, transaction, etc) can be opened in append mode by including
  393. the APPEND keyword after the filename, e.g.:
  394.  
  395.   LOG TRANSACTIONS TRANSACT.LOG APPEND
  396.  
  397. An arbitrary file can be opened for output in append mode:
  398.  
  399.   OPEN APPEND OOFA.TXT
  400.  
  401. and the SET FILE COLLISION APPEND option now works during file transfer.
  402.  
  403. When using append operations:
  404.  
  405.  . Be careful not to append files of different types together, such as a text
  406.    file to an indexed file, or a fixed-record binary file to a text file, etc.
  407.    The result will generally be unusable.
  408.  
  409.  . SET FILE COLLISION APPEND does not work when the FILE TYPE is LABELED.
  410.    This is deliberate: labeled transfers are designed to give you an exact
  411.    copy of the file, including attributes.
  412.  
  413. There is no facility in C-Kermit to distinguish between "overwriting" and
  414. "versioning".  SET FILE COLLISION OVERWRITE always creates a new version on
  415. VMS.
  416.  
  417. BUG: As of this writing, APPEND operations do not use the RMS "first free
  418. byte", and so start on a new block boundary.
  419.  
  420. FILE TRANSFER
  421.  
  422. File transfer modes (TEXT vs BINARY) are set automatically for each file when
  423. sending.  The SET FILE TYPE BINARY and SET FILE TYPE TEXT commands are ignored
  424. when sending files.  To force binary-mode transmission, use SET FILE TYPE
  425. IMAGE.  See the VMS appendix of "Using C-Kermit".
  426.  
  427. When sending binary files that have an odd record length, please note that
  428. these files are actually stored with an even record length on disk.  For
  429. example, suppose DIR/FULL X.VDM says "fixed-length records, record length 17".
  430. On disk, the file really has 18-byte records; each 17-byte record is padded
  431. with a NUL (0) byte to make its length even; this is revealed by DUMP.
  432. C-Kermit sends the raw records, INCLUDING THE PADDING.  Thus, if you send such
  433. a file to (say) DOS or UNIX for actual use, your DOS or UNIX application must
  434. be coded to account for this -- if the record length is odd, add one to it.
  435. If you send the file back to VMS, just tell VMS C-Kermit to SET FILE RECORD
  436. to the original odd length, and the resulting file will be identical to the
  437. original one.
  438.  
  439. Incoming files are rejected if the available space on the disk device is less
  440. than the size of the file.  However, the user's disk quota is not checked.
  441. Quota checking could erroneously report that a user couldn't store a file for
  442. a number of reasons: for example, the user has the EXQUOTA privilege, C-Kermit
  443. is installed with EXQUOTA privilege (not recommended!), overdraft, etc.
  444. Because of the large potential for denying a transfer that would fit, the file
  445. is accepted regardless of the disk quota.  This is consistent with the way
  446. other VMS utilities work.
  447.  
  448. The file size shown in the file transfer display when sending a file might
  449. be incorrect under certain conditions (but the file is still transferred
  450. correctly).
  451.  
  452. Incoming files, if accepted, are always stored as a new file with the next
  453. highest version number, even when FILE COLLISION is set to OVERWRITE or
  454. or RENAME.
  455.  
  456. When you send a BYE command to a VMS C-Kermit server, it does not guarantee
  457. that the VMS job will be logged out.  If C-Kermit was SPAWN'd from another
  458. process, only C-Kermit itself disappears in this case.  Even if the whole VMS
  459. session ends, if the user came in through a LAT terminal server, they will be
  460. back at the "Local>" prompt and the phone line won't be disconnected.
  461.  
  462. Transfer of VFC (Variable with Fixed Control) files, such as those created
  463. by DCL, is problematic, since the meaning of the control bytes is defined by
  464. the application.
  465.  
  466. VMS MAIL messages: If you want to download mail messages to a PC (or other
  467. non-VMS system), select the message of interest using the SELECT and DIRECTORY
  468. commands within VMS MAIL, then EXTRACT/ALL to extract all the selected
  469. messages to a normal text file, then use Kermit to SEND this file.  Don't even
  470. think about trying to transfer your mail file as-is to a non-VMS system; it is
  471. a complicated indexed file, possibly containing pointers to other files, etc.
  472.  
  473. ZIP files: If you have trouble transferring ZIP files into or out of VMS
  474. using BINARY mode, use IMAGE mode instead (SET FILE TYPE IMAGE).  The same
  475. applies to binary files created by VMS UNZIP.
  476.  
  477. When transferring files in LABELED mode, the file transfer display will show
  478. the name the file was sent as, not the "true" name within the labeled file.
  479. Also, note that a transfer may fail with an obscure error (can't create output
  480. file) if there is something incorrect with the label information (for example,
  481. if you specified that the file should be restored to the original directory
  482. and you don't have privilege to write to that directory on this system).
  483.  
  484. DEC PATHWORKS file services normally create files in stream mode,  but
  485. this can be overridden when the file service is created:
  486.  
  487.   $ ADMIN/PCSA
  488.   PCSA> SET FILE_SERVER SERVICE service-name/ATTRIBUTES=SEQUENTIAL_FIXED
  489.  
  490. The normal stream files will be treated as TEXT by Kermit.  To transfer
  491. PATHWORKS files that are really binary, such as executables, use IMAGE mode.
  492.  
  493. Reportedly, when VMS C-Kermit is in local mode and transferring a file (file
  494. transfer display is showing) over a MultiNet TCP/IP connection and a broadcast
  495. from a completing batch job (SUBMIT/NOTIFY) arrives, it crashes C-Kermit with
  496. %SYSTEM-F-ACCVIO, access violation.  The stack dump shows this occurs in the
  497. netinc() routine while reading a packet (rpack).
  498.  
  499. Reportedly, when transferring files TO a VMS system over a LAT connection (for
  500. example, from a PC equipped with PATHWORKS and MS-DOS Kermit), packet sizes
  501. greater than 255 (some reports say 70!) cannot be used, irrespective of the
  502. VMS SYSGEN parameters regarding MAXBUF, etc.  The problem seems to lay in the
  503. LAT protocol itself, or the particular implementation of it, whereby
  504. applications are not informed of -- and cannot find out -- limits on
  505. transmission.  (And yet, others say they have no problems with file transfers
  506. over LAT connections, even with packet sizes greater than 1000.)
  507.  
  508. SERIAL AND LAT COMMUNICATIONS
  509.  
  510. There is no way to select a serial communications speed higher than 38400 bps.
  511. In many cases, speeds above 19200 -- or even 9600, depending on the actual
  512. serial device -- might not be supported.  Furthermore, hardware flow control
  513. is not supported (see below).  These are limitations of VMS, not of Kermit,
  514. and they make it very difficult to use VMS with high-speed data-compressing
  515. modems.
  516.  
  517. If you CONNECT to a modem or other device, and see a neverending stream of
  518. messages, the terminal device probably has the /LOCAL_ECHO characteristic.
  519. As of edit 189, C-Kermit attempts to turn off this characteristic
  520. automatically as part of the SET LINE procedure.
  521.  
  522. The SET CARRIER command is not supported in the VMS version of C-Kermit.
  523.  
  524. Certain operations driven by RS-232 modem signals do not work on VAXstations
  525. or other DEC platforms whose serial interfaces use MMP connectors (DEC version
  526. of RJ45 telephone jack with with offset tab).  These connectors convey only
  527. the DSR and DTR modem signals, but not carrier (CD), RTS, CTS, or RI.
  528.  
  529. When used on a serial communication device, the HANGUP command (as well as
  530. the CONNECT-mode escape command, H, and the HANGUP done by the DIAL command
  531. when DIAL HANGUP is ON) takes at least 3 seconds.  This is a FEATURE of VMS.
  532.  
  533. If a DIAL or SET SPEED command gives the error:
  534.  
  535.   ?ttbin: sys$qiow: %SYSTEM-F-NOLOG_IO, operation requires LOG_IO privilege
  536.  
  537. then either the user must be given LOG_IO privilege or else the device must be
  538. given the SET_SPEED attribute.  However, note that under certain versions of
  539. VMS the TT2$M_SETSPEED bit in TTY_DEFCHAR2 is not properly propogated to LAT
  540. devices.  It is best to issue the command SET TERM/PERM/SET_SPEED LTA31: at
  541. startup when the LTA31 device is initially created (which, of course, would be
  542. done by a sufficiently privileged account).
  543.  
  544. During terminal connection (SET LINE) and file transfer over a serial device,
  545. buffer-overrun or BYTLM-quota-exceeded messages might appear.  It is essential
  546. that any VMS system that needs to use Kermit or any other program to transfer
  547. files over serial devices, especially when long packets or sliding windows are
  548. to be used, be SYSGEN'd with large typehead buffers, and that user accounts
  549. be given large BYTLM quotas.  See CKVINS.DOC.
  550.  
  551.   Note that LATmaster software (optional as of VMS V5.4-1, mandatory as of 
  552.   VMS V5.5) requires a minimum Alt-Typeahead buffer of 2064 bytes.  Thus, you
  553.   may already have increased the size.  Kermit needs packet-size times
  554.   window-size plus a small amount of overhead.
  555.  
  556. To get around problems on systems where users have small BYTLM quotas, the
  557. txbufr() routine in CKVTIO.C has been limited to reading 512-byte chunks at
  558. a time from the communication device.  This does not appear to have an adverse
  559. affect on performance, but time will tell.  If it does, a quick fix is to
  560. recompile CKVTIO.C, defining CKV_IO_SIZE to be something bigger, e.g.
  561.  
  562.   /define=("CKV_IO_SIZE=8192")
  563.  
  564. or whatever.  A better fix might be to have txbufr() check the user's
  565. remaining BYTLM quota before doing each read.  But the overhead in doing this
  566. might cancel out the advantage of doing it.
  567.  
  568. It is possible to SET LINE to an LTA (LAT) device, but correct operation
  569. is reportedly dependent on the version of DECserver code and the VMS
  570. version, and which patches have been applied.  Correct operation has been
  571. verified for DECserver 200 software V3.1-37 and VMS V5.4-3, unpatched.
  572.  
  573. If you use C-Kermit to SET LINE to an LTA device and receive a hangup message
  574. immediately:
  575.  
  576.   contti: ttiosb.status: %SYSTEM-F-HANGUP, data set hang-up
  577.  
  578. then:
  579.  
  580.  . Make sure you've created an LTA port on your VMS system which is
  581.    mapped to the DECserver port that the modem is connected to.
  582.  
  583.  . Can you use the VMS SET HOST/DTE command to connect to that line? If you
  584.    get the same error (which you should) there's a configuration problem in
  585.    the DECserver setup for that port.
  586.  
  587.  . Are you trying to use that modem for both dial-in and dial-out
  588.    configurations?  Try configuring different ports for dial-in and dial-out.
  589.  
  590.  . In order for VMS to connect to the dial-out modem, it needs to see the
  591.    carrier detect signal asserted.  If that signal isn't asserted, the server
  592.    will return a "hangup" error on the first character sent to the port.
  593.    C-Kermit's SET CARRIER command has no effect in VMS.
  594.  
  595.  . Additionally, some modems want to see various settings on RTS/CTS and
  596.    DSR/DTR before they will accept input.  If you have a breakout box and
  597.    someone who is skilled at using it, you can usually resolve these problems.
  598.  
  599. C-Kermit puts LAT terminal servers into PASSTHRU mode, which disables their
  600. forward/backward session switch characters.
  601.  
  602. Reportedly, if you have CONNECTed out through a LAT device, the CONNECT-mode
  603. escape command to hang up (<esc-char>H) does not work.  Reason: unknown.
  604. Cure: unknown (The LAT programming interface is very poorly documented).
  605. Workaround: SET LINE <cr> to close the SET LINE device.
  606.  
  607. Reportedly, although Kermit can SET LINE to a LAT device and work OK, the
  608. same can't be said for a "LAT group" (whatever that is).  The user who
  609. submitted this report said that this problem could be worked around by telling
  610. VMS to SET TERM <blah> /NOALTYPEAHD before starting Kermit (take this one
  611. with a grain of salt).
  612.  
  613. Reportedly, to use C-Kermit with a LAT device under LATmaster, the associated
  614. terminal device must be set /NOREADSYNC.
  615.  
  616. FLOW CONTROL
  617.  
  618. The SET FLOW RTS/CTS command is not supported in the VMS version of C-Kermit.
  619. VMS does not support RTS/CTS (hardware) flow control.
  620.  
  621. In VMS, flow control is governed by two SET TERMINAL parameters: /TTSYNC and
  622. /HOSTSYNC.  TTSYNC lets the terminal control the flow of data from the host
  623. and HOSTSYNC lets the host control the flow of data from the terminal.  In
  624. general, these are implemented as Xon/Xoff flow control in each direction, but
  625. on LAT and TCP/IP connections, they can also affect the internal networking
  626. protocol.
  627.  
  628. When C-Kermit is in "remote mode", i.e. it is on the far end of a connection,
  629. and is not establishing a connection itself, it uses your current VMS SET
  630. TERMINAL parameters for flow control during command processing.  During packet
  631. mode, however, it obeys your C-Kermit SET FLOW-CONTROL setting, which, to
  632. ensure the chances of lost data are minimal, is XON/XOFF by default; XON/XOFF
  633. corresponds to VMS SET TERM /TTSYNC /HOSTSYNC.
  634.  
  635. When C-Kermit is in "local mode", i.e. it is being used to establish a
  636. connection with SET LINE or TELNET, there are two components to your
  637. connection: the part between your terminal and C-Kermit (call this "Part A"),
  638. and the part between C-Kermit and the remote computer or service that you have
  639. connected to ("Part B").  At all times, the flow control used on Part A is
  640. governed by your VMS SET TERMINAL parameters, and the flow control used on
  641. Part B is always governed by C-Kermit's SET FLOW-CONTROL command.
  642.  
  643. If you are using C-Kermit in local mode to access a remote host to use the
  644. EMACS editor, you might find that the Ctrl-S (Search) and Ctrl-Q (Quote)
  645. commands don't work -- your screen and keyboard "freeze" when you type Ctrl-S,
  646. and Ctrl-Q seems to be ignored.  This means that your VMS command terminal has
  647. the /TTSYNC characteristic; Ctrl-S and Ctrl-Q are being used for flow control
  648. between your terminal and the VMS system -- the remote system and EMACS never
  649. see them.  There are two ways around this problem:
  650.  
  651.  1. Tell VMS to SET TERM /NOTTSYNC before starting C-Kermit.  In this case,
  652.     you are in danger of losing data on the connection, particularly if your
  653.     connection to VMS is through a LAT device.
  654.  
  655.  2. Leave the /TTSYNC charactistic in force and use the long forms for the
  656.     EMACS commands: ESC-X Search-Forward and ESC-X Quoted-Insert.  Or assign
  657.     these functions to other EMACS keys in your EMACS initialization file.
  658.  
  659. NETWORK COMMUNICATIONS
  660.  
  661. There is (as yet) no support for initiating connections over DECnet, nor for
  662. VAX/PSI.  Certain types of TCP/IP are supported (including DEC TCP/IP (UCX),
  663. CMU-OpenVMS/IP ("CMU/Tek"), TGV MultiNet, Wollongong WIN/TCP or PathWay,
  664. Process Software TCPware); other types: not yet (e.g. Fusion).
  665.  
  666. The TCPware version works correctly with TCPware versions 4.1-2 or later;
  667. earlier versions, such 3.1-3, have a bug that can result in failure of
  668. C-Kermit to make network connections, with a message like:
  669.  
  670.  ?contti: network sys$qio: %SYSTEM-F-IVCHAN, invalid I/O channel
  671.  
  672. Process Software recommends upgrading to the current TCPware release.
  673.  
  674. If you enter the VAX from elsewhere through a TELNET connection, and the VAX
  675. is running CMU-OpenVMS/IP, Fusion, or DEC TCP/IP (UCX), you might notice that
  676. file transfers into the VAX fail almost immediately.  If this happens, it is
  677. most likely the result of small VMS typeahead buffers.  See CKVINS.DOC for how
  678. to increase typeahead buffer sizes, or work around the problem by telling VMS
  679. C-Kermit to ask for smaller packets, for example:
  680.  
  681.   C-Kermit>set receive packet-length 65  ; (Use the longest length that works)
  682.  
  683. The UCX version of Kermit works on MultiNet systems too, because MultiNet
  684. automatically goes into "UCX compatibility mode" when a UCX application is
  685. run.
  686.  
  687. You can also use the non-network version of C-Kermit on a MultiNet system to
  688. make TCP/IP connections as follows:
  689.  
  690. $ telnet/create foo.bar.baz.com
  691. Trying... 
  692. TELNET session now connected to _NTY5:
  693. %DCL-I-ALLOC, _$4$NTY5: allocated
  694.  
  695. $ kermit
  696. C-Kermit 5A(189), 30 June 93, OpenVMS AXP
  697. Type ? or HELP for help
  698. C-Kermit>set line telnet_nty
  699. C-Kermit>connect
  700. etc...
  701.  
  702. When using the CMU-OpenVMS/IP TCP/IP transport, assign the system logical
  703. INET$SERVICE_TELNET_TCP to the telnet port as follows:
  704.  
  705.     $ DEFINE /SYSTEM INET$SERVICE_TELNET_TCP 23
  706.  
  707. This is only required if the -j option is used without specifying a port to use
  708. (e.g. -j host).  If this logical assignment is not made using `-j host' option
  709. will fail with the error:
  710.  
  711.   %CKERMIT-E-FATAL, can't open host connection
  712.  
  713. The default port, hardcoded in C-Kermit, is 23.  Another port may be specified
  714. using the -j option as `-j host:port'.
  715.  
  716. SET INPUT ECHO OFF seems to have no effect when given to VMS C-Kermit and
  717. the INPUT command is reading from the console terminal.
  718.  
  719. PERFORMANCE
  720.  
  721. If you are experiencing very poor performance on serial connections, use the
  722. VMS command SHOW TERMINAL to make sure that the terminal device has the DMA
  723. (Direct Memory Access) characteristic.  If it does not, try setting it (or
  724. get your system manager to, in case privilege is required):
  725.  
  726.   $ SET TERMINAL device_name /PERMANENT/DMA
  727.  
  728. On some slower VAX models with built-in serial ports, such as the VAXstation
  729. 3100 or MicroVAX-II, receiving files on serial ports at (say) 19200 bps
  730. results in high CPU utilization, slowing down the system for other processes.
  731. This is partially because VMS C-Kermit's serial i/o routines need to be
  732. restructured along the same lines as the network ones (nonblocking buffered
  733. reads), but also because on certain systems, such as the VS3100, serial
  734. ports interrupt the CPU every time a character arrives.  Most VMS systems
  735. nowadays, however, support either DMA for serial port i/o, or have their
  736. users coming in through terminal servers.
  737.  
  738. A similar problem is observed when C-Kermit is receiving files on a VAX/PSI
  739. (X.25) system, attached to a certain X.25 network (Autonet), but not others,
  740. attached via a DSW42 interface: huge numbers of I/O requests drive the load
  741. way up.  Reportedly, "this is due to a VAX PSI feature called Synchronized
  742. Echo Protocol (SEP), which is supposed to coordinate echo by the X.25 PAD,
  743. e.g. when typing ahead.  When disabling this feature, the file transfers
  744. proceed fast and efficient.  This feature is a network-specific X.25
  745. "facility" negotiated at call-setup time, not an X.3 parameter (standard or
  746. otherwise) -- Facility Number 66 (decimal, or 42 hex).  It could not even be
  747. set or viewed by the user or the VAX administrator.  It had to be disabled by
  748. the network provider.  I think that most X.25 networks do not even implement
  749. this feature and thus is it not common issue.  In any case, in our situation,
  750. I asked the X.25 network provider to disable this feature, and now C-Kermit is
  751. performing efficiently, but now, of course, echoing (e.g. of material that is
  752. typed ahead) is no longer synchronized."
  753.  
  754. (End of CKVKER.BWR)
  755.