IS "SITE" OR "QUOTE SITE" SUPPORTED BY AIX 3.2'S
ITEM: RTA000039521
QUESTION:
Are either the "site" or "quote site" commands supported for our
ftp software on aix 3.2? I see them listed as options when I enter
"?" at the ftp prompt, but I keep getting "SITE COMMAND NOT UNDERSTOOD"
when I try to use it. I'd like to be able to ftp directly to my
workstation from a system on the internet, but I first have to "hop"
thru a corporate gateway RS/6000 running AIX 3.2. As I understand
the site command, I should be able to ftp to the gateway and then
use "site" or "quote site" to switch to another host on the internet.
---------- ---------- ---------- --------- ---------- ----------
A: I do not believe that ftp provides the exact functionality you want.
I will describe the ftp sub-commands "site" and "quote", and then
I will discuss how to use the "proxy" sub-command (which is the
sub-command closest to the functionally you said you wanted).
The syntax of the "site" sub-command is:
site help|umask|idle|chmod
not merely "site" by itself. None of "site"'s four options allow you
to connect to a remote host.
The "quote" sub-command sends certain ftp sub-commands to the remote
host without interpreting them. For example, if you enter
"quote user root" you must also enter "quote pass " which
displays root's password on the screen. But if you enter
"user root" ftp will prompt you for root's password and not
display it on the screen.
The "proxy" sub-command allows you to connect to two remote hosts
simultaneously. For example, if I am on host "bravery" I can
connect to host "u2e", and then from "u2e" I can connect to host
"festere". However, I was unable to find a way to transfer a
file directly from "festere" to "bravery".
Following the principle that "a picture is worth a thousand words",
I have appended below a script of an ftp session which illustrates
how to use the "proxy" sub-command. I added comments in the right
margin marked with asterisks. The "skeleton flow" of the script is:
ftp to u2e from bravery
connect to festere from u2e
put a file from festere to u2e <--- note that this is
counter-intuitive
get that file from u2e to bravery
If I have misunderstood your question, or if you want to clarify
anything I have written, please feel free to update this item.
------------------ Script begins on the next line ------------------
$ hostname
bravery
$ ls
/ .alias .profile .sh_history smit.log
./ .kshrc .rhosts ftp.log smit.script
$ ftp u2e
Connected to u2e.austin.ibm.com.
220 u2e FTP server (Version 4.7 Tue Mar 09 17:39:34 CST 1993) ready.
Name (u2e:dadavis):
331 Password required for dadavis.
Password:
230 User dadavis logged in.
ftp> ls *** list my files on u2e ***
200 PORT command successful.
150 Opening data connection for /bin/ls.
ate.def
sendmail.darin
sendmail.darinDB
sendmail.darinDBl
smit.log
smit.script
226 Transfer complete.
ftp> proxy open festere *** connect to festere ***
Connected to festere.austin.ibm.com.
220 festere FTP server (Version 4.1 Sat Nov 23 12:52:09 CST 1991) ready.
Name (festere:dadavis):
331 Password required for dadavis.
Password:
230 User dadavis logged in.
ftp> proxy ls *** list my files on festere ***
festere.austin.ibm.com:200 PORT command successful.
festere.austin.ibm.com:150 Opening data connection for /bin/ls.
ate.def
bin
e789_ktbl
e789_repls.a
smit.log
smit.script
test.file
trace.out
trace.raw
usrdflts
usrdflts.vc
usrprofs
usrprofs.vc
festere.austin.ibm.com:226 Transfer complete.
ftp> proxy put test.file *** xfer file to u2e ***
festere.austin.ibm.com:227 Entering Passive Mode (9,3,6,35,6,24)
u2e.austin.ibm.com:200 PORT command successful.
u2e.austin.ibm.com:150 Opening data connection for test.file.
festere.austin.ibm:150 Opening data connection for test.file (81 bytes).
festere.austin.ibm.com:226 Transfer complete.
u2e.austin.ibm.com:226 Transfer complete.
local: test.file remote: test.file
ftp> get test.file *** xfer file to bravery ***
u2e.austin.ibm.com:200 PORT command successful.
u2e.austin.ibm.com:150 Opening data connection for test.file (81 bytes).
u2e.austin.ibm.com:226 Transfer complete.
82 bytes received in 0.002786 seconds (28.74 Kbytes/s)
ftp> proxy close
festere.austin.ibm.com:221 Goodbye.
ftp> close
221 Goodbye.
ftp> quit
$ ls *** test.file arrived safely ***
/ .kshrc .sh_history smit.script
./ .profile ftp.log test.file
alias .rhosts smit.log
------------------ End of script ------------------
---------- ---------- ---------- --------- ---------- ----------
This item was created from library item Q653911 CPVQZ
Additional search words:
AIX ALTERNATE COMMUNICATIO CPVQZ FTP INDEX IX MAR94 OZNEW QUOTE
RISCSYSTEM RISCTCP SITE SOFTWARE SUPPORTED TCPIP 3.2
WWQA: ITEM: RTA000039521 ITEM: RTA000039521
Dated: 04/1996 Category: RISCTCP
This HTML file was generated 99/06/24~12:43:15
Comments or suggestions?
Contact us