AIX Printer Tips - 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.  There are two things you can gain by ftp'ing to a 3130. 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 Version 3.2.5 and AIX Versions 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. where 3130host is the hostname 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 above plus:
  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. Show 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 &ltoption=value>

  4. Set a print options 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 login
  2. site status to give the job number
  3. site cancel ###

How To FTP Files to 3130 Printers: AIX Printer Tips: 3130ftp.html ITEM: FAX
Dated: 99/02/02~00:00 Category: zap
This HTML file was generated 99/06/24~12:42:12
Comments or suggestions? Contact us