Using MS-Kermit

General Information

This document explains how to connect to the campus data network, from which you have access to the campus computing and information services, using an IBM PC or compatible (with at least 256 K of memory) and MS-Kermit version 3.01 or later. This document also explains how to transfer files between your PC and ITS's Unix mainframes. Before you begin, you should also have a Hayes-compatible modem or hard-wired connection to the campus network.

MS-Kermit Help

You can get a list of MS-Kermit commands by typing a question mark at the MS-Kermit prompt (MSKermit>). Press the spacebar to return to your session.

Setting up MS-Kermit

MS-Kermit needs two files in order to run: the KERMIT.EXE file, which contains the actual program, and the MSKERMIT. INI file, which contains communications parameters and key functions for terminal emulation. Since key functions are dependent upon the system you are using.

Entering Commands

Use your text editor or word processing package to enter the following commands in the 7171KEYS.INI and VTKEYS.INI files. The commands may already be in the file, in which case all you need to do is edit the commands so they have the correct parameters:

set speed    |  xxx    |  replace xxx with the highest baud rate
             |         |  (300, 1200,2400, 4800, or 9600) compatible 
             |         |   with your modem
set terminal |  vt102  |  sets the terminal emulation
set port     |   1     |  this command refers to the comm port; you 
             |         |  may need to modify it for the right port 
             |         |  on your machine
set local-echo  off
set parity   |  none

How to connect

Follow these steps to connect to the campus network.

  1. Start MS-Kermit by typing kermit and pressing <ENTER>.
  2. You will get the MS-Kermit prompt: MSKermit>
  3. Type connect and press <ENTER>. If you are hard-wired to the campus network, go to step 5.
  4. To dial the network, type ATDT (if you are using a push-button or tone phone) or ATDP (if you are using a rotary or "pulse" phone) followed by the number 2393415. You must use uppercase letters when you type ATDT or ATDP. After you've typed the number and pressed <ENTER>you should hear a dial tone and then the number being dialed. When you receive a connect message on your screen, the campus network equipment has answered the phone. If you get a busy message, try connecting later.
  5. Press <ENTER>after you get the connect message. You may need to press <ENTER>a couple of times until the campus network menu comes to your screen.
  6. To set the return-to-menu character, when you first connect to the campus network, type 17 (to select item 17, Set return-to-menu character) press <ENTER>, then type your choice for the "return-to-menu" character. <Ctrl-w> (hold down the ctrl key and press w) is a safe option. Once defined, for the remainder of your session, pressing the defined key sequence will return you to the network menu.
  7. (Note: If you return to the network menu from any active session, you will not be able to return to that session unless you use the Command Line (ExpertsOnly) option. You can, however, start new sessions.)
  8. Type the menu item number for the service you want and press <ENTER>. You should then get the welcome screen or message of that service.

Ending a Session

Once you've logged off the service you were using, quit your microcomputer communications package and/or hang up your phone (if you are using a modem.)

End your MS-Kermit session by pressing <Alt-x>, which will give you the MSKermit> prompt. Type quit at the prompt. Note: If at any time you need to switch from the remote session to MS-Kermit, press <Alt-x> . To return to the remote session, type c at the MS-Kermit prompt.

File Transfer: General Introduction

To transfer files between your PC and a Unix mainframe (fog), you will use the Kermit transfer protocol. Note: The Kermit protocol is not the same as the MS-Kermit or MacKermit communications packages. Kermit transfers your text or binary files in "packets" containing various kinds of information; Kermit will resend the file until it has transferred cleanly or the transfer fails.

Uploading and Downloading

For the purposes of file transfers with the ITS computer systems, upload means to transfer a file from your microcomputer to a mainframe computer ; and download means to transfer a file from the mainframe to your microcomputer. It is easy to get confused about which computer you need to give which command since there are two separate computers involved in a file transfer. Before you issue a send or receive command, think about to which computer you're giving the command and if you want it to send or receive the file.

Formatting

If you are uploading a microcomputer file to a mainframe, be sure to remove all formatting (such as bold or italicized texts, headers, footers) and save the file as text only or in ASCII format.

Starting Kermit for File Transfer

You always begin a file transfer from the mainframe. At the mainframe system prompt, enter kermit. The mainframe system will respond with a prompt similar to the following one:

   C-Kermit, 4D(060) 18 Apr 86, 4.2 BSD
   Type ? for help
   C-Kermit>

Once you have the Kermit prompt you can begin the file transfer.

Binary files

If you are transferring a binary file, you must set the file type under both MS-Kermit and fog Kermit. If you are not sending a binary file, go to Transferring Your Files below.

Transferring Your Files

  1. At the mainframe Kermit prompt, type receive newfilename where newfilename is the name under which you want to save the file you are transferring to mainframe (be sure to follow Unix naming conventions) and press <ENTER>. The mainframe will not respond with a prompt. Go to the next step.
  2. Press <Alt-x> to return to MS-Kermit .
  3. At the MS-Kermit prompt, type send filename where filename is the name of the file that you want to send to Unix (if the file is not on the same drive or in the same directory as the MS-Kermit program, you need to specify the drive and/or directory, such as send a:\files\file.doc).
  4. The transfer window will then come to your screen. This window lets you follow how the transfer is going. When the transfer is complete, the MS-Kermit prompt returns to your screen.
  5. Type c at the MS-Kermit prompt to return to your mainframe session.
  6. You can now transfer more files, or quit the mainframe Kermit by typing quit at the mainframe Kermit prompt.

Steps for downloading

  1. At the mainframe Kermit prompt, type send filename where filename is the name of the file you want to transfer to your PC. The mainframe will not respond with a prompt. Go to the next step.
  2. Press <Alt-x> to return to MS-Kermit .
  3. At the MS-Kermit prompt, type receive filename where filename is the name under which you want to save the file on your PC. (If you want to save the file on a drive or directory other than the one where MS-Kermit is, you need to specify the drive and/or directory, such as receive a:\files\file.doc.)
  4. The transfer window will then come to your screen. This window lets you follow how the transfer is going. When the transfer is complete, the MS-Kermit prompt returns to your screen.
  5. Type c at the MS-Kermit prompt to return to your mainframe session.
  6. You can now transfer more files, or quit mainframe Kermit by typing quit at the mainframe Kermit prompt.

___________________________________CCSF___________________________________

[Web Weaver] [CCSFweb] [CCSF Info] [Events] [Site Index] [Help]