113 lines
7.0 KiB
HTML
113 lines
7.0 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="topic" />
|
|
<meta name="DC.Title" content="Scenario: Transfer a file from a remote host" />
|
|
<meta name="abstract" content="To transfer a file to a test server, use basic File Transfer Protocol (FTP) to send the file to the remote host." />
|
|
<meta name="description" content="To transfer a file to a test server, use basic File Transfer Protocol (FTP) to send the file to the remote host." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqscenarioparent.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqftpbatch.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqrzaiqclientsession.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqascii.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqbinary.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqtransftp.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzaiqscenariotrans" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Scenario: Transfer a file from a remote host</title>
|
|
</head>
|
|
<body id="rzaiqscenariotrans"><a name="rzaiqscenariotrans"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Scenario: Transfer a file from a remote host</h1>
|
|
<div><p>To transfer a file to a test server, use basic File Transfer Protocol
|
|
(FTP) to send the file to the remote host.</p>
|
|
<div class="section"><h4 class="sectiontitle">Situation</h4><p>Suppose that a colleague developed Java™ files
|
|
on a remote server. As a system engineer, you need to transfer the example.jar
|
|
file from the remote server to your local test server. The client and the
|
|
server are both an iSeries™ using i5/OS™ FTP.</p>
|
|
</div>
|
|
<div class="section" id="rzaiqscenariotrans__transobjective"><a name="rzaiqscenariotrans__transobjective"><!-- --></a><h4 class="sectiontitle">Objectives</h4><p>Use
|
|
FTP to transfer the file across a TCP/IP network. </p>
|
|
</div>
|
|
<div class="section" id="rzaiqscenariotrans__transdetails"><a name="rzaiqscenariotrans__transdetails"><!-- --></a><h4 class="sectiontitle">Details</h4><p>To
|
|
transfer the file, two connections are used: the <em>control connection</em> and
|
|
the <em>data connection</em>. The control connection is used to send subcommands
|
|
from the client to the server and receive responses to those commands from
|
|
the server to the client. The client initiates FTP commands to the FTP server.
|
|
The data connection is used to transfer the actual files. Both the client
|
|
and the server interface with the i5/OS file system. </p>
|
|
<p>To transfer files,
|
|
you need a user ID on both systems. You also need the following system requirements:</p>
|
|
<ul><li>iSeries server running i5/OS</li>
|
|
<li>TCP/IP Connectivity Utilities (5722-TC1)</li>
|
|
<li>FTP server configured</li>
|
|
</ul>
|
|
<p>To transfer files, you also need to know the following
|
|
information:</p>
|
|
<ul><li>Host name of the remote system</li>
|
|
<li>Your user name and password on the remote system</li>
|
|
<li>Name of file to transfer</li>
|
|
<li>Location of the file to transfer</li>
|
|
<li>File format (format that you must transfer the file in, such as binary
|
|
or ASCII)</li>
|
|
</ul>
|
|
</div>
|
|
<p><strong>Configuration tasks</strong></p>
|
|
<p>You must complete each of these tasks to perform a simple file transfer:</p>
|
|
<div class="note"><span class="notetitle">Note:</span> You can also transfer files automatically by using FTP as a batch job.</div>
|
|
<ol><li>Start your FTP client session. For this scenario: In the iSeries character-based
|
|
interface, type <kbd class="userinput">STRTCPFTP</kbd> and press Enter. </li>
|
|
<li>Specify the name of the remote system to which you want to send the file. <p> For
|
|
this scenario: <kbd class="userinput">theirco.com</kbd> </p>
|
|
</li>
|
|
<li>Tell the remote system your user name for the remote server. For this
|
|
scenario: <pre>Enter login ID (yourid):
|
|
===>yourid</pre>
|
|
</li>
|
|
<li>Tell the remote system your password for the remote server. For this scenario: <pre>Enter password:
|
|
===>yourpassword </pre>
|
|
</li>
|
|
<li>Locate the directory on the TheirCo server from which you want to transfer
|
|
the file. For this scenario: <samp class="codeph">===>cd /qibm/userdata/os400/dirserv/usrtools/windows</samp></li>
|
|
<li>Navigate to the directory on the local server to which you want to transfer
|
|
the file. For this scenario: <samp class="codeph">===>lcd /qibm/userdata/os400/dirserv/usrtools/windows</samp></li>
|
|
<li>Specify file type, ASCII or BINARY. Default file type is ASCII. For a
|
|
.jar file, you must switch the file transfer type to binary. For this scenario:
|
|
<samp class="codeph">===> binary</samp> </li>
|
|
<li>Request a file transfer from the remote server system to the client system.
|
|
For this scenario: <samp class="codeph">===> get example.jar</samp> </li>
|
|
<li>When finished, Exit from FTP. <p> For this scenario: <samp class="codeph">===>
|
|
QUIT</samp> </p>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiqscenarioparent.htm" title="Read scenarios to understand how File Transfer Protocol (FTP) is configured and used.">Scenarios: File Transfer Protocol</a></div>
|
|
</div>
|
|
<div class="reltasks"><strong>Related tasks</strong><br />
|
|
<div><a href="rzaiqtransftp.htm" title="You can send and receive files with File Transfer Protocol (FTP).">Transfer files with File Transfer Protocol</a></div>
|
|
</div>
|
|
<div class="relref"><strong>Related reference</strong><br />
|
|
<div><a href="rzaiqftpbatch.htm" title="This topic provides examples of how to run File Transfer Protocol (FTP) in an unattended mode.">Run File Transfer Protocol in unattended mode using a batch job</a></div>
|
|
<div><a href="rzaiqrzaiqclientsession.htm" title="You can start and stop a client session from this topic.">Start and stop a client session</a></div>
|
|
<div><a href="rzaiqascii.htm">ASCII (Change File Type to ASCII)</a></div>
|
|
<div><a href="rzaiqbinary.htm">BINARY (Set Transfer Type to Image)</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |