UNIX Supplement
Introduction To get maximum versatility from this machine all operators should carefully read and follow the instructions in this manual. Please keep this manual in a handy place near the machine. Please read the Safety Information before using this machine. It contains important information related to USER SAFETY and PREVENTING EQUIPMENT PROBLEMS. Important Contents of this manual are subject to change without prior notice.
How to Read This Manual Symbols In this manual, the following symbols are used: R WARNING: This symbol indicates a potentially hazardous situation which, if instructions are not followed, could result in death or serious injury. R CAUTION: This symbol indicates a potentially hazardous situation which, if instructions are not followed, may result in minor or moderate injury or damage to property. * The statements above are notes for your safety.
TABLE OF CONTENTS 1. UNIX Configuration Before Setup ............................................................................................... 1 Using the lp/lpr commands............................................................................. 1 Using the rsh/rcp/ftp commands .................................................................... 1 Using the Installation Shell Script ............................................................ 2 Assigning the IP Address ..............................
1. UNIX Configuration This section explains how to set up a network printer and check the print status using UNIX. Limitation ❒ To print from a UNIX workstation, use the file that the printer supports. Before Setup Setting up can vary depending on the printing commands. Please make sure to make the settings accordingly. Using the lp/lpr commands A Use the installation shell script to register the device option, as well as the printer host name and the IP address. ⇒ p.
UNIX Configuration Using the Installation Shell Script The installation shell script helps with the setup process. The installation shell script automates some of the tasks in configuring /etc/hosts, /etc/printcap, and in creating the spool directory for BSD UNIX, and in running the lpadmin command for System V UNIX. 1 Preparation The installation shell script can be used on the following three kinds of workstations. This installation shell script cannot be used with other types of workstations.
Using the Installation Shell Script Checking the IP address configuration Follow the procedure below to make sure that the IP address has been configured correctly. • The following procedure uses the sample IP address: 192.168.15.16. 1 A Enter the following: # ping 192.168.15.16 If the address has been configured correctly, the following message appears. 192.168.15.16 is alive If the address has been configured incorrectly, the following message appears. no answer from 192.168.15.
UNIX Configuration B Get the installation shell script from the printer. A Move to the directory you want to copy the installation shell script to. B Use ftp to connect to the printer with the IP address that you just configured. # ftp 192.168.15.16 Connected to 192.168.15.16 220 printer FTP server ready. name (192.168.15.16:root:) C When a user name is requested, leave blank and press the {RETURN} } key. 331 Password required for root.
Using the Installation Shell Script E Enter the IP address of the printer. Enter Printer host IP address [return=skip]: 192.168.15.16 1 Note ❒ The IP address will be added to the /etc/hosts file. ❒ If the host name of the printer has already been configured, press the {RETURN} } key. Nothing will be added to the /etc/hosts file. F Enter the host name of the printer. Enter Printer host name : nphost Note ❒ The host name will be added to the /etc/hosts file.
UNIX Configuration I Perform a test print to make sure that the settings are correct. # lpr -Pnp file_name # lp -d np file_name For more information about lpr and lp, see p.11 “Printing Method”. 1 Deleting the printer To print using the lp or lpr command, the option specified when the installation shell script is executed is used. Change the option in accordance with the workstation you are using.
Using the Installation Shell Script After Executing Installation Shell Script The printing environment is set up automatically when the installation shell script is executed. This section describes the set up contents when the installation shell script is executed under Red Hat Linux, Solaris and HP-UX. 1 Linux ❖ Adding the IP address and host name to the /etc/hosts file The following line is added to the /etc/hosts file.
UNIX Configuration ❒ The first line of the field is the name of the printer. You use this name when logging on to a network printer from a workstation. You can define several different names by separating each name with the “|” character. ❒ The second and following lines contain the printer's attributes. Attributes of the printer are represented by two character names referred to as capabilities. For more information about capabilities, see the following table.
Using the Installation Shell Script ❖ Making the log file Error messages are logged to a file created in the /var/log directory. The log file name is the printer name followed by “d-errs”. Note ❒ The log file is used for logging some errors or warning messages by the UNIX workstation. 1 ❒ The log file should be made for every network printer entry listed in the /etc/printcap file.
UNIX Configuration C D 1 If your workstation is Solaris 2.5.1, set the print job to active so that it can be accepted by the print queue. /usr/lib/accept np If your workstation is Solaris 2.5.1, set the print job to active to print. /usr/lib/enable np HP-UX ❖ Adding the IP address and host name to the /etc/hosts file The following line is added to the /etc/hosts file. The IP address and printer host name which you previously entered in the installation script will be used. 192.168.15.
Printing Method Printing Method Printing with lpr, lp 1 Execute one of the following commands according to the type of workstation being used: ❖ BSD UNIX workstation, Linux % lpr -Pprinter_name file_name [file_name...] For example: printer name is np, file names are file1 and file2 % lpr -Pnp file1 file2 ❖ Solaris, HP-UX % lp -d printer_name file_name [file_name...
UNIX Configuration Printing with rsh, rcp, ftp You can also print using the rsh, rcp and ftp commands. 1 Note ❒ Print using the format that the printer can support. ❒ The message "print session full" appears when the maximum number of print requests has been reached. *1 *1 The maximum number of print session differs depending on printer's total memory size. When the printer has standard memory (32MB), one print session is available.
Printing Method ftp Depending on the number of files to be printed, use the put or mput commands. 1 Limitation ❒ File names cannot contain “=” or “,”. ❖ To print one file ftp> put file_name ❖ To print several files ftp> mput file_name [file_name...] Note ❒ You can use wild cards ( * or ? ) for the file name with the mput command. The following procedure shows an example of how to print a file using ftp. It is not possible to set options with the mput command.
UNIX Configuration Printer Status You can use the following commands to have information and the printer status displayed or copied to a file. Use the lpq or lpstat command to display the status of the printer or information about print jobs. Use the rsh, rcp or ftp commands to get more detailed information from the printer.
Printer Status Note ❒ Leave the user name and password blank, and then press the {RETURN} } key. ❒ “-” indicates the standard output. It will be displayed on screen if the standard output has not been specified. Parameters that can be used with rsh, rcp and ftp: Parameter stat 1 Information returned Status of the printer. Information about print jobs. info Information about the paper tray, output tray and printer language. prnlog Record of the last 16 jobs printed.
UNIX Configuration Specifying the Device Option With the following options, you can print with specific printer functions. 1 Configuring the Device Option The configuration of the print option can vary depending on the printing commands. • rsh % rsh host_name print option1=value1,… < file_name • rcp % rcp file_name host_name:option1=value1,… • ftp ftp> put file_name option1=value1,… Host_name is the printer host name. File_name is the file name you want to print.
Specifying the Device Option ❒ Enter the option using the lp or lpr command, when the shell script is implemented. The option settings you made here have been configured as a default setting. You must create the other printer if you want to change the printer option settings. For more information about changing the configured option, see p.6 “Deleting the printer”.
UNIX Configuration 1 Device Option Value Function Summary binding longedge, shortedge Specifies the binding direction for duplex printing orientation portrait, landscape Specifies the feed direction of the paper resolution value of resolution (300, 600, 1200) Specifies the resolution for printing symbol set desktop, iso4, iso6, iso11, iso15, iso17, iso21, iso60, iso69, isol1, isol2, isol5, legal, math8, mspubl, pc8, pc850, pc852, pc8dn, pc8tk, pifont, psmath, pstext, roman8, vnintl, vnmath, v
Specifying the Device Option Text Printing Set this function when directly printing text files. filter=text fil=text The following sample shows how to print text files directly. • rsh % rsh nphost print filter=text < file1 • rcp % rcp file1 nphost:filter=text • ftp ftp> put file1 filter=text 1 Input Tray Select a default input tray. Limitation ❒ Only the installed input trays are available. ❒ Before printing a PostScript file, the Input tray option must be set to on.
UNIX Configuration Paper Size Select the paper size. 1 Limitation ❒ Only the loaded paper sizes are available. paper=value of paper size Paper Size Value A3 a3 A4 a4 A5 a5 A6 a6 B4 jisb4 B5 jisb5 81/2 × 14 ledger 8 /2 × 11 letter 51/2 × 81/2 halfletter 81/2 × 14 legal 1 71/ 4 × 101/ 2 executive 8 × 13 fgl 81/2 × 13 foolscap 8 /4 × 13 folio 4 1/8"× 91/2" com10 6.38"× 9.02" C5 4.49" × 6.38" C6 4.33" × 8.66" dl 3 /8 " × 7 /2 " monarch 101/2"×15.35" 8k 7.
Specifying the Device Option Paper Type Select the paper type. 1 Limitation ❒ Only the loaded paper types are available.
UNIX Configuration Output Tray Select the output tray. outbin=value of output tray 1 Limitation ❒ Only the installed output trays are available. Note ❒ The output tray value corresponds to the ID number of the output tray which is obtained from the printer information (e.g. info command in ftp, info command in telnet. For more information about telnet, see the Printer Reference.). ❒ You can select an output tray using alphabet letters instead of the ID number of the output tray.
Specifying the Device Option Copies Specify the number of copies. copies=number of copies (1 to 999) 1 Limitation ❒ Do not specify “copies” and “qty *1 ” commands at the same time. *1 “qty” is the function of collation. The following sample shows how to print 10 copies (host name: nphost, file name: file1). • rsh % rsh nphost print copies=10 < file1 • rcp % rcp file1 nphost:copies=10 • ftp ftp> put file1 copies=10 Collating Specify the number of collated sets.
UNIX Configuration Duplex Printing This option enables duplex printing. 1 Limitation ❒ AD410 (duplex unit) is required. Note ❒ Before selecting the duplex option, the binding option must be set to on. ❒ The print data and paper size affect the completion of the print job. duplex=value of duplex printing Duplex Printing Value Enable on Disable off Reference For more information about available paper size for duplex printing, see the Printer Reference.
Specifying the Device Option Binding Select the binding direction of duplex printing. 1 Note ❒ Before selecting the binding option, the duplex option must be set to on. ❒ The print data and paper size affect the completion of the print job. binding=value of binding Binding Direction Value Longedge longedge Shortedge shortedge The following sample shows how to set duplex printing and longedge binding (host name: nphost, file name: file1).
UNIX Configuration Resolution Select the printing resolution. 1 Limitation ❒ If you want to select the 300dpi option, only the selected PCL5e from the printer language option is available. resolution=value of resolution Resolution Value 300 dpi 300 600 dpi 600 1200 dpi 1200 The following sample shows how to print with 600 dpi and better quality. (host name: nphost, file name: file1).
Specifying the Device Option Font Value ISO L1 isol1 ISO L2 isol2 ISO L5 isol5 Legal legal Math-8 math8 MS Publ mspubl PC-8 pc8 PC-850 pc850 PC-852 pc852 PC-8 D/N pc8dn PC8-TK pc8tk Pifont pifont PS Math psmath PS Text pstext Roman-8 roman8 VN Intl vnintl VN Math vnmath VN US vnus Win 3.0 win30 Win L1 winl1 Win L2 winl2 Win L5 winl5 1 The following sample shows how to print a set of ISO 4 (host name : nphost, file name : file1).
INDEX B P Binding Option, 25 BSD UNIX workstation, Linux Deleting the printer, 6 Printer Status, 14 Printing Method, 11 C Collating Option, 23 configuration UNIX, 1 Copies Option, 23 D Deleting the printer, 6 Device Option, 16 Duplex Print Option, 24 F ftp Printing, 13 I Input Tray Option, 19 Installation Shell Script, 3 installation shell script, 2 O Orientation Option, 25 Output Tray Option, 22 28 Paper Size Option, 20 Paper Type Option, 21 Printer Language Option, 18 Printer Status, 14 Printing
Copyright © 2001
UNIX Supplement GB EE