Transferring structured files – HP Integrity NonStop H-Series User Manual

Page 95

Advertising
background image

transfer files from host B to host C by the third party (host A). The NonStop FTP server can perform
the role of host B (or host C) if the other server in the operation supports the PASV command.

The following example illustrates, in a general way, how issuing FTP proxy commands at host A
can establish connections and transfer files. Your FTP client may, however, issue a different ftp
prompt from the one shown (ftp>).

Host B is named phost (primary host) and has internet address 50.0.0.3. Host C is named shost
(secondary host) and has internet address 50.0.0.1. The FTP commands that the server receives
from the client are displayed following the symbol --->. (Normally, these commands are displayed
only when the FTP client you are using is in debug mode.)

The comments in the right column indicate the action requested by each FTP client command and
the destination of FTP commands issued by the FTP client.

TACL 4> ftp phost Connect to primary host. . User then logs
on to host (not . shown, depends on system). ftp> proxy open shost

Connect to secondary host. . User then logs on to .

secondary host (not shown). .
ftp> proxy get pfile sfile Copy pfile from primary . host to sfile
on secondary . host.
---> PASV Issued to secondary host.
shost:227 Entering Passive Mode (50,0,0,3,4,55).

---> PORT 50,0,0,3,4,55 Issued to primary host.
phost:200 PORT command okay.

---> RETR pfile Issued to primary host.
phost:150 Opening data connection for pfile
(50.0.0.3.1079)
(30 bytes).

---> STOR sfile Issued to secondary host.
shost:150 Opening data connection for sfile(50.0.0.1.20)
shost:226 Transfer complete.
phost:226 Transfer complete.

Users of NonStop TCP/IPv6 can specify IPv6 addresses to establish connections for third-party
transfer operations. Note that all hosts involved in such transactions must have IPv6 addresses.
Thus, when an FTP client uses an IPv6 address to connect to the primary host, the FTP client must
use an IPv6 address to connect to the secondary host (proxy server).

In the following example, the primary host has an Internet address of fe80::a00:8eff:fe01:7db8,
and the secondary host has an address of fe80::a00:8eff:fe00:8e71. Note that the EPSV and
EPRT commands are issued instead of PASV and PORT.

TACL 4> ftp fe80::a00:8eff:fe01:7db8 Connect to primary host. . User
then logs on to host (not . shown, depends on system). ftp> proxy open
fe80::a00:8eff:fe00:8e71 Connect to secondary host. . User then logs on to
. secondary host (not shown).
ftp> proxy get pfile sfile Copy pfile from primary . host to
sfile on secondary . host.
---> EPSV 2 Issued to secondary host

fe80::a00:8eff:fe00:8e71:229 Entering Extended Passive Mode (|||1342|)

---> EPRT |2|fe80::a00:8eff:fe00:8e71|1342| Issued to primary host.
fe80::a00:8eff:fe01:7db8:200 EPRT command successful.

---> RETR pfile Issued to primary host fe80::a00:8eff:fe01:7db8:150 Opening data
connection for pfile
(fe80::a00:8eff:fe00:8e71,1342d) (30 bytes).

---> STOR sfile Issued to secondary host. fe80::a00:8eff:fe00:8e71:150 Opening
data connection for sfile (fe80::a00:8eff:fe01:7db8,5342d). fe80::a00:8eff:fe00:8e71:226 Transfer complete.
fe80::a00:8eff:fe01:7db8:226 Transfer complete.

For information about proxy processing from a NonStop FTP client, see the proxy command in
Section 6, FTP—Transferring Files.

Transferring Structured Files

The following is some information about structured-file transfers. The syntax for the commands used
to transfer structured files is given first. The syntax is followed by an example program. Refer to
the append, get, put, recv, and send command descriptions in Section 6, FTP—Transferring
Files, for detailed information about these commands.

Transferring Structured Files

95

Advertising
This manual is related to the following products: