The text of a manual · part 11 of 21
HP JetDirect Print Servers (600N/400N/500X/300X) Administrator's Guide: FTP Printing
Pages 81 to 86 of 164, from HP JetDirect Print Servers (600N/400N/500X/300X) Administrator's Guide
The original document is the PDF (2.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the HP J3263A JetDirect 300X
Page 81
5 FTP Printing Introduction FTP (File Transfer Protocol) is a basic TCP/IP connectivity utility to transfer data between systems. FTP printing is a way to use FTP to send print files from a client system to an HP JetDirect-connected printer. In an FTP printing session, the client connects and sends a print file to the HP JetDirect FTP server which in turn passes the print file to the printer. The HP JetDirect FTP server can be enabled or disabled through a configuration utility, such as Telnet.
Requirements FTP printing requires the following: ●
HP JetDirect print servers with firmware version x.08.03 or later.
●
TCP/IP client systems with FTP that complies with RFC 959.
Note
EN
For the most recent list of tested systems, visit the HP Customer Care Online at www.hp.com/support/net_printing.
75
Page 82
Print Files The HP JetDirect FTP server transfers print files to the printer but does not interpret them. For proper printing, print files must be in a language recognized by the printer (such as PostScript, PCL, or unformatted text). For formatted print jobs, you must first print to a file from your application using the driver for the selected printer, then transfer the print file to the printer through an FTP session. For formatted print files, use binary (image) type transfers.
Using FTP Printing FTP Connections Similar to standard FTP file transfers, FTP printing uses two TCP connections: a control connection and a data connection. Once an FTP session is opened, it remains active until either the client closes the connection or the data and control connections are idle for 900 seconds (15 minutes). (This setting cannot be configured.) Control Connection Using standard FTP, a control connection is opened by the client to the FTP server on the HP JetDirect print server. FTP control connections are used to exchange commands between the client and the FTP server. The HP JetDirect print server supports up to three control connections (or FTP sessions) simultaneously. If the number of allowed connections is exceeded, a message indicating that service is not available will be displayed. FTP control connections use TCP port 21.
76 FTP Printing
EN
Page 83
Data Connection A second connection, a data connection, is created each time a file is transferred between the client and the FTP server. The client controls the creation of a data connection by issuing the commands that require a data connection (such as FTP ls, dir or put commands). Although the ls and dir commands are always accepted, the HP JetDirect FTP server supports only one data connection for printing at a time. The transmission mode for an FTP data connection with the HP JetDirect print server is always in stream mode, which marks the end-of-file by closing the data connection. Once a data connection is established, the file transfer type (ASCII or binary) can be specified. Although some clients may attempt to autonegotiate a transfer type, the default is ASCII. To specify the transfer type, enter the bin or ascii command at the FTP prompt.
FTP Login To start an FTP session, enter the following command from a MS-DOS or UNIX command prompt: ftp <IP address> where <IP address> is the valid IP address or node name configured for the HP JetDirect print server.
EN
FTP Printing 77
Page 84
If the connection is successful, the HP JetDirect model and firmware version will be displayed. After a successful connection, the user is prompted for a login name and password. The default is the client’s login name. The JetDirect FTP server will allow any user name. Passwords are ignored. If login is successful, a message “230” will be displayed on the client system. In addition, the available HP JetDirect ports for printing will be displayed. HP JetDirect external print servers with multiple ports will display all available ports, with Port1 the default port. To change ports, use the FTP cd (change directory) command. For an example of a successful login, see “Example of an FTP Session.”
Ending the FTP Session To end an FTP session, type quit or bye.
Commands Table 5.1 summarizes commands available to the user during an FTP printing session.
78 FTP Printing
EN
Page 85
Table 5.1
User Commands for HP JetDirect FTP Server
Command
Description user <username>
<username> specifies a user. Any user will be accepted and can print to the selected port.
cd <port#>
<port#> selects a port number for printing. For HP JetDirect single-port print servers, only port1 is available. For multiport print servers, specify port1 (default), port2, or port3.
cd/
/ specifies the root directory of the HP JetDirect FTP server.
quit quit or bye terminates the FTP session with the HP JetDirect print server.
bye dir ls dir or ls displays the contents of the current directory. If this command is typed in the root directory, a list of available ports for printing is displayed. For multiport print servers, the available ports for printing are PORT1 (default), PORT2, and PORT3.
pwd
Displays the current directory or the current JetDirect printing port.
put <filename>
<filename> specifies the file to send to the selected HP JetDirect print server port. For multiport print servers, a different port can be specified in the command: put <filename> <port#> bin
Configures an FTP binary (image) file transfer.
ascii
Configures an FTP ASCII file transfer. HP JetDirect print servers support only non-print format control for character transfers (standard values for spacing and margins are used).
[Ctrl-C]
Press the [Ctrl] and [C] keyboard keys simultaneously to abort the FTP service command and any transfer of data. The data connection is closed.
rhelp
Displays the FTP commands supported.
EN
FTP Printing 79
Page 86
Example of an FTP Session This is an example of a typical FTP printing session: System> ftp 150.10.2.101 Connected to 150.10.2.101. 220 JD FTP Server Ready Name (150.10.2.101:root): Kelli 331 Username OK, send identity (email name) as password. Password: 230- Hewlett-Packard J3265A FTP Server Version 1.0 Directory: Description: --------------------------PORT1 (default) Print to port 1 (HP LaserJet 4000) PORT2 Print to port 2 (HP Color LaserJet 4500) PORT3 Print to port 3 (unknown device) To print a file use the command: put <filename> [portx] or 'cd' to desired port and use: put <filename> Ready to print to PORT1 230 User logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> pwd 257 "/" is current directory. (default port is PORT1: HP LaserJet 4000) ftp> cd port1 250 CWD command successful ftp>pwd 257 "/PORT1" is current directory. (HP LaserJet 4000) ftp> bin 200 Type set to I ftp> put test 200 PORT command successful 150 Opening data connection... 226 Transfer complete. 18 bytes sent in 0.00 seconds (37.40 Kbytes/s) ftp> quit 221 Goodbye System> script done on Mon Apr 12 16:50:24 1999
80 FTP Printing
EN