Tftp

»  Home

» Software
» Papers & Training
» Java

Tftp is the Trivial File Transfer Protocol. It is normally used to transfer files to a machine at the request of other low-level protocols. This distribution currently only contains the client.

This is wholly untested software! Use at your own risk.

Installation instructions

  • create a tftp directory
  • cd to your tftp directory
  • Download and byte transfer to your e3000 tftp.tar.Z
  • Extract as: uncompress tftp.tar.Z; tar xvf tftp.tar.Z


Download, Compile, and Test run

  1. tftp requires the libbsd package. It also requires privmode, cap=PM.
  2. Download the relative-path, compressed tar package.
  3. Upload the file to your HP3000 using either ftp or other binary transfer method.
  4. ftp> bin
    200 Type set to I.
    ftp> quote site posix on
    200 POSIX command ok.
    ftp> put tftp.tar.Z
    200 PORT command ok.
    150 File: tftp.tar.Z opened; data connection will be opened
    226 Transfer complete.
    ftp: 20781 bytes sent in 0.00Seconds 20781000.00Kbytes/sec.
    ftp>    
  5. Uncompress and extract
  6. /KEVENM/POSIX#ls -l tftp*
    -rwxrwx---   1 MGR.KEVENM        KEVENM     20992 May 15 11:54 tftp.tar.Z
    /KEVENM/POSIX#          
    /KEVENM/POSIX#uncompress tftp*
    /KEVENM/POSIX#
    /KEVENM/POSIX#ls -l tftp*
    -rwxrwx---   1 MGR.KEVENM        KEVENM     51321 May 15 11:54 tftp.tar
    /KEVENM/POSIX#
    /KEVENM/POSIX#tar -xopf tftp*
    tar: blocksize = 20
    /KEVENM/POSIX#
    /KEVENM/POSIX#cd tftp
    /KEVENM/POSIX/tftp#ls -l
    total 79
    -rw-r--r--   1 MGR.KEVENM        KEVENM     13750 Feb 28  2001 main.c
    -rw-r--r--   1 MGR.KEVENM        KEVENM      1189 May 13 08:19 makebsd.inc
    -rw-r--r--   1 MGR.KEVENM        KEVENM       179 May 13 07:44 makefile
    -rw-r--r--   1 MGR.KEVENM        KEVENM      5004 Feb 28  2001 tftp.1
    -rw-r--r--   1 MGR.KEVENM        KEVENM     10459 May 12 06:31 tftp.c
    -rw-r--r--   1 MGR.KEVENM        KEVENM      8424 Feb 28  2001 tftpsubs.c
    /KEVENM/POSIX/tftp#     
  7. Compile
  8. Note: if you have the GNU gmake installed, you must use the HP provided make.

    Note: the code is non-ANSI compliant; need to remove the "-Aa" switch from the MPE variable CCOPTS, if set.
    /KEVENM/POSIX/tftp#make
    
       You must use  /bin/make  or /SYS/HPBIN/MAKE
    
    /KEVENM/POSIX/tftp#/bin/make
    
    ** Removed [CCOPTS = -Aa +e +w1]
    
    c89 -c -O -D_MPEXL_SOURCE -D_POSIX_SOURCE -D_SOCKET_SOURCE -D_PROTOTYPES -I/usr/
    include/bsd main.c
    c89 -c -O -D_MPEXL_SOURCE -D_POSIX_SOURCE -D_SOCKET_SOURCE -D_PROTOTYPES -I/usr/
    include/bsd tftp.c
    c89 -c -O -D_MPEXL_SOURCE -D_POSIX_SOURCE -D_SOCKET_SOURCE -D_PROTOTYPES -I/usr/
    include/bsd tftpsubs.c
    
    ** Restored [CCOPTS = -Aa +e +w1]
    
    c89 -o tftp "-WL,cap=ph,pm,ia,ba" main.o tftp.o tftpsubs.o -lbsd -lsocket -lc
     
    /KEVENM/POSIX/tftp#ls -l tftp
    -rwxrwx---   1 MGR.KEVENM        KEVENM    202240 May 15 11:57 tftp    
  9. Test run
  10. Note: Programs with PM or PH must be in an MPE group, not a sub-folder, in order to run.
    /KEVENM/POSIX/tftp#./tftp
     
    **** EXEC FUNCTION FAILED; subsys =517; info = 48 
    ABORT: /KEVENM/POSIX/tftp/tftp 
    NM SYS   a.00ab34a0 dbg_abort_trace+$24
    NM UNKN  1cc.00aa6140 
    NM UNKN  5cd.0004dfb4 
    [1] + Done(134) ./tftp
      19005530      Abort   ./tftp
    /KEVENM/POSIX/tftp#
    /KEVENM/POSIX/tftp#mv tftp ../TFTP
    /KEVENM/POSIX/tftp#../TFTP
    tftp> status
    Not connected.
    Mode: netascii Verbose: off Tracing: off
    Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
    tftp> quit
    /KEVENM/POSIX/tftp#
    /KEVENM/POSIX/tftp#callci listf tftp.posix,2
    ACCOUNT=  KEVENM      GROUP=  POSIX   
    
    FILENAME  CODE  ------------LOGICAL RECORD-----------  ----SPACE----
                      SIZE  TYP        EOF      LIMIT R/B  SECTORS #X MX
    
    TFTP      NMPRG   128W  FB         790        790   1      800  3  *
    
    /KEVENM/POSIX/tftp#callci tftp
    tftp> quit
    /KEVENM/POSIX/tftp#    

Top    JazzInfo    Hosted by 3kRanger.com    email 3kRanger    Updated