How to FTP Files to 3130


Contents

About this document
Requirements
Steps to ftp to 3130
Printing to the 3130 with ftp
Canceling print jobs with ftp

About this document

Usually you would create a remote print queue to print to an IBM 3130 network attached printer, but sometimes you may want to use the capabilities supplied by using the ftp command. If you ftp to a 3130, you can gain two things. You can print files, and you can get the 3130 queue status cleanly without using the AIX lpstat command. This document describes how to use this capability.

This information applies to AIX Versions 3.2.5, 4.1.5 and later.


Requirements

The 3130 must be LAN attached and ftp enabled on the 3130.


Steps to ftp to 3130

  1. ftp <3130host>

  2. 3130host is the host name of the 3130 printer.
  3. User: print

  4. print is a key user name on the 3130.
  5. Password: <anything will work>

  6. The password that you use will be the userid on the banner page.
  7. Logging on you get:
  8. 230- 
    230- Welcome to AFCCU2 ftp
    230- 
    230- Use SITE PCL to indicate that PCL data is to be printed.
    230- Use SITE POSTSCRIPT to indicate that PostScript data is to be printed.
    230- Use SITE TEXT to indicate that a text file is to be printed.
    230- Use SITE SPOOL to store files as they transferred to the printer.
    230- Use SITE DIRECT to print files as they transferred to the printer.
    230- Use PUT/SEND to transfer a file to the printer.
    230- Use SITE OPTION to set spool options.
    230- Use SITE PRINT to spool a file that has been transferred to the
    printer.
    230- Use SITE STATUS to view the queue status.
    230- Use SITE CANCEL to cancel a job on the queue.
    230- Use SITE SPACE to see amount of free spool space.
    230- Use SITE STACKER to set output stacker option
    230- 
    230- The printer is currently set to SPOOL.
    230- The printer's output stacker is currently not specified.
    230- 
    230- 
    230- For help use SITE HELP [command]
    230- 
    230 Guest login ok, access restrictions apply.
    
  9. site help
    Displays the preceding information, as well as the following:
  10. 214- The following SITE commands are recognized (* =>'s
    unimplemented).
      
    UMASK          
    PCL            
    DIRECT          SPACE 
      
    IDLE           
    POSTSCRIPT     
    OPTION          STACKER 
      
    CHMOD          
    TEXT           
    PRINT          
    CANCEL 
      
    HELP           
    SPOOL          
    STATUS 
    214 Direct comments to ftp-bugs@psf3130.
    
  11. site status

  12. Shows the queue status as follows:
    214- Queue status :
    Queue   Dev   Status    Job
    Files           &nbs
    p;  User         PP
    %   Blks  Cp Rnk
    ------- ----- --------- --- ------------------ ---------- ---- -- ----- ---
    ---
    afccu2  pcl   READY    
    afccu2  ps    READY    
    214 End of queue status request.
    
  13. site space

  14. Shows the spool space on the queue.
    ftp> site space
    214- Spool space : 
    There is 386036 KB of free spool space.
    214 End of spool space request.
    

Steps to print file to 3130 with ftp

This assumes you have already logged in to the 3130 with ftp.

  1. site text or site postscript or site pcl

  2. To indicate the type of data in the file.
  3. site option <option=value>

  4. Set a print option such as paper tray, duplex, or font.
    Options available are shown below.
  5. put <filename> or send <filename>

  6. Sends the file to the 3130.
  7. site print <filename>

  8. Prints the file that was transferred to the 3130.
  9. site status

  10. To see the status of the printing job.

    Example dialog:

    ftp> put /etc/hosts
    200 PORT command successful.
    150 Opening data connection for hosts.
    226 Transfer complete.
    1892 bytes sent in 0.001171 seconds (1578 Kbytes/s)
    local: /etc/hosts remote: /etc/hosts
    ftp> site print /etc/hosts
    214- Print :
    214 End of print request.
    ftp> site status
    214- Queue status :
    Queue   Dev   Status    Job
    Files           &nbs
    p;  User         PP
    %   Blks  Cp Rnk
    ------- ----- --------- --- ------------------ ---------- ---- -- ----- ---
    ---
    afccu2  pcl   RUNNING   227
    hosts           &nbs
    p;  me@tesch.a    0  0    
    2   1   1
    afccu2  ps    READY    
    214 End of queue status request.
    

Cancel a running job

  1. ftp to the 3130 and log in.
  2. Enter site status to give the job number.
  3. Enter site cancel ###, where ### is the job number returned from the previous step.



[ Doc Ref: 91738722413296     Publish Date: Feb. 13, 2001     4FAX Ref: 6485 ]