home *** CD-ROM | disk | FTP | other *** search
/ GRIPS 2: Government Rast…rocessing Software & Data / GRIPS_2.cdr / dos / ncsa_tel / pc_2_2_d.asc < prev    next >
Encoding:
Text File  |  1990-12-29  |  100.2 KB  |  3,122 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. NCSA Telnet for the PC
  16. Version 2.2
  17. July 1988
  18.  
  19. (ASCII printable version of this document)
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. UD-99
  37. US-14
  38.  
  39.  
  40.  
  41. NCSA Telnet Version 2.2 source code and documentation are in the public domain.  
  42. Specifically, we give to the public domain all rights for future licensing of 
  43. the source code, all resale rights, and all publishing rights.
  44.  
  45. We ask, but do not require, that the following message be included in all 
  46. derived works:
  47.  
  48. Portions developed by the National Center for Supercomputing 
  49. Applications at the University of Illinois at Urbana-Champaign.
  50.  
  51.  
  52.  
  53. PROBLEM REPORTS
  54.  
  55. Mail all suggestions and manual corrections to: 
  56. NCSA Documentation and Publications Department
  57. 152 Computing Applications Building 
  58. 605 E. Springfield Ave. 
  59. Champaign, Illinois 61820 
  60.  
  61.  
  62.  
  63.  
  64. DISCLAIMER
  65.  
  66. THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESS OR IMPLIED, FOR THE 
  67. SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION, WARRANTY 
  68. OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.
  69.  
  70.  
  71. TRADEMARK ACKNOWLEDGMENTS
  72.  
  73. PostScript is a registered trademark of Adobe Systems Inc.
  74. UNIX is a registered trademark of AT&T.
  75. SideKick is a registered trademark of Borland International Inc.
  76. VAX, VMS, and VT102 are registered trademarks of Digital Equipment Corporation.
  77. Hercules is a trademark of Hercules Computer Technology.
  78. Enhanced Graphics Adapter, IBM PC, PC/AT, PC-DOS, Personal System/2, and 
  79. Topview are registered trademarks of International Business Machines 
  80. Corporation.
  81. Microsoft Windows and MS-DOS are registered trademarks of Microsoft 
  82. Corporation.
  83. Revolution 512 is a trademark of Number Nine Computer. 
  84. Tektronix 4010 and Tektronix 4014 are trademarks of Tektronix Corporation.
  85. NIC is a trademark of Ungermann-Bass.
  86. EtherCard PLUS is a trademark of Western Digital Corporation.
  87. Ethernet is a trademark of Xerox Corporation.
  88. 3COM and Etherlink are trademarks of 3COM Corporation.
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96. INTRODUCTION
  97.  
  98.  
  99.  
  100. PURPOSE OF NCSA TELNET
  101.  
  102.  
  103. NCSA Telnet Version 2.2 for the PC provides interactive access 
  104. from an IBM PC or compatible to telnet hosts on TCP/IP networks. 
  105. NCSA Telnet is an implementation of DARPA standard telnet with 
  106. added features that take advantage of the local processing power 
  107. of the PC.
  108.  
  109.  
  110.  
  111. SPECIAL FEATURES
  112.  
  113.  
  114. Special features of NCSA Telnet for the PC include:
  115.  
  116. %    VT102 emulation
  117. %    Simultaneous logon to a number of computers
  118. %    Ability to capture text to the PC disk or printer
  119. %    File transfer server (standard FTP)
  120. %    Remote copy server (rcp) for use with UNIX hosts
  121. %    Ability to take full advantage of PC colors
  122. %    Topview/Windows compatible mode
  123. %    Tektronix 4014 emulation
  124. %    Domain name lookup
  125. %    Optional use of RARP for determining PC's IP address 
  126. %    Scrollback
  127.  
  128.  
  129.  
  130.  
  131. SYSTEM REQUIREMENTS
  132.  
  133.  
  134. To use NCSA Telnet you must have the following hardware:
  135.  
  136. %    IBM PC, PC/XT, PC/AT, IBM PS/2 model 30, or "true" compatible 
  137.     computer with one of the following Ethernet adapter boards:
  138.     3COM 3C501 Etherlink 
  139.     MICOM NI5210 
  140.     Ungermann-Bass PC-NIC (same as IBM Baseband Adapter)
  141.     Western Digital WD8003E EtherCard PLUS
  142.  
  143. %    or IBM PS/2 models 50,60 or 80, or "true" compatible computer 
  144.     with one of the following Ethernet adapter boards:
  145.     Ungermann-Bass NICps/2
  146.     3COM 3C523 Etherlink/MC
  147.  
  148. %    384K minimum memory
  149.  
  150. %    Ethernet or Thin Ethernet to connect the PC and other computers
  151.  
  152. To use NCSA Telnet you must have the following software:
  153.  
  154. %    PC-DOS or MS-DOS Version 2.0 or later.
  155. %    A standard text editor will be helpful when editing the 
  156.     configuration file.
  157.  
  158.  
  159.  
  160. ABOUT THIS MANUAL
  161.  
  162.  
  163. This section describes the organization of this manual, and the 
  164. conventions and nomenclature used in developing it.
  165.  
  166.  
  167. Organization of This Manual
  168.  
  169. This manual is organized into six chapters. Each page of each 
  170. chapter is given a unique number that consists of the chapter 
  171. number, a period, and the number of that individual page 
  172. (beginning with the first page of the chapter). For example, page 
  173. 2.3 is the third page of the second chapter. Each chapter is 
  174. divided into sections, and most sections are divided into 
  175. subsections. 
  176.  
  177.  
  178.  
  179. Manual Contents
  180.  
  181. This manual is organized into the following chapters:
  182.  
  183. Chapter 1, "Starting and Quitting NCSA Telnet," describes how to 
  184. start NCSA Telnet and how to open and close a connection between 
  185. your PC and one remote host.
  186.  
  187. Chapter 2, "Introduction to Managing Sessions," introduces NCSA 
  188. Telnet's capability for multiple connections.  It also discusses 
  189. standard VT102 key emulation, keys used for common EDT operations, 
  190. and using a capture file.
  191.  
  192. Chapter 3, "More about Managing Sessions," discusses multiple 
  193. sessions in detail.  The Parameters menu options, DOS shell 
  194. feature, and several advanced functions are also described.
  195.  
  196. Chapter 4, "File Transfer," outlines procedures for transferring 
  197. files between a PC and a telnet host.
  198.  
  199. Chapter 5, "Tektronix 4014 Emulation," discusses NCSA Telnet's 
  200. ability to emulate a Tektronix 4014 graphics terminal.
  201.  
  202. Chapter 6, "Installation and Configuration," contains information 
  203. for system administrators (and other experienced users) to use 
  204. when installing and customizing a system.
  205.  
  206. Appendix A, "Error Conditions," describes some of NCSA Telnet's 
  207. error messages, as well as their causes and solutions.
  208.  
  209. Appendix B, "NCSA Telnet Command Reference," lists commands 
  210. available from the PC keyboard.
  211.  
  212. Appendix C, "Configuration File Summary," lists the keywords for 
  213. configuration file parameters.
  214.  
  215.  
  216. Notational Conventions in This Manual
  217.  
  218. Figure I.1 shows some typical screen/user interactions using the 
  219. conventions employed in this manual. Those conventions, and 
  220. others, are explained here.
  221.  
  222. C:\> telnet machinename [machinename...]
  223.  
  224. National Center for Supercomputing Applications
  225. NCSA Telnet for the PC version 2.2
  226. (c) Copyright 1987,1988 Board of Trustees of the University of Illinois
  227.  
  228. ALT-H presents a summary of special keys
  229.  
  230.  
  231.  
  232. 4.2 BSD UNIX (newton)
  233.  
  234. login:
  235.  
  236. Figure I.1.  Example of Notational Conventions
  237.  
  238.  
  239. dothis        Information shown in courier boldface type represents 
  240. user entries.
  241.  
  242. ALT-key        Press and hold the ALT key and then press the key 
  243. designated by key. Then release both keys at the same 
  244. time.
  245.  
  246. variable    Do not enter the actual characters shown. Command line 
  247. characters shown in lowercase courier bold italic type 
  248. represent an entry that may consist of different 
  249. characters every time you make the entry. In other 
  250. words, it is a variable entry. If it indicates a 
  251. machine response, it means the actual wording of the 
  252. response will vary, depending on the filename, 
  253. machinename, and so on.
  254.  
  255. ...        Do not enter an ellipsis. The ellipsis indicates that 
  256. you may enter more material similar to the material 
  257. preceding the ellipsis.
  258.  
  259. [ ]        Do not enter square brackets. Material or actions 
  260. presented between square brackets is optional and 
  261. should be entered only in certain cases.
  262.  
  263.  
  264.  
  265. INSTALLATION NOTE
  266.  
  267.  
  268. This manual assumes that NCSA Telnet has been installed on your 
  269. system by a system or network administrator who has assigned an IP 
  270. address to your PC. Chapter 6 contains information to be used by 
  271. system administrators and other experienced users to install and 
  272. customize NCSA Telnet.
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279. CHAPTER 1
  280.  
  281. STARTING AND QUITTING NCSA TELNET
  282.  
  283.  
  284.  
  285. CHAPTER OVERVIEW
  286.  
  287.  
  288. This chapter describes how to start NCSA Telnet and how to open 
  289. and close a connection between your PC and one remote host. NCSA 
  290. Telnet also features multiple-session capabilities. If you want to 
  291. use more than one login session simultaneously, see Chapter 2, 
  292. "Introduction to Managing Sessions." Also see Chapter 2 for 
  293. information on how NCSA Telnet emulates a VT102 keyboard.
  294.  
  295.  
  296.  
  297. STARTING THE PROGRAM 
  298.  
  299.  
  300. To run NCSA Telnet from the PC command line, from any 
  301. subdirectory, enter:
  302.  
  303. C:\ > telnet machinename 
  304.  
  305. This initiates a connection to the remote computer with the name 
  306. given as the machinename parameter. Normally the host machine 
  307. immediately prompts you for a login name and password to begin the 
  308. session.
  309.  
  310.  
  311. Setting the Terminal Type
  312.  
  313. NCSA Telnet emulates a VT102 terminal. When you log in to a host, 
  314. the host operating system does not know what type of terminal you 
  315. are using. Consult the operating system manual for how to set 
  316. terminal type and try setting it to VT100 or VT102. For systems 
  317. that do not support VT102 (such as many UNIX systems), use VT100, 
  318. which is compatible with VT102 emulators. These examples show how 
  319. to set the terminal type for two popular operating systems, UNIX 
  320. (using the C shell) and VAX/VMS.
  321.  
  322. newton% set term=vt100;tset        For UNIX hosts.
  323.  
  324. B$ SET TERM/INQ                For VAX/VMS hosts.
  325.  
  326. THE HELP SCREEN
  327.  
  328.  
  329. For a command summary, press ALT-H. A one-screen summary of 
  330. command keys appears, as shown in Figure 1.1. The online help 
  331. summary serves as your quick reference to the command keys.
  332.  
  333. Keyboard usage for NCSA telnet:
  334.  
  335. Alt-A     add a session                    Alt-Y     Interrupt Process
  336. Alt-N     next session                     Alt-O     Abort Output
  337. Alt-M     message screen                   Alt-Q     Are you there?
  338. Alt-E     escape to DOS shell              Alt-U     Erase line
  339. Alt-G     graphics menu                    Alt-K     Erase Kharacter
  340. Alt-C     toggle capture on/off            Alt-X     close connection
  341. Alt-R     reset VT102 screen               HOME      exit graphics mode
  342. Alt-H     this help screen                 Ctrl-HOME clear/enter graphics mode
  343. ScrLock   pause/restart screen (DO NOT use Ctrl-NumLock)
  344. ScrLock   enter/exit scroll-back mode
  345. Alt-T     start file transfer as if typed: ftp [internet address]
  346. Alt-I     send my internet address to host as if typed
  347. Alt-S     skip scrolling, jump ahead
  348. Alt-P     change a parameter, one of:
  349.           color, capture file name, backspace, session name, screen mode
  350. Alt-F3    abort program completely.  STRONGLY discouraged
  351.  
  352.  
  353. Press ESC for information page, space bar to return to session:
  354.  
  355. Figure 1.1.  NCSA Telnet Help Screen
  356.  
  357.  
  358.  
  359.  
  360. QUITTING NCSA TELNET
  361.  
  362.  
  363. To exit the program, log out of the host machine using the 
  364. appropriate logout procedure for that machine. If you have 
  365. concurrent sessions with more than one machine, you must log out 
  366. of each machine. Then NCSA Telnet exits and the DOS prompt is 
  367. displayed.
  368.  
  369. If one of the hosts crashes, or a session is otherwise hung up, 
  370. press ALT-X. NCSA Telnet will first prompt you for confirmation 
  371. and then attempt to close the session while preserving your other 
  372. live sessions. 
  373.  
  374. When all else fails, and it appears that all of the connections 
  375. are completely jammed, press ALT-F3 to abort the program.  Only 
  376. use ALT-F3 as a last resort.
  377.  
  378.  
  379. CTRL-C Will Not Exit
  380.  
  381. Pressing CTRL-C or CTRL-BREAK will send a CTRL-C to the host. 
  382. These commands cannot be used to break out of NCSA Telnet, and 
  383. they will not end your session.
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392. CHAPTER 2
  393.  
  394. INTRODUCTION TO MANAGING SESSIONS
  395.  
  396.  
  397.  
  398. CHAPTER OVERVIEW
  399.  
  400.  
  401. This chapter introduces NCSA Telnet's capability for multiple 
  402. connections with one or more hosts. The chapter describes standard 
  403. VT102 key emulation, keys for some common EDT operations, how to 
  404. work with multiple sessions, and operations with the capture file.
  405.  
  406.  
  407.  
  408. KEYBOARD USAGE
  409.  
  410.  
  411. When NCSA Telnet is running, the PC appears to the host as a VT102 
  412. terminal. For keys that the PC keyboard and the VT102 keyboard 
  413. have in common, NCSA Telnet transmits the keystrokes unmodified. 
  414. The VT102 keyboard has some keys that the PC keyboard does not 
  415. have, and treats other keys differently. Many VT102 keys have 
  416. special meanings when they are transferred to the host. To provide 
  417. full VT102 functionality, some PC keys are used to emulate the 
  418. operation of VT102 keys. 
  419.  
  420. Table 2.1 lists the PC keys to use for VT102 terminal emulation. 
  421.  
  422. Table 2.1.  PC Keys Used for VT102 Terminal Emulation
  423.  
  424. To Send a VT102 Code            Press PC Key(s)
  425.  
  426. RETURN                    ENTER
  427.  
  428. DELETE                     BACKSPACE 
  429.  
  430. BACKSPACE                 CTRL-BACKSPACE 
  431.  
  432. LINE FEED                CTRL-ENTER
  433.  
  434. Keypad ENTER                 F10
  435. (not identical to RETURN)
  436.  
  437. Keypad . (decimal point)        DEL
  438.  
  439. Keypad - (hyphen)            F5
  440.  
  441. Keypad , (comma)            F6
  442.  
  443. Keypad 0                 INS
  444.  
  445. Keypad 0 to 9                ALT-0 to ALT-9
  446.  
  447. -, /, ,, .                -, /, ,, .
  448.  
  449. PF1 to PF4                F1 to F4
  450.  
  451.      See Chapter 3 and Chapter 6 for information on how to switch the 
  452. designations of these keys.
  453.  
  454.  
  455. VT102 Functions for the EDT Editor
  456.  
  457. Table 2.2 lists some VT102 terminal emulation functions that help 
  458. users who are working with the EDT editor under VAX/VMS. 
  459.  
  460. WARNING: If you are not using the EDT editor, ignore the use of 
  461. these keys. They produce unpredictable results on other systems.
  462.  
  463. Table 2.2.  VT102 Functions for the EDT Editor
  464.  
  465. For the EDT Operation            Press PC Key(s) 
  466.     
  467. Save-and-exit                F9
  468.  
  469. Select                    F7
  470.  
  471. Cut                    F8
  472.  
  473. Paste                    F1,then F8
  474.  
  475. Cursor to beginning of this line    HOME
  476.  
  477. Cursor to end of this line        END
  478.  
  479. Scroll backward one screen        PG UP
  480.  
  481. Scroll forward one screen        PG DN
  482.  
  483. Return to the previous formfeed        CTRL-PG UP
  484.  
  485. Go to the next formfeed            CTRL-PG DN
  486.  
  487. EDT help screen                F2
  488.  
  489.  
  490.  
  491. MULTIPLE SESSIONS
  492.  
  493.  
  494. When you first run NCSA Telnet, you can start up multiple sessions 
  495. with a single command.
  496.  
  497. C:\> telnet machinename [machinename ...]
  498.  
  499. Even if you do not choose multiple sessions when you first run 
  500. NCSA Telnet, you can later add sessions, as described in the 
  501. following paragraph.
  502.  
  503.  
  504. Using ALT-A to Open Another Session
  505.  
  506. When you have opened a connection to a single host, you can open a 
  507. second connection, to that host or a different one. To do this, 
  508. press ALT-A (A for add). NCSA Telnet responds by prompting for 
  509. the name of a computer to which it should attempt a connection.
  510.  
  511.  
  512. Indicating the Host
  513.  
  514. NCSA Telnet can only communicate with host computers that have IP 
  515. addresses. IP addresses can be looked up several different ways.
  516.  
  517. 1.    Any name that is in the configuration file can be used. 
  518. (Your system administrator can tell you the names listed 
  519. there.)
  520.  
  521. 2.    NCSA Telnet can be configured (by the system administrator) 
  522. to use the domain-based nameserver to look up host names. Any 
  523. name that can be resolved by the domain nameserver can be used. 
  524. An example is sri-nic.arpa.
  525.  
  526. 3.    You can use the full Internet number of the machine, in 
  527. decimal, separated by periods, such as 192.17.22.20.
  528.  
  529. 4.    If the machine is on the same Ethernet, you can enter a 
  530. pound sign (#), followed by the host number it uses on your 
  531. Ethernet. The host number is determined by the class of 
  532. addressing and the subnet mask (which your system administrator 
  533. can determine for you). For example, if your PC is host 
  534. 192.17.22.20, you can access host 192.17.22.30 by entering #30 
  535. for the host address.
  536.  
  537.  
  538. Response Time of the Host
  539.  
  540. NCSA Telnet attempts to make a login connection with the named 
  541. host. Usually the connection is instantaneous, and the host 
  542. machine prompts you for a login name immediately. However, the 
  543. connection attempt may take several seconds. Even after the telnet 
  544. connection has been completed, if a remote host is heavily loaded 
  545. it may take additional time (up to two minutes) to prompt you for 
  546. a login name. 
  547.  
  548. When the connection is established, the asterisk (*) in the status 
  549. box for the connection will disappear or change to a small box. If 
  550. NCSA Telnet makes the connection, but the remote host does not let 
  551. you log in, you may want to press ALT-X to end the connection.
  552.  
  553.  
  554. Using Scrollback Mode
  555.  
  556. The SCROLL LOCK key does double duty. It prevents the screen from 
  557. scrolling when new text arrives, and also puts you into scrollback 
  558. mode. In scrollback mode, the up and down arrow keys and PG UP and 
  559. PG DN scroll the screen backwards and forwards. When you press the 
  560. SCROLL LOCK key again, it ends scrollback mode and resets the 
  561. working area of the screen. 
  562.  
  563. The number of lines that are saved is limited by the amount of 
  564. memory in your machine and is set in the configuration file. If 
  565. your PC runs out of memory, or the specified number of lines have 
  566. already been stored, it will start wrapping the scrollback around.
  567.  
  568. NOTE:  No other commands work while you are using scrollback 
  569. mode.
  570.  
  571.  
  572. The Status Line
  573.  
  574. Only 24 lines are needed for VT102 terminal emulation, so line 25 
  575. on your PC screen is used to indicate the connection status of 
  576. your terminal sessions. For each host you are connected to, a 
  577. session name appears in reverse video. The name in the lower left 
  578. corner of the screen is the current session. Beside each name is a 
  579. status box that indicates various attributes of a session:
  580.  
  581. (gray)        Connection is established, waiting
  582. (small box)    Active connection, always in lower left corner
  583. *        Connection pending, trying to connect to host
  584. / or \        Text has been written to this invisible session
  585.  
  586.  
  587. Switching Between Sessions (ALT-N)
  588.  
  589. The status line at the bottom of the screen indicates the active 
  590. telnet sessions. To rotate to the next session, press ALT-N (for 
  591. next). This action makes the next session the current one and 
  592. moves its name to the lower left corner of the screen. The screen 
  593. image for this session is now displayed, and you should be ready 
  594. to proceed. Characters typed at the keyboard are always sent to 
  595. the current session.
  596.  
  597.  
  598. Displaying Console Messages (ALT-M)
  599.  
  600. In the process of connecting and communicating with other hosts 
  601. via TCP/IP, NCSA Telnet provides you with information on the 
  602. console (message) screen. To see this screen, press ALT-M. When 
  603. you have viewed the messages, press any key to return to your 
  604. session. The information on the console screen can tell you about 
  605. errors, warnings, FTP access to your PC, and network conditions 
  606. that may be of concern to network administrators.
  607.  
  608.  
  609. Exiting the Present Connection (ALT-X)
  610.  
  611. ALT-X initiates the close procedure for the current session.  To 
  612. prevent this from happening accidentally, NCSA Telnet prompts you 
  613. to confirm that the connection should be closed.   After 
  614. confirmation, the connection shuts down.  The close may take 
  615. several seconds to complete.  
  616.  
  617. NOTE:  You can press ALT-X to log out of a host as well as 
  618. terminate a given session, but it bypasses normal conventions and 
  619. may cause problems for the host. The correct way to close a 
  620. connection with a host is to log out of the host using the normal 
  621. logout procedure for that host. 
  622.  
  623.  
  624.  
  625. CAPTURE FILE OPERATIONS 
  626.  
  627.  
  628. Text that appears on the screen can be captured and sent to a file 
  629. or the local printer. When you press ALT-C, capture is turned on. 
  630. Pressing ALT-C again turns capture off. Any text that appears on 
  631. the screen is captured and appended to the capture file. NCSA 
  632. Telnet never erases the capture file, only appends text to it. The 
  633. default capture file is named capfile, but you can change that, as 
  634. discussed next.
  635.  
  636.  
  637. Designating a Capture File
  638.  
  639. Designate a different capture file by using the Parameter menu. 
  640. When you press ALT-P the Parameter menu is displayed. (Most of 
  641. the Parameter menu choices are discussed in Chapter 3.) Use the 
  642. arrow keys to select the Parameter menu entry for the capture file 
  643. name.  Press RETURN to clear the current entry and then enter 
  644. your new file name. After the name of the capture file has been 
  645. changed, all subsequent ALT-C commands use the new capture file. 
  646. You can also change the name of the capture file "permanently" in 
  647. the configuration file (see Chapter 6).
  648.  
  649.  
  650. Using PRN
  651.  
  652. If you want to send all captured text directly to a local printer, 
  653. use the filename prn as the designated capture file name. PC-DOS 
  654. reserves this filename for the printer.
  655.  
  656. A common problem can occur while you are capturing files to the 
  657. printer that can cause NCSA Telnet to abort. If the printer is 
  658. offline or out of paper when a capture begins, the message:
  659.  
  660. Error, A(bort) R(etry) or I(gnore)? 
  661.  
  662. appears on the screen. At this point, turn on the printer and then 
  663. press R for retry. Do not press A at this point because it will 
  664. abort NCSA Telnet and cut off all of your network connections.
  665.  
  666.  
  667. One Capture at a Time
  668.  
  669. You can capture text to a file or the printer in any session, but 
  670. not for more than one session at a time. When a capture is active 
  671. for a session in the background, you cannot invoke capture on the 
  672. current session. If you attempt to do so, you will not get the 
  673. confirmation message on line 25 and NCSA Telnet reminds you of the 
  674. error. The capture procedure will continue to capture all text for 
  675. the background session while you interact with the current 
  676. session.
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685. CHAPTER 3
  686.  
  687. MORE ABOUT MANAGING SESSIONS
  688.  
  689.  
  690.  
  691. CHAPTER OVERVIEW
  692.  
  693.  
  694. This chapter continues the discussion of multiple sessions and 
  695. describes more advanced aspects of the NCSA Telnet working 
  696. environment. The chapter explains how to reset the VT102 screen, 
  697. how to abort NCSA Telnet, the DOS shell feature, and Parameters 
  698. menu options.
  699.  
  700.  
  701.  
  702. KEYBOARD COMMANDS
  703.  
  704.  
  705. Skip Command (ALT-S)
  706.  
  707. The skip command causes the screen to "skip ahead" over scrolling 
  708. text. The text is placed into the scrollback region, but the 
  709. screen update advances to the end of the local network buffer 
  710. instead of printing every line on the screen. The purpose of this 
  711. feature is to help you when you type a command which produces so 
  712. many lines of output that you don't want to wait for it to scroll 
  713. by. Press ALT-S and the screen will pause, then redraw at the end 
  714. of the local buffer. This won't solve all of the network buffering 
  715. problems for interactive use, but it should help. Capture to disk 
  716. and scrollback are not affected by skip.
  717.  
  718.  
  719. Resetting the VT102 Screen (ALT-R)
  720.  
  721. ALT-R clears and resets all modes associated with the current 
  722. virtual VT102 screen. Some host programs can accidentally set 
  723. graphics mode on or fail to leave graphics mode. You press ALT-R 
  724. to override all VT102 mode settings. These include turning off 
  725. wrap mode, resetting graphics mode, setting the keypad mode back 
  726. to the default, and resetting tabs to every eight spaces. After 
  727. using ALT-R, you may wish to set your terminal type again to allow 
  728. the host to reset whatever VT102 modes it needs.
  729.  
  730.  
  731. Aborting the Program (ALT-F3)
  732.  
  733. If for some reason none of the current connections respond, SCROLL 
  734. LOCK is not on, and ALT-R and ALT-X do not appear to have any 
  735. effect, ALT-F3 is a general abort command that exits NCSA Telnet 
  736. and returns you to DOS. If NCSA Telnet is aborted with ALT-F3, it 
  737. cannot notify the host(s) that your session(s) are terminated. 
  738. Your sessions are left in an undetermined state. This can cause a 
  739. variety of problems for the host, because it cannot immediately 
  740. determine that the session has ended. For example, you may have 
  741. programs which continue to run on the host, even though you exited 
  742. telnet with ALT-F3.
  743.  
  744.  
  745. Escape to DOS Shell (ALT-E)
  746.  
  747. Pressing ALT-E to escape to DOS preserves your connections while 
  748. you use the DOS command shell. You may use most DOS commands and 
  749. programs, including those which look at directories, edit source 
  750. files, or even compile programs. To return to NCSA Telnet, you 
  751. must enter the command exit at the DOS prompt.
  752.  
  753. During the escape to DOS, NCSA Telnet is monitoring the Ethernet 
  754. for incoming packets every one-half second. If you run other 
  755. programs which affect the Ethernet or the timer which NCSA Telnet 
  756. uses, your connections may be lost or worse, your computer may 
  757. crash. The following programs are examples of those which 
  758. terminate the network handling of NCSA Telnet, causing connections 
  759. to be lost or DOS to crash:
  760.  
  761. %    SideKick (it turns off timer processes, so it can cause lost 
  762. connections)
  763. %    All network programs (they reset the Ethernet board)
  764. %    NCSA Telnet (it is a network program)
  765. %    User FTP (it, too, is a network program)
  766. %    format, the DOS format utility for floppy disks
  767. %    FileCommand II
  768.  
  769. NOTE: Watch memory usage to prevent crashing. Also, remember to 
  770. exit when you have finished your DOS activities.
  771.  
  772.  
  773.  
  774. PARAMETER MENU
  775.  
  776.  
  777. Press ALT-P to display the Parameter menu options, which appear 
  778. on the screen as shown in Figure 3.1. These options control the 
  779. settings for text color, echo mode, backspace key, session name, 
  780. terminal type, capture file name, screen mode and file transfer 
  781. mode. You can change the fields that are shown in bold to 
  782. different values.
  783.  
  784. ALT-P                         Parameter menu
  785.    <      Select parameters, F1 to accept, F10 to leave unchanged      >
  786.  
  787.    --------------- Color setup and session parameters -----------------
  788.  Text:         normal    reverse   underline
  789.     Normal Foreground (nfcolor)        -    green
  790.     Normal Background (nbcolor)        -    black
  791.     Reverse Foreground (rfcolor)        -    black
  792.     Reverse Background (rbcolor)        -    white
  793.     Underline Foreground (ufcolor)        -    blue
  794.     Underline Background (ubcolor)        -    black
  795.     Use remote echo or local echo        -    Remote echo
  796.     Backspace key sends            -    Delete
  797.     Session name                *>    ahostname
  798.     Terminal type                -    VT102 and Tek4014
  799.    -------------- Parameters which apply to all sessions --------------
  800.     Capture file name            *>    capfile
  801.     Screen mode (for BIOS compatibility)    -    Direct to screen
  802.     File transfer is            -    Enabled
  803.  
  804.  
  805. Use arrow keys to select, Enter clears changeable field (*>)
  806.  
  807. Figure 3.1.  Parameter Menu
  808.  
  809.  
  810. The up arrow, down arrow, HOME, and END keys allow you to move the 
  811. cursor from option to option. The left and right arrow keys rotate 
  812. through the allowed settings for each option. For each field that 
  813. you wish to change, move the cursor to that field and press the 
  814. left or right arrow until the desired value appears. After 
  815. changing all of the fields that you wish to change, press the F1 
  816. key to return to your session with the changes in effect. If you 
  817. make a mistake, or decide that no changes are necessary, press 
  818. F10 to return to your session without any changes taking place.
  819.  
  820. There are two special fields, marked with the symbol *>, to 
  821. indicate that the present value may be changed by typing another. 
  822. To change one of these, place the cursor on top of the changeable 
  823. field and then press RETURN. The program blanks the field and 
  824. allows you to enter a new value. Press RETURN when you are 
  825. finished entering the new value. After you enter a new value, but 
  826. before you press F1, the old value still remains in memory and 
  827. you may use the left or right arrow keys to regain the old value.
  828.  
  829. Following are descriptions of the parameters you can set.
  830.  
  831.  
  832. Screen Text Colors
  833.  
  834. Host programs expect to be able to control the attributes of 
  835. characters on the VT102 screen. Command codes are sent to your PC 
  836. to display characters in normal, reverse, underlined, blinking, 
  837. and bold attributes, or combinations of these. When normal, 
  838. reverse, and underline text are required, you have control over 
  839. which colors are used. When blink or bold attributes are required, 
  840. NCSA Telnet adds them to your selected colors.
  841.  
  842. For normal, reverse, and underlined characters, NCSA Telnet gives 
  843. you your choice of foreground and background colors, a total of 
  844. six settings. The color choices for a PC color video display are 
  845. black, blue, green, cyan, red, magenta, yellow, and white. For 
  846. each of the text modes, normal, reverse, and underlined, use the 
  847. Parameter menu to select the foreground and background colors. As 
  848. you change the selections, the sample text on the fifth line of 
  849. the screen provides an example of how the text will appear in the 
  850. VT102 emulation.
  851.  
  852. On monochrome screens, when you display a character in the color 
  853. blue, the PC produces a visible underline on the screen instead of 
  854. blue coloring. Color screens do not have the visible underline 
  855. capability and use a visible blue color instead of underlining. 
  856. Bold and blinking attributes from the VT102 screen appear as bold 
  857. and blinking characters on the PC screen.
  858.  
  859.  
  860. Remote Echo and Local Echo
  861.  
  862. When the response time of the network is long (such as with 
  863. satellite transmission), you may want to buffer your keyboard 
  864. input locally, only sending characters to the host when you press 
  865. RETURN. This is often referred to as a line mode or local echo 
  866. mode. The alternative to line mode is called character mode or 
  867. remote echo mode, where the local program immediately sends, and 
  868. remote host echoes, every character over the network.
  869.  
  870. In local echo mode, most characters typed at the keyboard are 
  871. buffered by NCSA Telnet until you press RETURN, which sends the 
  872. characters to the host all in one packet. There are some 
  873. exceptions to this rule.
  874.  
  875. %    CTRL-U erases the local buffer.
  876. %    Backspace (CTRL-H) erases the most recent character added to 
  877. the local buffer.
  878. %    Tab (CTRL-I) forces NCSA Telnet to send the local buffer (with 
  879. the tab).
  880. %    All other control characters echo with a caret (e.g. ^A) and 
  881. force NCSA Telnet to send the local buffer with the control 
  882. character included.
  883. %    Arrow keys and all other unprintable ASCII characters, the 
  884. escape character for example, force NCSA Telnet to send the 
  885. local buffer, with the character included.
  886. %    You cannot send a CTRL-U or Backspace to the host in line mode.
  887. %    ALT keys and other local command keys are not affected by local 
  888. echo mode.
  889.  
  890. NOTE: For full screen editing, character mode (remote echo) is 
  891. necessary, so most hosts use this mode. When full screen editing 
  892. is not required, line mode may be more efficient.
  893.  
  894.  
  895. Function of the Backspace Key
  896.  
  897. NCSA Telnet automatically translates BACKSPACE keypresses into 
  898. DELETE codes, for compatibility with systems that prefer the use 
  899. of DELETE to BACKSPACE. If you find that your backspaces are not 
  900. being accepted, the host you are connected to may prefer the 
  901. reverse setting. To test this possibility, use the Parameter menu 
  902. to change the default translation so the BACKSPACE key functions 
  903. as backspace. If the result is that your backspaces are accepted, 
  904. then the host does prefer the BACKSPACE to DELETE. If you require 
  905. the reverse setting frequently, you or your system administrator 
  906. may want to permanently reset the backspace function using the 
  907. configuration file, as described in Chapter 6.
  908.  
  909.  
  910. Changing the Session Name
  911.  
  912. The status line shows a 14-character session name for each active 
  913. session. For each session, the machine name that you typed to 
  914. initiate the session displays as the default. The Parameter menu 
  915. allows you to change the status line name for the current session. 
  916. Press RETURN to clear the current entry and type in a new name. 
  917. Only the first 14 characters are used.
  918.  
  919.  
  920. Changing the Terminal Type
  921.  
  922. Generally, the default terminal type of VT102 with Tektronix 4014 
  923. is acceptable. There may be specific cases where you need to force 
  924. some restrictions on the way the terminal acts, so you may want to 
  925. limit the amount of emulation that NCSA Telnet does. The three 
  926. choices of terminal types are: 
  927.  
  928. %    VT102 terminal with Tektronix 4014 graphics
  929. %    VT102 only, graphics commands ignored, but VT102 commands 
  930. accepted
  931. %    Dumb terminal, no VT100 codes or Tektronix codes interpreted
  932.  
  933.  
  934. Changing the Capture Filename
  935.  
  936. The name of the current capture file can be changed on the 
  937. Parameter menu. Press RETURN to clear the current entry and then 
  938. enter your new filename. After the name of the capture file has 
  939. been changed, all subsequent ALT-C commands use the new capture 
  940. file. You can also change the name of the capture file 
  941. "permanently" in the configuration file (see Chapter 6). See 
  942. Chapter 2 for a description of capture file operations.
  943.  
  944.  
  945. File Transfer Mode
  946.  
  947. The Parameter menu allows you to disable or enable file transfers. 
  948. When you select Disabled, neither FTP nor rcp is allowed. When you 
  949. select Enabled, the FTP and rcp servers are restarted. Chapter 4 
  950. contains more information on the file transfer methods for NCSA 
  951. Telnet. The default file transfer modes for FTP and rcp can be set 
  952. in the configuration file (see Chapter 6).
  953.  
  954.  
  955. Screen Mode (BIOS Compatibility for Windowing 
  956. Packages)
  957.  
  958. In the normal, fast mode, writes are made directly to the screen 
  959. for increased speed, but this mode is incompatible with windowing 
  960. packages like Topview or Microsoft Windows and may cause snow on 
  961. some screens. NCSA Telnet has a compatibility mode where IBM's 
  962. BIOS calls are used for all access to the screen.
  963.  
  964. Usually, the windowing compatibility mode is set up in the 
  965. configuration file with the bios option. However, if a change is 
  966. needed once you are in the program, the Parameter menu option is 
  967. available.
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976. CHAPTER 4
  977.  
  978. FILE TRANSFER
  979.  
  980.  
  981.  
  982. CHAPTER OVERVIEW
  983.  
  984.  
  985. This chapter describes procedures for transferring files between a 
  986. PC and a network host, using NCSA Telnet's two built-in file 
  987. transfer servers: FTP and rcp. Guidelines and information are 
  988. presented for file name conventions, path specification, and 
  989. background file transfer.
  990.  
  991.  
  992.  
  993. TERMINOLOGY
  994.  
  995.  
  996. The following terms are used in this chapter.
  997.  
  998. ASCII file, text file    
  999.  
  1000. An ASCII or text file can be read by humans, and can be used with standard
  1001. editors on the PC or host. When text files are transferred, the end-of-line
  1002. markers are changed.
  1003.  
  1004. Binary, graphics, or IMAGE file
  1005.  
  1006. A binary, graphics, or IMAGE file cannot be read by humans. When
  1007. transferred, binary files are not changed in any way (unlike text files).
  1008.  
  1009. Client/Server    
  1010.  
  1011. The client is the system that requests services and the server is the system
  1012. that provides them. The client is not always your PC, despite appearances.
  1013. When you use NCSA Telnet to connect to a host, your PC is the telnet client.
  1014. When you request a file transfer from your PC, the transfer is actually
  1015. initiated on the host, making the host the FTP client and your PC the FTP
  1016. server. So the PC is a telnet client and an FTP server at the same time. 
  1017.  
  1018. File transfer    
  1019.  
  1020. In a file transfer, the contents of a file are copied, and the copy is
  1021. placed on another computer's disk drive.
  1022.  
  1023.  
  1024.  
  1025. FILE TRANSFER GUIDELINES
  1026.  
  1027.  
  1028. Full Path Specification, Conversion of Forward Slashes
  1029.  
  1030. With either FTP or rcp, if you do not specify a full pathname, 
  1031. files are transferred to the default directory. If you need to 
  1032. specify a different directory, type the full pathname as 
  1033. documented in the DOS manual. The full pathname may include the 
  1034. disk drive name, with a colon, for example:
  1035.  
  1036. D:\myfiles\graphics\image.dat
  1037. or
  1038. D:/myfiles/graphics/image.dat
  1039.  
  1040. You may use forward slashes (/) rather than backslashes (\), 
  1041. because NCSA Telnet automatically converts any forward slashes in 
  1042. UNIX pathnames to backslashes for compatibility with PC-DOS. 
  1043. Because backslashes are special characters in the UNIX shell and a 
  1044. special format is required to enter them, forward slashes are more 
  1045. convenient to use.
  1046.  
  1047.  
  1048. Some Simultaneous Activity Permitted
  1049.  
  1050. With both FTP and rcp, file transfers are processed at the same 
  1051. time as other telnet sessions. Therefore, while a file transfer is 
  1052. in progress you can perform other NCSA Telnet activities such as 
  1053. interacting with a telnet session, switching sessions, adding new 
  1054. sessions, or changing parameters. 
  1055.  
  1056. However, do not initiate another file transfer while one is 
  1057. already in progress. While an FTP request is being processed, a 
  1058. second FTP request will be ignored. However, if you try to start 
  1059. an rcp transfer while another transfer is already underway, both 
  1060. transfers may fail.
  1061.  
  1062. NOTE: Do not quit NCSA Telnet while a file transfer is in 
  1063. progress, or the file transfer may fail.
  1064.  
  1065.  
  1066. Rules for Filenames Sent to the PC
  1067.  
  1068. Whether you are using FTP or rcp to transfer files to or from a 
  1069. PC, check these rules for PC filenames:
  1070.  
  1071. %    A legal PC filename is eight characters or less, followed by an 
  1072. optional period and an up to three-character extension.
  1073.  
  1074. %    Upper- and lowercase are considered identical for filenames on 
  1075. PC disks.
  1076.  
  1077. %    Names of files which are transferred from the PC are given in 
  1078. all lower case.
  1079.  
  1080. %    A filename longer than eight characters is truncated.
  1081.  
  1082. %    If a period occurs in a filename, the next three characters are 
  1083. read as the extension, and any others are truncated. 
  1084.  
  1085. %    A filename should not contain "special characters" or spaces. 
  1086. If it does, the file may be lost or unreadable. Examples of 
  1087. special characters are the asterisk (*), the dollar sign ($), 
  1088. the pound sign (#), the hyphen (-), and control characters. 
  1089.  
  1090.  
  1091. File Transfer Reports
  1092.  
  1093. The FTP server produces several kinds of information for the local 
  1094. user to help keep tabs on FTP access to the local hard disk.  This 
  1095. information can be viewed with the ALT-M command (show console 
  1096. messages), as documented in Chapter 2.  The following list 
  1097. describes the information which FTP provides:
  1098.  
  1099. %    Reports when a command connection is initiated, with the IP 
  1100. address or host name of the remote machine which initiated the 
  1101. connection
  1102. %     Reports the name of the user who logs in, if the USER 
  1103. command is used
  1104. %     Reports the file names which were transferred to or from 
  1105. local disk
  1106. %     Reports when the command connection ends
  1107.  
  1108. The rcp server also produces reports for the console screen.
  1109.  
  1110. %    Reports when an rcp transfer begins
  1111. %    Reports when the rcp transfer ends
  1112.  
  1113.  
  1114.  
  1115. FILE TRANSFER USING FTP
  1116.  
  1117.  
  1118. The FTP server in NCSA Telnet is the minimum standard FTP server, 
  1119. similar to that in 4.2 BSD UNIX. NCSA's FTP supports the following 
  1120. features:
  1121.  
  1122. %    Stream transfer in text format (ASCII) or binary format (IMAGE)
  1123. %    Change directory
  1124. %    Print current directory
  1125. %    List files in current directory (with wildcard specifications)
  1126. %    Send and receive multiple files with one command, using 
  1127. wildcards
  1128.  
  1129.  
  1130. Prerequisites
  1131.  
  1132. %    The host machine must support FTP file transfer. If you do not 
  1133. know whether it does, see your system administrator.
  1134.  
  1135. %    You must not have disabled the file transfer capability of NCSA 
  1136. Telnet. That is done with the Parameter menu (Chapter 3), or in 
  1137. the configuration file (Chapter 6). If the file transfer 
  1138. capability has been switched off, when you attempt to start up 
  1139. FTP, you will get a message from the host to the effect that 
  1140. the computer is not responding. If you get such a message, 
  1141. check the file transfer mode on the Parameter menu to make sure 
  1142. that it is enabled.
  1143.  
  1144.  
  1145. When to Use FTP
  1146.  
  1147. Use FTP rather than rcp in either of the following situations.
  1148.  
  1149. 1.    You are not thoroughly familiar with the host operating 
  1150. system. FTP is easier to use than rcp, and requires less 
  1151. familiarity with the host commands and directory structure.
  1152.  
  1153. 2.    You are transferring PC text (ASCII) files to a host. FTP is 
  1154. a better choice than rcp, because FTP automatically converts 
  1155. the end-of-line characters in text files from CRLF used by PC-
  1156. DOS, to LF used by UNIX machines.
  1157.  
  1158.  
  1159. Invoking FTP on the Host Computer
  1160.  
  1161. FTP is initiated by the host, so the FTP commands vary, depending 
  1162. on the host system. For full documentation of FTP and commands 
  1163. within FTP, you must refer to the manuals for the host computer. 
  1164. With UNIX systems, you can see online documentation by using the 
  1165. man ftp command. 
  1166.  
  1167. THE FTP COMMAND
  1168.  
  1169. On most systems, the FTP command is entered at the prompt, with 
  1170. the name or IP address of the target machine. For example, if your 
  1171. PC is named "mymachine" and your IP address is 192.17.20.22, then 
  1172. you might enter:
  1173.  
  1174. % ftp mymachine
  1175. or
  1176. % ftp 192.17.20.22
  1177.  
  1178. which generates a response like this:
  1179.  
  1180. Connected to 192.17.20.22.
  1181. 220 PC Resident FTP server, ready
  1182. Name (192.17.20.22:timk):
  1183.  
  1184. Most FTP clients will now prompt you for your username and 
  1185. password.  If NCSA Telnet is configured for passwords (see Chapter 
  1186. 6), then these are required.  Otherwise, just press RETURN to 
  1187. bypass the prompts.  If you are  not prompted for username and 
  1188. password, then assume that you are logged in and continue with 
  1189. your FTP commands.
  1190.  
  1191.  
  1192. ALTERNATE METHODS OF INVOKING FTP (ALT-T AND ALT-I)
  1193.  
  1194. The most common procedure for starting FTP uses the shortcut 
  1195. keystroke, ALT-T. When you press ALT-T, NCSA Telnet types the 
  1196. ftp command described above, automatically including your PC's IP 
  1197. address and the RETURN to initiate the command.  For convenience, 
  1198. you will probably prefer ALT-T to the other ways of entering the 
  1199. command. You may want to think of this as a keyboard macro that is 
  1200. pre-set with the FTP command and your IP address.
  1201.  
  1202. Another available macro is ALT-I which types your IP address for 
  1203. you.  When entering any networking command, FTP for example, you 
  1204. can instantly produce your own network IP address with ALT-I.  
  1205. The following sequence is equivalent to pressing ALT-T.
  1206.  
  1207. ftp
  1208. (SPACEBAR)
  1209. (ALT-I)
  1210. (RETURN)
  1211.  
  1212. Use whichever method of invoking FTP you feel comfortable with.  
  1213. Your host computer may or may not accept FTP commands as described 
  1214. here, so you may have to try some variations to find the easiest 
  1215. method for your site.  Your system administrator may be able to 
  1216. help.
  1217.  
  1218.  
  1219. FTP Commands
  1220.  
  1221. For most FTPs, after FTP has been invoked and passwords have been 
  1222. checked, you are prompted for individual FTP commands.  These 
  1223. commands are also documented in the manuals for the host computer.  
  1224. Most of the FTP implementations have similar commands because they 
  1225. are modeled after the Berkeley UNIX version of FTP. Table 4.1 
  1226. lists FTP commands that are common to most implementations.
  1227.  
  1228. Table 4.1.  Common FTP Commands
  1229.  
  1230. Command        Action
  1231.  
  1232. ascii        Sets mode to ASCII transfer mode (default)
  1233.  
  1234. binary        Sets mode to binary (image) transfer mode
  1235.  
  1236. cd path        Sets a new default directory on PC
  1237.  
  1238. dir        Shows filenames in PC's default directory
  1239.  
  1240. get filename    Gets a file from PC, sends to host
  1241.  
  1242. help        Shows online list of FTP commands
  1243.  
  1244. put filename    Sends a file from host to PC
  1245.  
  1246. pwd        Shows current PC directory name
  1247.  
  1248. quit        Exits FTP
  1249.  
  1250.  
  1251. ASCII, BINARY
  1252.  
  1253. The default mode for FTP transfers is ASCII format. If you are 
  1254. transferring graphics or binary data files, change to binary mode 
  1255. before you use the put or get commands. Do this by entering the 
  1256. command binary. To reset the ASCII format after sending a binary 
  1257. file, enter the command ascii. Figure 4.1 shows an FTP 
  1258. transaction with an ASCII file. Figure 4.2 shows an FTP 
  1259. transaction with a binary file.
  1260.  
  1261.  
  1262. DEFAULT DIRECTORY
  1263.  
  1264. Unless you include a full pathname with the command, NCSA Telnet 
  1265. transfers the file to the default directory. As Table 4.1 
  1266. indicates, you can use FTP commands to identify the current 
  1267. directory (pwd), or change the current directory (cd).
  1268.  
  1269. The change directory command, which the user types as cd, allows 
  1270. you to change the default disk drive in addition to the default 
  1271. directory.  Just use PC standard disk notation, with forward 
  1272. slashes instead of backslashes, for example:
  1273.  
  1274. ftp> cd D:/files
  1275.  
  1276. The pwd command also returns disk information.  After the previous 
  1277. example cd command, a pwd command returns:
  1278.  
  1279. D:\FILES
  1280.  
  1281. TRANSFER TO THE PC
  1282.  
  1283. Even though you seem to be initiating the transfer from the PC, 
  1284. the transaction operates from the host's side. The practical 
  1285. effect of this could make the commands seem 
  1286. intuitively "backwards." To transfer a file from the host to your 
  1287. PC, you use a put command. The form this command takes is:
  1288.  
  1289. put filename.ext
  1290.  
  1291. Figure 4.1 shows an example of a put command used with an actual 
  1292. file, named temp2. The boldface type represents user entries.
  1293.  
  1294.  
  1295. newton_45% ftp -n 192.17.20.124
  1296. Connected to 192.17.20.124.
  1297. 220 PC Resident FTP server, ready
  1298. ftp> put temp2
  1299. 200 This space intentionally left blank <  >
  1300. 150 Opening connection
  1301. 226 Transfer complete
  1302. 262145 bytes sent in 32.61 seconds (7.8 Kbytes/s)
  1303. ftp> quit
  1304. 221 Goodbye
  1305. newton_46%
  1306.  
  1307. Figure 4.1.  Put to the PC, ASCII File
  1308.  
  1309.  
  1310. TRANSFER TO THE HOST
  1311.  
  1312. A request to send a file from the PC to the host is called a get.
  1313.  
  1314. get filename.ext
  1315.  
  1316. Figure 4.2 shows a get operation, using a binary file named 
  1317. bridge.pic. Note that the file was in the directory named ibmg, so 
  1318. the cd command was used. Again, the boldface type represents user 
  1319. entries. If a text file were to be sent after this, the ASCII mode 
  1320. would have to be reset, using the FTP ascii command.
  1321.  
  1322. newton_41% ftp -n 192.17.20.124
  1323. Connected to 192.17.20.124.
  1324. 220 PC Resident FTP server, ready
  1325. ftp> bin
  1326. 200 Type set to I, binary transfer mode
  1327. ftp> cd /ibmg
  1328. 250 Chdir okay
  1329. ftp> get bridge.pic
  1330. 200 This space intentionally left blank <  >
  1331. 150 Opening connection
  1332. 226 Transfer complete
  1333. 262144 bytes received in 9.22 seconds (28 Kbytes/s)
  1334. ftp>
  1335. ftp> quit
  1336. 221 Goodbye
  1337. newton_42%
  1338.  
  1339. Figure 4.2.  Get from the PC, Binary File
  1340.  
  1341.  
  1342. FTP STATUS INDICATOR
  1343.  
  1344. After you have entered a put or get command, in the lower right 
  1345. hand corner of your screen you will see the filename and an 
  1346. indication of the number of bytes transferred (in the case of a 
  1347. put) or left to be transferred (in the case of a get). These 
  1348. numbers are updated every couple of seconds to help you keep track 
  1349. of the progress of the file transfer.  After the command has 
  1350. completed, the filename goes away and the host usually prints a 
  1351. confirmation message, as seen in Figures 4.1 and 4.2.
  1352.  
  1353.  
  1354. MPUT, MGET
  1355.  
  1356. On many telnet hosts, you can transfer multiple files sequentially 
  1357. with one command, either mput or mget, used with wildcard 
  1358. characters. (PC wildcard characters are ? for a single character 
  1359. and * for multiple characters.)
  1360.  
  1361.  
  1362. BUG WITH MGET
  1363.  
  1364. If you transfer multiple binary files using a UNIX host, note that 
  1365. there is a bug in mget as implemented on some systems (especially 
  1366. 4.2 BSD UNIX). When used in binary mode, mget adds a carriage 
  1367. return to the filenames as they are transferred. The files 
  1368. themselves are not affected. Use a UNIX utility to remove the 
  1369. carriage return from the filename. In ASCII mode, there is no 
  1370. problem.
  1371.  
  1372.  
  1373.  
  1374. FILE TRANSFER USING RCP
  1375.  
  1376.  
  1377. rcp is a Berkeley UNIX feature found in Sun UNIX and other 4.2 BSD 
  1378. systems. The rcp program cannot do the end of line translation 
  1379. required for text files, so it is typically used for binary files 
  1380. only. UNIX rcp is designed for files copied UNIX-to-UNIX, but NCSA 
  1381. Telnet's rcp server supports transfer between a UNIX system and a 
  1382. PC.
  1383.  
  1384. NOTE: NCSA Telnet's rcp server does not support the recursive 
  1385. option (-r).
  1386.  
  1387.  
  1388. Prerequisites
  1389.  
  1390. To use rcp efficiently, you should be familiar with the UNIX host, 
  1391. including:
  1392.  
  1393. %    rcp command and options
  1394. %    directory structures used with rcp
  1395. %    the relationship between the UNIX shell and rcp wildcards
  1396.  
  1397. Details on these concepts are in the manuals for UNIX.
  1398.  
  1399. The internet (IP) number and machine name for each PC must be in 
  1400. the UNIX /etc/hosts file for every machine that is transferring 
  1401. files to and from your PC.  If rcp does not recognize your PC's 
  1402. name, have your system administrator check for that name in the 
  1403. UNIX machine's hosts file.
  1404.  
  1405.  
  1406. When to Use Rcp; Advantages of Rcp
  1407.  
  1408. Use rcp for binary transfers to or from a UNIX system if you are 
  1409. familiar with the UNIX hosts, as described earlier.
  1410.  
  1411. There are two advantages of using rcp rather than FTP, on binary 
  1412. file transfers to or from a UNIX machine.
  1413.  
  1414. %    rcp handles wildcards more efficiently than FTP does.
  1415. %    rcp handles directories more easily than FTP does.
  1416.  
  1417.  
  1418. When Not to Use NCSA Telnet's Rcp Server
  1419.  
  1420. Do not use the rcp server to transfer text files. Text files on 
  1421. the PC contain extra RETURN characters that NCSA Telnet's rcp 
  1422. server does not remove when transferring to UNIX.
  1423.  
  1424. NOTE: Do not initiate an rcp while a file transfer is already in 
  1425. process, or both transfers may fail.
  1426.  
  1427.  
  1428. Rcp Between the PC and UNIX
  1429.  
  1430. The rcp program is fully documented in the manuals for UNIX hosts 
  1431. that support rcp transfers.  Refer to those manuals to learn about 
  1432. rcp.  As a reminder, the general syntax of the rcp command is 
  1433. given here.  The target filename can be a directory name and 
  1434. wildcards are allowed, as noted in the next section.
  1435.  
  1436. % rcp mypc:filename unixfile        From PC to UNIX.
  1437. % rcp unixfile mypc:filename        From UNIX to PC.
  1438.  
  1439.  
  1440. EXAMPLE: PC TO UNIX
  1441.  
  1442. Following is a sample command to transfer a file named image from 
  1443. the PC named mypc to the current directory on the UNIX host 
  1444. (indicated by a dot or period). Note that the only blank spaces 
  1445. are after the command rcp, and between the filename and the target 
  1446. directory name (in this case, the dot for the current directory).
  1447.  
  1448. % rcp mypc:image .
  1449.  
  1450.  
  1451. EXAMPLE: UNIX TO PC
  1452.  
  1453. Following is a sample command to transfer a file named mygraf in 
  1454. the directory graphs from the UNIX host and put it in the 
  1455. directory grafs on the PC.
  1456.  
  1457. % rcp /graphs/mygraf mypc:/grafs
  1458.  
  1459.  
  1460. Using Wildcards
  1461.  
  1462. Wildcard characters can be used with the rcp command to transfer 
  1463. multiple files between a PC client and a UNIX host. Wildcards that 
  1464. refer to UNIX files should be in the UNIX regular expression 
  1465. format. Wildcards that refer to PC files must be set apart using 
  1466. backslashes or quotes. See the following examples.
  1467.  
  1468.  
  1469. EXAMPLE: BACKSLASHES USED WITH WILDCARDS
  1470.  
  1471. One way of using PC wildcards with the rcp server is to use the 
  1472. backslash character (\) to keep the UNIX shell from interpreting 
  1473. the special characters. Suppose you want to transfer all files 
  1474. that have image at the beginning of the filename. Instead of the 
  1475. usual PC format, image*.*, you must precede each asterisk with a 
  1476. backslash. The full rcp command would look like this:
  1477.  
  1478. % rcp mypc:image\*.\* .
  1479.  
  1480. Without the backslashes, the UNIX shell would try to translate the 
  1481. asterisk on the host rather than on the PC.
  1482.  
  1483. EXAMPLE: QUOTES USED WITH WILDCARDS
  1484.  
  1485. The second way of using PC wildcards with the rcp server is to 
  1486. insert quotes around the entire argument. The command to transfer 
  1487. the files beginning with image would look like this:
  1488.  
  1489. % rcp "mypc:image*.*" .
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497. CHAPTER 5
  1498.  
  1499. TEKTRONIX 4014 GRAPHICS
  1500.  
  1501.  
  1502.  
  1503. CHAPTER OVERVIEW
  1504.  
  1505.  
  1506. NCSA Telnet can emulate the Tektronix 4014 graphics terminal. This 
  1507. emulation includes text modes, Tek 4014 text sizing, zoom, pan, 
  1508. and multiple output devices. It supports CGA, EGA, Hercules, and 
  1509. the Number Nine Revolution 512x8 video systems, with the 
  1510. capability to write out images in PostScript, HPGL, or Tek drawing 
  1511. commands. The use of Tektronix graphics with NCSA Telnet depends 
  1512. upon host programs that can produce graphic images. When these 
  1513. programs run and produce Tektronix 4014 graphics commands, NCSA 
  1514. Telnet automatically switches into graphics mode and does the 
  1515. drawing. 
  1516.  
  1517. This chapter describes steps in preparing to emulate the Tektronix 
  1518. 4014 and how to use the Graphics menu.
  1519.  
  1520.  
  1521.  
  1522. BEFORE YOU BEGIN TEKTRONIX EMULATION
  1523.  
  1524.  
  1525. Initializing a Plotter
  1526.  
  1527. If you will be plotting directly to a plotter, the communications 
  1528. port for the plotter must be initialized before you run NCSA 
  1529. Telnet. This is done using the DOS mode command. See the DOS 
  1530. manual and the plotter manual for examples.
  1531.  
  1532.  
  1533. Configuration File Settings
  1534.  
  1535. The configuration file is used to install the hardware and 
  1536. software configuration for Tektronix graphics. There are several 
  1537. settings you should insert in the configuration file, detailed in 
  1538. Chapter 6, before you use Tektronix emulation.
  1539.  
  1540. 1.    You should include tek=yes in the configuration file to 
  1541. enable graphics operation.
  1542.  
  1543. 2.    The video type is specified with the video parameter in the 
  1544. configuration file. This is the only step required for 
  1545. selecting the video display because all of the screen drivers 
  1546. are included in NCSA Telnet.
  1547.  
  1548. 3.    You should install specific filenames to be used when 
  1549. writing each of the three different kinds of drawing commands. 
  1550. The hpfile parameter selects the file to receive HPGL commands, 
  1551. the psfile option selects the file to receive PostScript 
  1552. drawing commands, and the tekfile option selects the file to 
  1553. receive Tektronix drawing commands. If you do not make any 
  1554. settings here, the default files are hp.out, ps.out, and 
  1555. tek.out.
  1556.  
  1557. 4.    If you want HPGL output to go directly to a plotter that is 
  1558. connected to COM1 rather than to a disk file, add hpfile=com1 
  1559. to your configuration file. Note that COM1 is used without a 
  1560. colon.
  1561.  
  1562.  
  1563.  
  1564. SWITCHING TO AND FROM GRAPHICS MODE
  1565.  
  1566.  
  1567. Graphics Mode
  1568.  
  1569. When host programs produce Tektronix 4014 graphics commands,  NCSA 
  1570. Telnet automatically switches into graphics mode and does the 
  1571. drawing.  The exact command sequence which causes the switch to 
  1572. graphics mode is the Tektronix clear screen command, ESC-FF, which 
  1573. is sometimes written as ESC-CTRL-L. A copy of your text screen is 
  1574. saved while you are in graphics mode.
  1575.  
  1576. The second way to enter graphics mode is to press CTRL-HOME. 
  1577. This key switches from text mode to graphics mode and clears the 
  1578. graphics screen. Host programs that produce Tektronix 4014 
  1579. graphics commands cause the screen to automatically go to graphics 
  1580. mode, so you will not usually need to use CTRL-HOME to switch to 
  1581. graphics manually.
  1582.  
  1583. The third method of starting graphics mode is to re-display the 
  1584. last graphics image. The re-display option is from the Graphics 
  1585. menu, described later in this chapter. At the completion of the 
  1586. re-display command, the screen remains in graphics mode.
  1587.  
  1588.  
  1589. Text Mode
  1590.  
  1591. To return to text mode, press HOME. When you are in graphics 
  1592. mode, HOME will set your display back to text mode and redraw the 
  1593. text screen which was visible before the graphics mode began.  
  1594. There is no host command which automatically returns to text mode. 
  1595. When you are in text mode, HOME has a different function. See 
  1596. Chapter 2 for details.
  1597.  
  1598.  
  1599. GRAPHICS MENU (ALT-G)
  1600.  
  1601.  
  1602. The Graphics menu is started with ALT-G. Figure 5.1 shows the 
  1603. Graphics menu, as it appears with the default file names. The 
  1604. fields in bold can be changed by the user.
  1605.  
  1606.  
  1607. ALT-G                           Graphics menu
  1608. <            Press the appropriate function key or ESC to resume        >
  1609.  
  1610.    F1 - Write postscript to a file called: ps.out
  1611.    F2 - Change postscript output file name
  1612.  
  1613.    F3 - Write HPGL code to a file called: hp.out
  1614.    F4 - Change HPGL output file name
  1615.  
  1616.    F5 - Write Tektronix 4014 codes to a file called: tek.out
  1617.    F6 - Change Tektronix output file name
  1618.  
  1619.         View region is currently: 0,0,4095,3119
  1620.    F7 - Set a new view region (Zoom, Pan)
  1621.    RETURN - draw picture on screen in current zoom factor
  1622.  
  1623.    Enter choice:
  1624.  
  1625. Figure 5.1. Graphics Menu
  1626.  
  1627. From this menu, you press the appropriate function key, or RETURN 
  1628. to redraw the most recently displayed graphics picture.
  1629.  
  1630.  
  1631. Writing Graphics Files to Disk
  1632.  
  1633. To write out graphics images use the Graphics menu. First, the 
  1634. image should be displayed on the screen using host software that 
  1635. generates Tektronix images. NCSA Telnet always keeps the last 
  1636. graphic image in memory. Select one of the options which writes 
  1637. this image to disk. Images are written using the current view 
  1638. region. 
  1639.  
  1640. If you select Tektronix 4014 format, NCSA Telnet writes the image 
  1641. directly to disk and then returns you to your current session. 
  1642. After selecting the HPGL or the PostScript option from the 
  1643. Graphics menu, you are returned to your session while the file is 
  1644. written to disk in the background. After this image has been 
  1645. completely copied from memory to disk, you are notified on the 
  1646. console screen that the process has completed.
  1647.  
  1648.  
  1649. Renaming Graphics Output Files
  1650.  
  1651. If you did not set up alternate files to use in the configuration 
  1652. file and you do not want to use the default filenames hp.out, 
  1653. ps.out, or tek.out, you can change the names before or after 
  1654. writing the file. Use the Graphics menu options to change one of 
  1655. the current file names before writing the image to disk. If you 
  1656. want a name change after writing out the file, use ALT-E to escape 
  1657. to DOS, then use the DOS rename command. Use exit to leave DOS and 
  1658. return to NCSA Telnet.
  1659.  
  1660. A special feature allows you to append the current image to an 
  1661. existing disk file instead of overwriting.  Enter any of the three 
  1662. file names as you would normally, adding a plus (+) to the 
  1663. beginning of the name.  NCSA Telnet takes the plus (+) to indicate 
  1664. that you want to open that file for "append", adding another image 
  1665. to the file.  A filename which does not begin with a plus (+), 
  1666. causes NCSA Telnet to overwrite the file when saving each image.
  1667.  
  1668.  
  1669. Set the Viewing Region (Zoom Factor)
  1670.  
  1671. Another Graphics menu choice lets you set the viewing region, or 
  1672. zoom factor. Any portion of the image can be enlarged and made to 
  1673. fill the screen. Tektronix drawing commands are resolved to a 4096 
  1674. by 3120 pixel resolution. They start with 0,0 in the lower left, 
  1675. and go to 4095, 3119 in the upper right. 
  1676.  
  1677. The default view region for NCSA Telnet is (0, 0, 4095, 3119), 
  1678. which is the full image. Figure 5.1 has examples of possible 
  1679. viewing regions that you can use.
  1680.  
  1681.                                               
  1682.  
  1683. Figure 5.2. Sample Viewing Regions
  1684.  
  1685. Redraw Last Image
  1686.  
  1687. The Graphics menu option, Redraw Last Image, is used when you want 
  1688. to review the image that is currently in memory. This option 
  1689. always zooms and enlarges the image according to the view region 
  1690. that is visible. The selected view region always fills the screen 
  1691. so you can see more detail.
  1692.  
  1693. This command leaves you in graphics mode, so press HOME if you 
  1694. want to return to text mode.
  1695.  
  1696.  
  1697.  
  1698. PLOTTING A STORED FILE
  1699.  
  1700.  
  1701. If you have used the Graphics menu to store a file of HPGL drawing 
  1702. commands, the DOS copy command can send those commands to an 
  1703. attached plotter (which is connected to COM1 in this example).
  1704.  
  1705. C:> copy filename.out com1 
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715. CHAPTER 6
  1716.  
  1717. INSTALLATION AND CONFIGURATION
  1718.  
  1719.  
  1720.  
  1721. CHAPTER OVERVIEW
  1722.  
  1723.  
  1724. This chapter contains information for system administrators (and 
  1725. other experienced users) to use in installing and customizing a 
  1726. system. The chapter describes how to install NCSA Telnet, change 
  1727. the configuration file, the domain name lookup, how to protect FTP 
  1728. transfers with passwords, and compatibility issues.
  1729.  
  1730.  
  1731.  
  1732. INSTALLING THE DISTRIBUTION FILES
  1733.  
  1734.  
  1735. There are three files required for the standard configuration of 
  1736. NCSA Telnet. The combination of these with the use of the DOS path 
  1737. command allows you to call up NCSA Telnet from any subdirectory on 
  1738. your PC. 
  1739.  
  1740. TELNET.BAT
  1741.  
  1742. This batch file begins the execution of NCSA Telnet. It must be in some
  1743. directory that is in your DOS path. It contains the locations of the
  1744. TELBIN.EXE and CONFIG.TEL files. You must update this batch file (with any
  1745. standard editor) when you change the location of TELBIN.EXE or CONFIG.TEL.
  1746.  
  1747. TELBIN.EXE
  1748.  
  1749. This is the program itself. It can be in any directory. The TELNET.BAT file
  1750. calls up this program when it runs.
  1751.  
  1752. CONFIG.TEL
  1753.  
  1754. This is the configuration file that contains your PC's IP address, the kind
  1755. of Ethernet hardware that you are using, and other information about your
  1756. network. Gateways, nameservers, and setup information are stored here. The
  1757. TELNET.BAT file tells TELBIN.EXE where it can find this file on your disk.
  1758.  
  1759.  
  1760. Sample Configuration
  1761.  
  1762. Suppose you want to install NCSA Telnet in a directory called 
  1763. \ncsa on your hard disk drive, drive C. Copy the TELBIN.EXE and 
  1764. CONFIG.TEL files to C:\ncsa. Suppose also that you have a 
  1765. particular directory C:\bat, which you use to store commonly used 
  1766. batch files. Your DOS path (see DOS manual) contains an entry for 
  1767. C:\bat already. Copy the TELNET.BAT file into C:\bat. You must now 
  1768. edit the TELNET.BAT file to update the locations of the TELBIN.EXE 
  1769. and CONFIG.TEL files. When finished, it should look something like 
  1770. this:
  1771.  
  1772. if .%1 == . goto defh
  1773. c:\ncsa\telbin -h c:\ncsa\config.tel %1 %2 %3 %4 %5
  1774. goto exith
  1775. :defh
  1776. c:\ncsa\telbin -h c:\ncsa\config.tel ncsab
  1777. :exith
  1778.  
  1779. This batch file calls up TELBIN.EXE at a known location and passes 
  1780. it the -h parameter, indicating the location of the CONFIG.TEL 
  1781. file. In addition to the file locations, the fifth line indicates 
  1782. which machine NCSA Telnet should connect to by default.
  1783.  
  1784.  
  1785. Required Configuration Information
  1786.  
  1787. To set up a new configuration file, you will need a standard text 
  1788. editor. The template provided with NCSA Telnet is set up to 
  1789. reflect commonly used default values. It may be worth the time to 
  1790. go through the list of configuration options in this chapter and 
  1791. fine-tune your configuration to match your local computing 
  1792. situation more closely. In the meantime, the following fields in 
  1793. the configuration file must be installed for NCSA Telnet to 
  1794. operate.
  1795.  
  1796.  
  1797. myip=192.17.20.10
  1798.  
  1799. You must provide a unique IP address for 
  1800. each machine on your network. This must be 
  1801. installed in the configuration file of 
  1802. each computer.
  1803.  
  1804. netmask=255.255.255.0
  1805.  
  1806. Subnet mask, in decimal. This field is 
  1807. required if you are using subnets on your 
  1808. network. 
  1809.  
  1810. hardware=3C501
  1811.  
  1812. NCSA Telnet can support several different 
  1813. brands of Ethernet adapters. Each brand 
  1814. has its own unique identifier which must 
  1815. be set for the hardware parameter. See the 
  1816. hardware section in this chapter for a 
  1817. complete list of settings. Most brands 
  1818. also require address and ioaddr to be set.
  1819.  
  1820. video=ega
  1821.  
  1822. If you wish to use the Tektronix graphics 
  1823. options, you must provide the correct 
  1824. screen type. Incorrectly installed, this 
  1825. can crash NCSA Telnet. The alternative is 
  1826. to install the tek=no option. Legal types 
  1827. are cga, ega, hercules, no9.
  1828.  
  1829. gateway=1
  1830.  
  1831. If you are going to be using gateways to 
  1832. reach other networks, at least one machine 
  1833. must be designated as a gateway, using 
  1834. this gateway option after the name field. 
  1835. The entry for each gateway must include a 
  1836. hostip field, according to the 
  1837. configuration file directions in this 
  1838. chapter.
  1839.  
  1840.  
  1841. The TELNET.BAT File
  1842.  
  1843. The actual .exe file that the PC executes is not named telnet.exe. 
  1844. A batch file called TELNET.BAT loads the software in several steps 
  1845. that are normally transparent to you. Here is a typical entry in 
  1846. TELNET.BAT: 
  1847.  
  1848. C:>\apps\telbin -h c:\apps\config.tel %1 %2 %3 %4
  1849.  
  1850. The TELNET.BAT file, which must be in the DOS path, specifies 
  1851. completely where the program is, and where the configuration file 
  1852. is to be found. There may also be a default machine name that the 
  1853. system connects to when you do not explicitly specify one.
  1854.  
  1855.  
  1856. Command Line Options
  1857.  
  1858. Telnet goes through two stages as you load it. The TELNET.BAT file 
  1859. must be in the DOS path so it can be found first. In the batch 
  1860. file, the location of the TELBIN.EXE file and any command line 
  1861. defaults are used to call up the program in the next stage. Many 
  1862. command line arguments are included for you in the batch file, 
  1863. TELNET.BAT; you add others when you run the telnet batch file. 
  1864. This is a full description of those options. The syntax for 
  1865. loading NCSA Telnet with options is:
  1866.  
  1867. C:\ > telnet [options] [machine1 machine2 ...]
  1868.  
  1869. The options must precede the list of machine names on the command 
  1870. line. Options can be in any order; parameters on options are 
  1871. required. There must be one space between the options and between 
  1872. each option and the parameter for that option. The options are:
  1873.  
  1874.  
  1875. ?
  1876.  
  1877. Shows command line options. This causes NCSA 
  1878. Telnet to display a summary version of the 
  1879. command line options instead of initiating the 
  1880. program. 
  1881.  
  1882. -c colorcode
  1883.  
  1884. Sets the default color for screens. The 
  1885. colorcode string is six digits long and follows 
  1886. the coding scheme documented later in this 
  1887. chapter.
  1888.  
  1889. -h filename
  1890.  
  1891. Specifies where to find the configuration file. 
  1892. Normally, this option is included in TELNET.BAT, 
  1893. and you never have to use it explicitly. If the 
  1894. configuration file is not specified there or on 
  1895. the command line, there must be a file named 
  1896. CONFIG.TEL in the default directory. If a 
  1897. suitable configuration file cannot be found 
  1898. according to these rules, NCSA Telnet 
  1899. terminates. NOTE: filename should include a 
  1900. pathname. For example, 
  1901.  
  1902.             C:\bat\config.tel
  1903.  
  1904. -s
  1905.  
  1906. Enters server mode. NCSA Telnet waits for 
  1907. external FTP and rcp requests. It allows you to 
  1908. leave your PC and access files there from a 
  1909. remote machine. 
  1910.  
  1911. -t
  1912.  
  1913. Disables direct writes to the screen. Without 
  1914. the -t option, NCSA Telnet defaults to writing 
  1915. directly to screen memory. This greatly enhances 
  1916. the screen speed, but makes NCSA Telnet 
  1917. incompatible with Topview, Microsoft Windows, 
  1918. and other windowing systems. To make NCSA Telnet 
  1919. completely compatible with BIOS-level programs, 
  1920. use the -t option. This option can be 
  1921. permanently installed in the TELNET.BAT file or 
  1922. the CONFIG.TEL file (bios option).
  1923.  
  1924.  
  1925.  
  1926. THE CONFIGURATION FILE
  1927.  
  1928.  
  1929. Overview of the Configuration File
  1930.  
  1931. The configuration file replaces the hosts file of NCSA Telnet 
  1932. Version 1.2. This file contains information on local operating 
  1933. parameters (such as which type of graphics screen your PC has, and 
  1934. your IP number), plus a list of commonly accessed hosts and 
  1935. optional network tuning parameters for each of those hosts.
  1936.  
  1937. The configuration file is accessed once when the program is 
  1938. initiated and is not used again. All of the machine names are read 
  1939. into memory, so it may save memory to limit the number of 
  1940. computers you specify in the file. 
  1941.  
  1942. The configuration file is typically named CONFIG.TEL. If this file 
  1943. is in the default directory, it will be found automatically, but 
  1944. the use of the -h flag in the TELNET.BAT file is recommended. 
  1945.  
  1946.  
  1947. Syntax for Entries in the Configuration File
  1948.  
  1949. The configuration file is a list of keywords and values for those 
  1950. keywords. The one overall requirement for the entries in the file 
  1951. is that they alternate, keyword then value, keyword then value, 
  1952. and so on. There are many different formats possible using any of 
  1953. the allowable delimiters. The delimiters are the colon (:), 
  1954. semicolon (;), equal sign (=), and any of the whitespace 
  1955. characters. To include delimiters in a value field, enclose the 
  1956. field in double quotes. Quotes cannot be a part of the actual data 
  1957. field. Wherever a pound sign (#) is found, everything from there 
  1958. to the end of line is a comment. Though multiple formats can be 
  1959. used in the same file, you will probably want to find and keep a 
  1960. consistent format. For example, each of the entries in Figure 6.1 
  1961. specify the same information. 
  1962.  
  1963. Note that example #3 is not a recommended format, but is included 
  1964. to show how strange an entry may look.
  1965.  
  1966.     name=nic      # comment field to end of line ->
  1967.     host=sri-nic.arpa
  1968.     hostip=10.0.0.51
  1969.     scrollback=300
  1970.     contime=60
  1971.  
  1972. - - - - - -Example #1- - - - - - - - - 
  1973.  
  1974.  
  1975.  
  1976.     name=nic; host=sri-nic.arpa; hostip="10.0.0.51"; scrollback=300; contime=60
  1977.  
  1978. - - - - - -Example #2- - - - - - - - - 
  1979.  
  1980.  
  1981.  
  1982.     name     
  1983.     nic
  1984.     host sri-nic.arpa : hostip=10.0.0.51; scrollback=300; contime:60
  1985.  
  1986. - - - - - - Example #3- - - - - - - - - 
  1987.  
  1988.  
  1989. Figure 6.1.  Displaying the Same Information in Different Entry Formats
  1990.  
  1991.  
  1992.  
  1993. PC Information Entries in the Configuration File
  1994.  
  1995. The first entries in the configuration file are the PC environment 
  1996. entries. They specify what types of hardware are to be used, names 
  1997. of graphics output files, and network configuration information. 
  1998. Here is the list:
  1999.  
  2000.  
  2001. myip=10.0.0.51
  2002.  
  2003. This is the IP address to use for the PC. 
  2004. This number must contain all four parts of 
  2005. the IP address. This field is required.
  2006.  
  2007. myip=RARP
  2008.  
  2009. This is a special form of the myip entry. 
  2010. Setting myip to RARP will cause NCSA 
  2011. Telnet to query a RARP server to get its 
  2012. IP address. See the section on RARP in 
  2013. this chapter.
  2014.  
  2015. netmask=255.255.255.0
  2016.  
  2017. This is the subnet mask for your local 
  2018. network. It is optional for networks 
  2019. without subnets.
  2020.  
  2021. arptime=3
  2022.  
  2023. Specify how long to try to reach a host on 
  2024. the local wire, in seconds. A value of 2 
  2025. works fine for the network at NCSA, but 
  2026. larger values may be needed for hosts that 
  2027. are slow to respond. Smaller values are 
  2028. more convenient to use.
  2029.  
  2030. domain="ncsa.uiuc.edu"
  2031.  
  2032. This entry in the configuration file 
  2033. affects hostname lookups which are sent to 
  2034. the domain nameserver. All names which do 
  2035. not contain a period have the default 
  2036. domain appended before the nameserver 
  2037. request goes out. If the hostname you type 
  2038. contains a period, then the name is 
  2039. unmodified before NCSA Telnet sends it to 
  2040. the nameserver. There is no "ring-down" or 
  2041. multiple lookup feature to try more than 
  2042. one form of the name.
  2043.  
  2044. domaintime=2
  2045.  
  2046. Time in seconds to wait between the first 
  2047. domain lookup and the second. If you only 
  2048. have one nameserver, then this is the same 
  2049. as a simple timeout. If you want to rotate 
  2050. nameservers quickly because the first one 
  2051. may be down, set this to a smaller number. 
  2052. To force a larger number of retries, set 
  2053. this to a smaller number. To wait longer 
  2054. for a domain response, increase this 
  2055. value.
  2056.  
  2057. domainretry=4
  2058.  
  2059. Number of times to query domain 
  2060. nameserver(s). Each time a retry is sent, 
  2061. the timeout value (above) is doubled. Each 
  2062. time a retry occurs, NCSA Telnet tries the 
  2063. next nameserver, wrapping around to the 
  2064. first nameserver when there are no more.
  2065.  
  2066. tek=yes    
  2067.  
  2068. There is no overhead to unused Tektronix 
  2069. graphics emulation, but you may wish to 
  2070. disable graphics support. tek=no will 
  2071. disable Tektronix graphics emulation.
  2072.  
  2073. video=ega
  2074.  
  2075. Tektronix 4014 graphics emulation is 
  2076. included in NCSA Telnet for a variety of 
  2077. video devices. Supported are: hercules 
  2078. (Hercules monochrome graphics), cga (IBM 
  2079. and compatibles original Color Graphics 
  2080. Adapter), ega (IBM Enhanced Graphics 
  2081. Adapter and compatibles), and no9 (Number 
  2082. Nine Computer's Revolution 512 x 8 board).
  2083.  
  2084. bios=no
  2085.  
  2086. NCSA Telnet has two screen-writing modes. 
  2087. One is direct-to-screen (bios=no) which is 
  2088. considerably faster on most machines. The 
  2089. other uses BIOS (bios=yes) and follows the 
  2090. IBM BIOS conventions at all times. BIOS 
  2091. mode makes NCSA Telnet compatible with 
  2092. popular windowing systems and can reduce 
  2093. the amount of flicker and snow on the 
  2094. screens of IBM CGA-equipped systems.
  2095.  
  2096. hardware=3C501    
  2097.  
  2098. NCSA Telnet can support several different 
  2099. brands of Ethernet adapters. Each brand 
  2100. has its own unique identifier which must 
  2101. be set for the hardware parameter. See the 
  2102. hardware section in this chapter for a 
  2103. complete list of settings.
  2104.  
  2105. interrupt=3
  2106.  
  2107. There are several choices for interrupt 
  2108. vector on the 3COM 3C501 Etherlink board. 
  2109. NCSA Telnet defaults to IRQ3, but can be 
  2110. set to use different interrupts by 
  2111. indicating the interrupt number here. 
  2112. Match this number with the interrupt 
  2113. setting from your Etherlink board.
  2114.  
  2115. address=d000
  2116.  
  2117. This is the segment address of the 
  2118. Ethernet board's shared memory, entered 
  2119. as four hex digits. This only applies to 
  2120. boards that have jumpers or registers 
  2121. which can be used to set the shared 
  2122. memory address. After setting the board's 
  2123. jumpers to a particular value, use the 
  2124. address parameter to configure NCSA 
  2125. Telnet with the same setting. d000 (hex) 
  2126. is a common address to use and it rarely 
  2127. conflicts with other boards.
  2128.  
  2129. ioaddr=360
  2130.  
  2131. This is the I/O base address of the 
  2132. Ethernet board in hex. Some Ethernet 
  2133. boards have selectable I/O addresses. 
  2134. These generally range from 200 to 400 
  2135. (hex) and must be entered as two, three, 
  2136. or four digits.
  2137.  
  2138. ftp=yes
  2139.  
  2140. FTP serving is enabled by default. Access 
  2141. to your PC can be controlled by the FTP 
  2142. password file. To disable FTP serving 
  2143. completely, change this line to ftp=no.
  2144.  
  2145. rcp=yes    
  2146.  
  2147. rcp serving is enabled by default. To 
  2148. disable rcp serving, change this line to 
  2149. rcp=no.
  2150.  
  2151. capfile=
  2152.  
  2153. Specify a name for the capture file. For 
  2154. example,
  2155.  
  2156.     capfile ="c:\temp\myfile"
  2157.  
  2158.     When you capture to disk, all data is 
  2159. appended to this file. If no name is 
  2160. included in the configuration file, 
  2161. capfile is used by default.
  2162.  
  2163. capfile=prn
  2164.  
  2165. Specifies that the printer device (PRN) 
  2166. should be used for the capture file.
  2167.  
  2168. hpfile=hp.out
  2169.  
  2170. Tektronix graphics can be dumped to a file 
  2171. in several formats from the Graphics menu. 
  2172. When you write out HPGL (HP plotter) 
  2173. codes, this file name is used. For 
  2174. example,
  2175.  
  2176.     hpfile="c:\hpgrafs\hp.out"
  2177.  
  2178.     The default is hp.out in the current 
  2179. directory.
  2180.  
  2181. hpfile=COM1
  2182.  
  2183. With an HP plotter hooked up to your PC, 
  2184. HPGL plotter codes can be sent directly to 
  2185. the plotter. Use the mode command to 
  2186. preconfigure the serial port first.
  2187.  
  2188. psfile=ps.out
  2189.  
  2190. PostScript commands can be printed by 
  2191. several types of available laser printers. 
  2192. NCSA Telnet's PostScript output has been 
  2193. tested on the Apple (Sun) LaserWriter, 
  2194. which is connected to Sun workstations. 
  2195. The default filename is ps.out in the 
  2196. current directory.
  2197.  
  2198. tekfile=tek.out
  2199.  
  2200. Tektronix 4014 graphics commands are a 
  2201. very compact way to store a Tektronix 
  2202. graphics image. This option specifies the 
  2203. filename to use when you write Tektronix 
  2204. codes to disk. The default name is 
  2205. tek.out.
  2206.  
  2207. passfile=    
  2208.  
  2209. Specify the file in which FTP usernames 
  2210. and passwords can be found. For example,
  2211.  
  2212.     passfile="c:\bat\ftppass"
  2213.     There is no default name for this file. If 
  2214. the file is specified, then FTP will 
  2215. require a username and password for all 
  2216. attempted FTP connections. If the file is 
  2217. not specified, then there is no password 
  2218. checking for FTP. Use the program 
  2219. TELPASS.EXE to encrypt new passwords. See 
  2220. the FTP Password Protection section later 
  2221. in this chapter.
  2222.  
  2223.  
  2224.  
  2225.  
  2226. Host-Specific Parameters of the Configuration File
  2227.  
  2228. Following the PC configuration options, you may specify zero or 
  2229. more hosts, and host-specific information for each host. By making 
  2230. the host entries in the configuration file, you can specify color, 
  2231. backspace, scrollback, connection timeout, and several tuning 
  2232. parameters for each host. You may want to have more than one 
  2233. session name associated with a single computer, such as purple 
  2234. cray and red cray with different screen colors to fit your mood of 
  2235. the day.
  2236.  
  2237. Typically, the first host listed will be name=default, which 
  2238. stores the default values for the other hosts. Any keyword listed 
  2239. under later hosts will override the default setting for that host 
  2240. session. 
  2241.  
  2242. NOTE: The keyword name is special because it separates entries.
  2243.  
  2244. The parameters following name up to the next keyword name are all 
  2245. associated with the session name. The parameters are installed 
  2246. whenever a connection is opened with that session name.
  2247.  
  2248.  
  2249. name=nic
  2250.  
  2251. The name that you want to appear on the 
  2252. bottom line of the screen when the 
  2253. connection opens. It is the primary name 
  2254. associated with a list of parameters. It 
  2255. is common to have more than one session 
  2256. name for a host, each with different 
  2257. parameters, perhaps with different colors 
  2258. or different amounts of scrollback. This 
  2259. parameter is required because it separates 
  2260. entries.
  2261.  
  2262. host=sri-nic.arpa
  2263.  
  2264. This is the hostname or alternate name. If 
  2265. you want to associate both a session name 
  2266. and a hostname with a particular set of 
  2267. parameters, you may include both. Note 
  2268. that the name parameter is required, while 
  2269. the host parameter is optional. The rule 
  2270. of thumb is: When you have only a 
  2271. hostname, insert it as name=hostname. If 
  2272. you have both a session name and a 
  2273. hostname, enter both name=sessionname  and 
  2274. host=hostname. When you want to open a new 
  2275. connection, either hostname or sessionname 
  2276. works.
  2277.  
  2278. hostip=10.0.0.51
  2279.  
  2280. This is the IP address of the host. If 
  2281. this is not present, the domain nameserver 
  2282. must be queried to get the IP number of 
  2283. the host. For efficiency, include the IP 
  2284. addresses of all commonly accessed hosts. 
  2285. IP addresses of gateways and nameservers 
  2286. must be in the configuration file. 
  2287.  
  2288. copyfrom=nic
  2289.  
  2290. The copyfrom parameter is probably the 
  2291. most important one. It causes all 
  2292. unspecified parameters to be copied from a 
  2293. previous session name. Note that the 
  2294. session name which you want to reference 
  2295. with copyfrom must appear before the 
  2296. session name that uses a copyfrom 
  2297. directive. Parameters that are specified 
  2298. for a session name along with a copyfrom 
  2299. directive override that copyfrom 
  2300. directive.
  2301.  
  2302. gateway=1    
  2303.  
  2304. This specifies the gateway precedence for 
  2305. this host. To reach hosts not connected to 
  2306. your local network, you must have at least 
  2307. one gateway entry. The hostip keyword must 
  2308. be present for this host. Gateway numbers 
  2309. must start at 1 and increase by ones. 
  2310. Gateway 1 has the highest precedence, but 
  2311. the first gateway to respond to an ARP 
  2312. will be used. ICMP redirects can affect 
  2313. how gateways are used, but not 
  2314. permanently.
  2315.  
  2316. nameserver=1
  2317.  
  2318. This specifies the nameserver precedence 
  2319. for this host. NCSA Telnet uses UDP to 
  2320. query domain nameservers for machinenames 
  2321. that are not in the configuration file. 
  2322. Each machine that is to be used as a 
  2323. nameserver must have this keyword listed. 
  2324. The hostip keyword must be present for 
  2325. this host. Nameserver 1 has the highest 
  2326. precedence. Nameserver numbers must start 
  2327. at 1 and increase by ones.
  2328.  
  2329.  
  2330. nfcolor=white        normal, foreground
  2331. nbcolor=black        normal, background
  2332. rfcolor=black        reverse, foreground
  2333. rbcolor=white        reverse, background
  2334. ufcolor=blue        underline, foreground
  2335. ubcolor=black        underline, background
  2336.  
  2337.     These new color options can be used 
  2338. instead of the more complicated color code 
  2339. from previous versions. For each value, 
  2340. specify a string from the following list 
  2341. of colors available on IBM-PC class 
  2342. machines with color displays:
  2343.     black
  2344.     blue (underline on mono screen)
  2345.     green
  2346.     cyan
  2347.     red
  2348.     magenta
  2349.     yellow
  2350.     white
  2351.  
  2352.     The foreground and background colors are 
  2353. combined to create the text appearance on 
  2354. the screen. You may wish to experiment 
  2355. with the Parameter menu (Chapter 3), which 
  2356. interactively allows you to select a color 
  2357. scheme. The previous version's color= 
  2358. entries are still supported.
  2359.  
  2360. scrollback=100
  2361.  
  2362. This specifies the number of lines of 
  2363. scrollback for this session. Be aware that 
  2364. scrollback occupies at least 86 bytes per 
  2365. line saved. There can be a different 
  2366. number of lines of scrollback for each 
  2367. session. Plan your use of scrollback 
  2368. wisely unless you have memory to spare.
  2369.  
  2370. clearsave=yes
  2371.  
  2372. Scrollback is updated when the screen is 
  2373. cleared. When clearing the screen, all of 
  2374. the visible lines are saved into the 
  2375. scrollback region. If you prefer not to 
  2376. have the text saved when the screen 
  2377. clears, set clearsave=no. In the case of 
  2378. host programs which clear the screen one 
  2379. line at a time, the lines are never saved 
  2380. into the scrollback region.
  2381.  
  2382. erase=delete
  2383.  
  2384. This sets the backspace translation for 
  2385. this host. Some hosts prefer the backspace 
  2386. key to be DELETE and some prefer the 
  2387. backspace key to be BACKSPACE. Set this 
  2388. value erase=delete or erase=backspace.
  2389.  
  2390. crmap=4.3BSDCRNUL    
  2391.  
  2392. This is a special compatibility option for 
  2393. 4.3 BSD UNIX. There is now a UNIX bug fix 
  2394. to take care of the problem, but some 
  2395. hosts may still want crnul to be used for 
  2396. end-of-line. The default is crmap=crlf, 
  2397. which sends CRLF when you press RETURN. In 
  2398. line mode, CRLF is always used.
  2399.  
  2400. duplex=half
  2401.  
  2402. This parameter only applies to hosts that 
  2403. negotiate non-echoing mode but do not 
  2404. expect local line editing. All character 
  2405. keys are sent and echoed to the screen 
  2406. immediately. This parameter has no effect 
  2407. in echo mode.
  2408.  
  2409. contime=10
  2410.  
  2411. This is the connection timeout in seconds. 
  2412. When you are making a connection attempt, 
  2413. after this amount of time has elapsed NCSA 
  2414. Telnet gives up on opening the connection 
  2415. and deletes the window. For congested or 
  2416. slow networks, this value should be made 
  2417. larger. 
  2418.  
  2419. retrans=7
  2420.  
  2421. This is the initial retransmit timeout in 
  2422. 18ths of a second. Increasing the value of 
  2423. this parameter may help in reducing the 
  2424. initial burst of retries that is typical 
  2425. of connections with high round-trip times.
  2426.  
  2427. mtu=512
  2428.  
  2429. This is a byte count (1-1024) of the 
  2430. largest amount of data to put in the 
  2431. packets that are sent. If you are sending 
  2432. to the ARPANET you should use mtu=512. If 
  2433. you are sending to local hosts, you should 
  2434. use mtu=1024.
  2435.  
  2436. maxseg=512
  2437.  
  2438. This is a byte count (1-1024) of the 
  2439. largest TCP segment that can be received. 
  2440. This value can control the size of packets 
  2441. that are sent over the connection. 
  2442. Reducing this value can eliminate IP 
  2443. fragmentation that we cannot reassemble. 
  2444. maxseg=512 should force the sending host 
  2445. to never fragment.
  2446.  
  2447. rwin=512
  2448.  
  2449. This is a byte count (1-4096) of the 
  2450. largest size of the TCP window to 
  2451. advertise to other hosts. Unfortunately, 
  2452. some hardware and networks, the 3COM 3C501 
  2453. Etherlink for example, cannot handle 
  2454. receiving back-to-back packets. This 
  2455. requires us to limit the TCP receive 
  2456. window that we advertise to other hosts. 
  2457. For communicating to slower hosts, or when 
  2458. using the other brands of Ethernet boards, 
  2459. a larger window (4096) may work better.
  2460.  
  2461.  
  2462. Converting UNIX /etc/hosts Files
  2463.  
  2464. Included with the distribution is an awk script called newh. Used 
  2465. with the following command under 4.X BSD UNIX, it will convert the 
  2466. /etc/hosts file format into a format compatible with NCSA Telnet's 
  2467. configuration file. Note that domain name lookup should make this 
  2468. operation obsolete, or apply to only a small subset of your 
  2469. /etc/hosts file.
  2470.  
  2471. % awk  -f newh /etc/hosts >config.temp
  2472.  
  2473. After creating this new file, prepend the PC-specific information 
  2474. and download the file to the PC.
  2475.  
  2476.  
  2477.  
  2478. HARDWARE OPTIONS
  2479.  
  2480.  
  2481. Combined Ethernet Drivers
  2482.  
  2483. There is only one distribution program for NCSA Telnet Version 
  2484. 2.2. All of the Ethernet and video device drivers are combined 
  2485. into one executable program. You must use the hardware entry in 
  2486. the configuration file to inform NCSA Telnet which Ethernet board 
  2487. you have installed. Choose from the list of supported Ethernet 
  2488. boards in Table 6.1; the value to use is case insensitive. The 
  2489. requirements for interrupt, address, and ioaddr entries in the 
  2490. configuration file are listed.
  2491. Table 6.1.  Ethernet Boards Supported by NCSA Telnet
  2492.  
  2493. hardware=
  2494.  
  2495. Value        Ethernet Board            Requires
  2496. For PC bus -
  2497. 3C501        3COM 3C501 Etherlink        interrupt,ioaddr
  2498. PCNIC        Ungermann-Bass PC-NIC         address,ioaddr
  2499.         or IBM Baseband adapter
  2500. NI5210        MICOM NI5210             address,ioaddr
  2501. WD8003        Western Digital WD8003E     address,ioaddr
  2502.  
  2503. For PS/2 MCA bus -
  2504. NICps2        Ungermann-Bass NICps/2         address
  2505. 3C523        3COM 3C523 Etherlink/MC     address,ioaddr
  2506.  
  2507.  
  2508.  
  2509. Performance Tuning
  2510.  
  2511. The values of maxseg, mtu and rwin in the configuration file must 
  2512. be set correctly to get maximum data transfer throughput between 
  2513. machines. There are some rules of thumb to use when setting these 
  2514. values.
  2515.  
  2516. %    The maximum reasonable values for these parameters are:
  2517.     rwin=4096
  2518.     mtu=1024
  2519.     maxseg=1024
  2520.  
  2521. %    The best setting for local network use, with a high performance 
  2522. Ethernet board is:
  2523.     rwin=4096
  2524.     mtu=1024
  2525.     maxseg=1024
  2526.  
  2527. %    The best setting for ARPANET use, or any situation with a lot 
  2528. of unknown gateways, but with a high performance Ethernet board is:
  2529.     rwin=4096
  2530.     mtu=512
  2531.     maxseg=512
  2532.  
  2533. %    The setting required for the 3COM 3C501, and any other 
  2534. troublesome network situation, also the most conservative 
  2535. setting, is:
  2536.     rwin=512
  2537.     mtu=512
  2538.     maxseg=512
  2539.  
  2540. rwin specifies what the other computer is allowed to send you at 
  2541. any one time, so it depends mostly upon your local Ethernet board. 
  2542. If the board can handle it, always set rwin=4096. maxseg is used 
  2543. to avoid fragmentation. If you get fragmented packets, lower the 
  2544. value of maxseg for that host until fragmentation stops occurring.
  2545.  
  2546.  
  2547. RARP for Dynamic IP Address Assignment
  2548.  
  2549. myip=RARP
  2550.  
  2551. When this special form of the myip entry is used, NCSA Telnet 
  2552. looks up your local machine's IP address with a broadcast request 
  2553. to the network. The "Reverse Address Resolution Protocol" is used 
  2554. to attempt to translate the local machine's assigned 48-bit 
  2555. Ethernet address to a corresponding IP address. From our tests 
  2556. with the RARP server from Sun Microsystems' SunOS 3.X, the RARP 
  2557. lookup takes about 3 seconds. You must install the 48-bit Ethernet 
  2558. address from each PC in the RARP hosts' tables before RARP will 
  2559. work. The value of arptime, in seconds, multiplied by three, is 
  2560. used for a timeout value. 
  2561.  
  2562. NOTE: Sun's RARP lookup will not work if you have a double-zero 
  2563. in your Ethernet address. Other leading zeros can be dropped as 
  2564. well. Use a single zero, i.e. 8:0:20:1:5a:90, instead of 
  2565. 08:00:20:01:5a:90.
  2566.  
  2567.  
  2568. Interrupts
  2569.  
  2570. When you configure the 3COM hardware, an important option is the 
  2571. choice of interrupt request number (level). 3COM boards arrive set 
  2572. for IRQ3, which corresponds to the PC-DOS definition of the COM2 
  2573. communications port. If you have a port configured as COM2, you 
  2574. cannot set your Ethernet board to IRQ3. Another common value to 
  2575. use is IRQ5, which is the same interrupt that DOS uses for LPT2. 
  2576. Make sure that your PC hardware configuration does not conflict in 
  2577. any way.
  2578.  
  2579. WARNING
  2580.  
  2581. The most common hardware problem is interrupt conflicts. 
  2582. PCs have a limited number of interrupts, and you cannot have two 
  2583. devices which expect to use the same interrupt. PC Ethernet boards 
  2584. almost always consume an interrupt, even though we do not use 
  2585. interrupts for all Ethernet boards. Interrupts are also used by 
  2586. COM ports and LPT ports in your machine. You must check for 
  2587. conflicts.
  2588.  
  2589. Even though it works, it may stop working. Interrupt 
  2590. conflicts don't always show up right away. They are software 
  2591. controlled. If the interrupt on your COM2 port is not activated, 
  2592. it may not conflict with a 3C501 board on IRQ3 until next week 
  2593. when you try to use a modem terminal emulator and then switch to 
  2594. NCSA Telnet. NCSA Telnet might work fine until you try to FTP to 
  2595. your hard disk; then disaster strikes.
  2596.  
  2597. Hard disks use interrupts too. We have traced two serious 
  2598. hard disk problems to interrupt conflicts. IRQ2 is the default 
  2599. setting for some Ethernet boards when they come out of the box. On 
  2600. a PC-AT, this interrupt is used for the second interrupt 
  2601. controller, and a conflict can shut off the whole second 
  2602. controller which includes the hard disk. On the PC/XT and PC 
  2603. compatible computers, IRQ5 is sometimes assigned to the hard disk 
  2604. rather than LPT2. Strange hard disk problems like disk write 
  2605. errors may be caused by the Ethernet conflicting with the hard 
  2606. disk.
  2607.  
  2608. Moral:  Set your Ethernet board to an unused interrupt.
  2609.  
  2610.  
  2611.  
  2612. DOMAIN NAME LOOKUP
  2613.  
  2614.  
  2615. When NCSA Telnet cannot find a name in the configuration file, it 
  2616. can still find the IP number if you are running a domain 
  2617. nameserver. To use the domain system, at least one host must be 
  2618. running the nameserver and the configuration file has a nameserver 
  2619. entry for that host. There may be more than one. If one nameserver 
  2620. fails to respond, the one with the next higher precedence is 
  2621. queried. As soon as a response is received, NCSA Telnet will add 
  2622. its name to the status line and attempt to open a telnet 
  2623. connection. 
  2624.  
  2625.  
  2626. Domain Search Order
  2627.  
  2628. When you enter a name to open a connection, there is a specific 
  2629. search order:
  2630.  
  2631. 1.    The name is looked up as a session name from the 
  2632. configuration file.
  2633.  
  2634. 2.    The name is looked up as a hostname from the configuration 
  2635. file.
  2636.  
  2637. 3.    The name is sent as a domain query to the first nameserver.
  2638.  
  2639. 4.    If the domain request times out, the query is repeated, but 
  2640. to another nameserver. This is repeated until the maximum 
  2641. number of retries is reached or a response is received.
  2642.  
  2643. With the domain nameserver, the number of hosts in the 
  2644. configuration file can be kept to a minimum. Each host in the 
  2645. configuration file will be a commonly used computer that may have 
  2646. special screen color or scrollback requirements. The IP addresses 
  2647. for rarely used hosts will be accessible if the domain name 
  2648. retrieval system can resolve those hosts.
  2649.  
  2650.  
  2651.  
  2652. FTP PASSWORD PROTECTION
  2653.  
  2654.  
  2655. The presence of the passfile keyword in the configuration file 
  2656. enables FTP password protection. If you have a password file, FTP 
  2657. will not allow any FTP connections to open without a correct 
  2658. username and password. You can have several usernames and 
  2659. individual passwords for each user. The password file can be 
  2660. easily read by typing out the file. The passwords are encrypted, 
  2661. but not with a secure encryption system. Only trusted users should 
  2662. be allowed access to the password file.
  2663.  
  2664. To create or change passwords for users, run a separate program 
  2665. called Telpass. This program reads in the password file so you can 
  2666. add and change users and passwords. There are no special 
  2667. installation instructions for Telpass as it is menu-driven. Start 
  2668. up Telpass from DOS with the name of the password file that you 
  2669. wish to edit.
  2670.  
  2671. C:\ telpass pwfile
  2672.  
  2673. Telpass automatically saves the list of names and passwords when 
  2674. you exit. Just add a passfile option to your configuration file to 
  2675. enable FTP passwords.
  2676.  
  2677.  
  2678.  
  2679. COMPATIBILITY NOTES
  2680.  
  2681.  
  2682. Ping
  2683.  
  2684. NCSA Telnet responds to ping (ICMP echo) requests. This is used by 
  2685. other hosts to determine whether your PC is online.
  2686.  
  2687.  
  2688. VT102
  2689.  
  2690. The VT102 emulator is nearly complete. VT102 features not emulated 
  2691. are double width and double height characters, VT52 mode, origin 
  2692. mode for cursor positioning, and 132 column mode. Included in the 
  2693. emulator are variable spaced tabs, graphics characters, keypad 
  2694. modes, and character attributes. 
  2695.  
  2696.  
  2697. FTP
  2698.  
  2699. The FTP server in NCSA Telnet is close to the DARPA specification 
  2700. of the minimum implementation. Exceptions are:
  2701.  
  2702. %    The command connection does not perform telnet negotiation.
  2703. %    Block mode of FTP is not supported.
  2704. %    Some error conditions may display as command not understood 
  2705. instead of returning more appropriate messages.
  2706.  
  2707. FTP has not been thoroughly tested on low-bandwidth or low-
  2708. reliability networks. It should be most successful on local 
  2709. networks, with unknown throughput for long-haul or satellite 
  2710. networks. 
  2711.  
  2712.  
  2713. Terminate and Stay Resident (TSR) Programs
  2714.  
  2715. Programs such as SideKick from Borland International Inc. take 
  2716. complete control of the PC when they are initiated with key 
  2717. sequences. The use of these programs does not crash NCSA Telnet, 
  2718. but it suspends the network communications capability while the 
  2719. TSR program is active. When network communications are suspended, 
  2720. whether from the ALT-E DOS escape feature or from using TSR 
  2721. programs, it takes the host approximately one minute to decide 
  2722. that your PC has crashed, and then it cuts you off. As long as 
  2723. these programs are used for short (less than 30 seconds) 
  2724. intervals, you should have no problem. 
  2725.  
  2726.  
  2727. Telnet
  2728.  
  2729. The standard telnet protocol has several potential options that 
  2730. can be invoked if both parties of the telnet connection agree. 
  2731. NCSA Telnet refuses most of these options, but accepts the 
  2732. following: echo, option 1; and suppress go ahead, option 3. There 
  2733. are some obscure features of telnet that are not implemented in 
  2734. this version: out-of-band interrupts are not available, go ahead 
  2735. signals do nothing, and telnet acknowledge signals are not 
  2736. acknowledged. If there are any problems with the limitations of 
  2737. NCSA Telnet, please submit a bug report.
  2738.  
  2739.  
  2740. Limitations
  2741.  
  2742. There is a 20-session limit for NCSA Telnet. This is somewhat 
  2743. arbitrary and may be altered if there appears to be a need for it. 
  2744. NCSA Telnet can run out of memory, often before the 20-session 
  2745. limit. You are notified on the screen if this happens.
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.  
  2753. APPENDIX A
  2754.  
  2755. ERROR CONDITIONS
  2756.  
  2757.  
  2758.  
  2759. Most of the error conditions in NCSA Telnet are nonfatal. The most 
  2760. important and common error messages are listed here with a short 
  2761. summary of the symptoms and causes.
  2762.  
  2763. The following messages may appear on your screen during the 
  2764. operation of NCSA Telnet. Any other messages that appear are 
  2765. protocol-specific messages that require additional diagnosis from 
  2766. the system administrator. If a message that is not documented here 
  2767. occurs repeatedly, please contact your system administrator first, 
  2768. and if no solution is found, submit a bug report as included in 
  2769. this manual.
  2770.  
  2771.  
  2772. Cannot find or open hosts file
  2773.  
  2774. Cause:
  2775. NCSA Telnet will not operate without a configuration file that 
  2776. contains the PC's IP address. This file could not be found.
  2777.  
  2778. Solution: 
  2779. The configuration file can be either in the current directory, or 
  2780. it can be specified with the -h parameter on the command line. 
  2781. This is normally customized in TELNET.BAT. Your system 
  2782. administrator should check your installation and make sure the 
  2783. configuration file is there.
  2784.  
  2785.  
  2786. Host machine not in hosts file
  2787.  
  2788. Cause: 
  2789. You have entered a machine name that cannot be found in the 
  2790. configuration file. This usually is caused by a misspelling.
  2791.  
  2792. Solution: 
  2793. Check that the name you entered was spelled correctly. If you want 
  2794. this computer to be accessed by name, add its name and IP address 
  2795. to your configuration file.
  2796.  
  2797.  
  2798. ICMP:    Destination unreachable
  2799.  
  2800. Cause: 
  2801. Another machinePPprobably the gatewayPPhas determined that your 
  2802. message cannot reach its destination from your system.
  2803.  
  2804. Solution: 
  2805. Check the IP address in your configuration file. Notify your 
  2806. system administrator that the gateway cannot connect you to the 
  2807. destination you want to reach. There may be a problem with the 
  2808. gateway.
  2809.  
  2810.  
  2811. ICMP:    Echo requested (ping requested)
  2812.  
  2813. Cause: 
  2814. Someone has "pinged" your machine.
  2815.  
  2816. Solution: 
  2817. No action is required; you are just being notified that a program 
  2818. on another computer has tried to determine if your machine is 
  2819. alive and connected to the network. Your machine answered "yes".
  2820.  
  2821.  
  2822. ICMP:    Redirect, another gateway is more efficient
  2823.  
  2824. Cause: 
  2825. NCSA Telnet is sending packets to a gateway that is reforwarding 
  2826. them onto your local network. You will get one of these messages 
  2827. for each packet until NCSA Telnet adjusts the local tables and 
  2828. automatically switches to the correct gateway.
  2829.  
  2830. Solution: 
  2831. NCSA Telnet responds to these messages and automatically switches 
  2832. to the correct gateway, so you don't have to take any action.  You 
  2833. may want to change the gateway assignments in your configuration 
  2834. file to use a more appropriate gateway.  Some situations will 
  2835. always produce redirects.
  2836.  
  2837.  
  2838. Local HOST or gateway not responding
  2839.  
  2840. Cause: 
  2841. Possible reasons this error occurs are: network problem, a 
  2842. configuration file problem, the computer you want to connect to is 
  2843. down, or the gateway that you need is down.
  2844.  
  2845. Solution: 
  2846. If the computer is on your local network, check to see that the 
  2847. network is up and running. If the computer is not on your local 
  2848. network, check to see if the gateway is up and running. Ask the 
  2849. system administrator to check the specification of the gateway 
  2850. (gateway=) in your configuration file. Check the IP number of the 
  2851. computer that you are trying to connect to. Check to make sure 
  2852. that your computer is attached to the network. Check the integrity 
  2853. of the network cable.
  2854.  
  2855.  
  2856. Memory allocation error, cannot open port
  2857.  
  2858. Cause: 
  2859. Your system ran out of memory. This is the most common barrier to 
  2860. opening more sessions.
  2861.  
  2862. Solution: 
  2863. Log off of some of your sessions or provide more memory in which 
  2864. NCSA Telnet can run. Providing more memory may mean buying more or 
  2865. rearranging your windowing system to allow more memory. NCSA 
  2866. Telnet Version 2.2 requires about 250K of memory plus 15K per 
  2867. session. In addition, scrollback requires 86 bytes per line.
  2868.  
  2869.  
  2870. Network jammed, probable break in wire
  2871.  
  2872. Cause: 
  2873. The PC's Ethernet board could not transmit a packet due to a low-
  2874. level hardware error.
  2875.  
  2876. Solution: 
  2877. The system administrator should ensure that the Ethernet T 
  2878. connector or transceiver is correctly connected to the back of 
  2879. your PC, then check the integrity of the Ethernet wire according 
  2880. to Ethernet specifications. There could be a short circuit in the 
  2881. wire, but the usual cause is that the wire has been disconnected 
  2882. somewhere.
  2883.  
  2884.  
  2885. No internal TCP ports available
  2886.  
  2887. Cause: 
  2888. You are trying to do too many activities at the same time, or some 
  2889. combination of your activities has not closed the TCP sessions 
  2890. correctly. This will happen if you open too many sessions to other 
  2891. computers.
  2892.  
  2893. Solution: 
  2894. Close some of your existing sessions. If necessary, exit the 
  2895. program by logging off of all of the other computers, then restart 
  2896. NCSA Telnet.
  2897.  
  2898.  
  2899. Packet received for invalid port -- reset sent
  2900.  
  2901. Cause: 
  2902. Some other computer is sending you packets that NCSA Telnet does 
  2903. not expect or understand. This often happens when you press ALT-F3 
  2904. to exit NCSA Telnet and then start it back up again. It can happen 
  2905. under a variety of network breakdown conditions.
  2906.  
  2907. Solution: 
  2908. Do not press ALT-F3 to exit NCSA Telnet. If you already have, or 
  2909. some other network breakdown caused the problem, the other 
  2910. computer will eventually time out and stop sending you the extra 
  2911. packets. If you continue to receive them, notify your system 
  2912. administrator.
  2913.  
  2914.  
  2915. Reset received: syn sent
  2916.  
  2917. Cause: 
  2918. The machine to which you are attempting to connect is refusing 
  2919. your telnet connection.
  2920.  
  2921. Solution: 
  2922. Check to see why that machine is not up and running. If it is, 
  2923. check your configuration file to see if you are using the correct 
  2924. IP number.
  2925.  
  2926.  
  2927.  
  2928.  
  2929.  
  2930.  
  2931.  
  2932. APPENDIX B
  2933.  
  2934. NCSA TELNET COMMAND REFERENCE
  2935.  
  2936.  
  2937.  
  2938. Key(s)            Action
  2939.  
  2940. ALT-A            Adds a session
  2941.  
  2942. ALT-N            Next session
  2943.  
  2944. ALT-M            Message screen
  2945.  
  2946. ALT-E            Escapes to DOS shell
  2947.  
  2948. ALT-G            Graphics menu
  2949.  
  2950. ALT-C            Capture file toggled on/off
  2951.  
  2952. ALT-R            Resets VT102 screen
  2953.  
  2954. ALT-H            Help screen
  2955.  
  2956. ALT-T            Starts file transfer as if typed: ftp [internet 
  2957. address]
  2958.  
  2959. ALT-I            Sends internet address to host as if typed
  2960.  
  2961. ALT-S            Skips scroll, jumps ahead
  2962.  
  2963. ALT-P            Changes a parameter; one of: color, capture file 
  2964.             name, backspace, session name, screen mode
  2965.  
  2966. ALT-F3            Aborts NCSA Telnet completely. Strongly discouraged
  2967.  
  2968. ALT-Y            Interrupts process
  2969.  
  2970. ALT-O            Aborts output
  2971.  
  2972. ALT-Q            Are you there?
  2973.  
  2974. ALT-U            Erases line
  2975.  
  2976. ALT-K            Erases character
  2977.  
  2978. Key(s)            Action
  2979.  
  2980. ALT-X            Closes connection
  2981.  
  2982. HOME            Exits graphics mode
  2983.  
  2984. CTRL-HOME        Clears/enters graphics mode
  2985.  
  2986. SCR LOCK        Pauses/restarts screen (do not use CTRL-NUM LOCK)
  2987.  
  2988. SCR LOCK        Enters/exits scrollback mode
  2989.  
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996. APPENDIX C
  2997.  
  2998. CONFIGURATION FILE SUMMARY
  2999.  
  3000.  
  3001. This appendix contains a quick reference list of the keyword values 
  3002. which are allowed in a NCSA Telnet configuration file.  There are two 
  3003. sections, the first list contains the PC configuration entries which 
  3004. apply to the overall program or to all sessions.  The second section 
  3005. contains the list of attributes which may be assigned to individual 
  3006. sessions.  Each keyword has an example value and a one-line summary of 
  3007. its purpose.  For details on allowed values, see Chapter 6, 
  3008. Installation and Configuration.  A template CONFIG.TEL file is included 
  3009. on the distribution disk.
  3010.  
  3011.  
  3012.  
  3013. LOCAL CONFIGURATION
  3014.  
  3015.  
  3016. myip=10.0.0.51        IP address to use for the PC.
  3017. myip=RARP        Query the RARP server for my IP address.
  3018. netmask=255.255.255.0    Subnet mask for your local network. 
  3019. arptime=3        Local network timeout for ARP requests.
  3020. domain="ncsa.uiuc.edu"    Default domain suffix.
  3021. domaintime=2        Domain lookup timeout per retry.
  3022. domainretry=4        Number of times to query domain nameserver(s).
  3023. tek=yes            Enable/Disable Tektronix graphics mode.
  3024. video=ega        Video display to use: cga, ega, hercules, no9.
  3025.     
  3026. bios=no            Use BIOS or write directly to screen.
  3027. hardware=3C501        Type of Ethernet hardware to use: 
  3028.             3C501, PCNIC, NI5210, WD8003, 3C523, NICPS2
  3029. interrupt=3        Interrupt number for 3C501 board.
  3030. address=d000        Segment address of the Ethernet board's shared 
  3031.             memory in hex.
  3032. ioaddr=360        I/O base address of the Ethernet board in hex.
  3033. ftp=yes            FTP server enable/disable, default is yes.
  3034. rcp=yes            rcp server enable/disable, default is yes.
  3035. capfile="\mycapture"    Specify a name for the capture file.
  3036. capfile=prn        Capture file is printer device (PRN).
  3037. hpfile=hp.out        HPGL codes for graphics go to this filename.
  3038. hpfile=COM1        HP plotter attached to COM1.
  3039. psfile=ps.out        Filename for PostScript output.
  3040. tekfile=tek.out        Filename for Tektronix 4014 codes when output 
  3041. to disk.
  3042. passfile="\mypasswd"    Filename for FTP usernames and passwords.
  3043.  
  3044.  
  3045.  
  3046. HOST-SPECIFIC PARAMETERS
  3047.  
  3048.  
  3049. NOTE: The keyword name is special because it separates entries.
  3050.  
  3051. name=nic        Session name, separates lists of parameters for 
  3052.             sessions.
  3053. host=sri-nic.arpa    Hostname or alternate name. Usually full domain name.
  3054. hostip=10.0.0.51    IP address of the host. Required if nameserver not used.
  3055. copyfrom=nic        Copy all missing parameters from a previous session.
  3056. gateway=1        Gateway precedence, starts at 1, goes up by ones.
  3057. nameserver=1        Nameserver precedence, starts at 1, goes up by ones.
  3058. nfcolor=white        Normal, foreground color.
  3059. nbcolor=black        Normal, background color.
  3060. rfcolor=black        Reverse, foreground color.
  3061. rbcolor=white        Reverse, background color.
  3062. ufcolor=blue        Underline, foreground color.
  3063. ubcolor=black        Underline, background color.
  3064.             Black, blue, green, cyan, red, magenta, yellow, or
  3065.             white.
  3066. scrollback=100        Number of lines of scrollback for this session.
  3067. clearsave=yes        Save cleared screen into scrollback region.
  3068. erase=delete        BACKSPACE key is set to "backspace" or "delete".
  3069. crmap=4.3BSDCRNUL    Use a different set of codes for carriage return.
  3070. duplex=half        Local echo, but sends all characters immediately.
  3071. contime=10        Connection timeout in seconds.
  3072. retrans=7        Initial retransmit timeout in 18ths of a second.
  3073. mtu=512            Limit on outgoing packet size.
  3074. maxseg=512        Limit on incoming packet size, given as TCP MSS option.
  3075. rwin=512        TCP receive window, can make up for low performance
  3076.             hardware.
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083.  
  3084. BUGS AND SUGGESTIONS
  3085.  
  3086.  
  3087.  
  3088. We would appreciate notification of any bugs you have found and 
  3089. suggestions that you might have.  You may send an electronic mail 
  3090. message to (Internet format):
  3091.  
  3092. telbug@ncsa.uiuc.edu
  3093.  
  3094. or send this report by mail to:
  3095.  
  3096. NCSA TELBUG 
  3097. 152 Computing Applications Building 
  3098. 605 E. Springfield Ave. 
  3099. Champaign, Illinois 61820 
  3100.  
  3101. Name:
  3102.  
  3103. Installation:
  3104.  
  3105. Address (Electronic):
  3106.  
  3107.  
  3108. Address (U.S. Mail):
  3109.  
  3110.  
  3111.  
  3112.  
  3113.  
  3114. Telephone:  (        )             -                
  3115.  
  3116. Version of NCSA Telnet and IBM System software:
  3117.  
  3118. Description of Problem/Suggestion:
  3119.  
  3120.  
  3121.  
  3122.