SCO UNIX ftp - weird kind of working


 
Thread Tools Search this Thread
Operating Systems SCO SCO UNIX ftp - weird kind of working
# 1  
Old 02-02-2012
SCO UNIX ftp - weird kind of working

hi,
i am working on sco unix 5.07, i have 10 individual servers networked locally in which sco os is installed. one of them is not transferring the file to other servers but accepting all files. means Server (A) can accept the file through FTP from any server but not transferring FTP its own file to any other server.

the ftp session creates and showing that the file is being transferred but system not transferring the file.

on the other hand the same server (A) if accessed by a windows machine works fine.

i need to know if there is any utility or command through which i can check where the bottle neck occur or why the file is not transferred. some thing like network packet sniffer or network analyzer for sco unix.

thanks
# 2  
Old 02-02-2012
Can you show us a manual (i.e. not scripted) interactive ftp session which demonstrates the fault. Also show the output of the ftp commands "status" and "pwd" from within the ftp sessions and after logging in.
# 3  
Old 02-03-2012
Code:
Server A to Server B

# ftp B
Connected to B.
220-
220 B FTP server (Version wu-2.6.2(1) Thu Aug 3 02:08:20 EDT 2006) ready.
Name (B:root): root
331 Password required for root.
Password:
230 User root logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

ftp> status
Connected to A.
No proxy connection.
Mode: stream; Type: binary; Form: non-print; Structure: file
Passive mode: off
Verbose: on; Bell: off; Prompting: on; Globbing: on
Store unique: off; Receive unique: off
Case: off; CR stripping: on
Ntrans: off
Nmap: off
Hash mark printing: off; Use of PORT cmds: on
ftp>

ftp> cd /u/abcompress
250 CWD command successful.
ftp> lcd /u/abcompress
Local directory now /u/abcompress

ftp> pwd
257 "/u/abcompress" is current directory.

ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 4244104
-rwxrwxrwx   1 group    148476525 Jan 16 08:00 B4-ACTUAL-PFTDEC.Z
-rwxrwxrwx   1 group    157343980 Jan 27 11:51 Fri-EOD.Z
-rwxrwxrwx   1 group    157221480 Jan 27 11:05 Fri-POS.Z
-rwxrwxrwx   1 group    157703194 Jan 31 06:51 Mon-EOD.Z
-rwxrwxrwx   1 group    157514437 Jan 31 05:43 Mon-POS.Z
-rwxrwxrwx   1 group    147290354 Jan  2 05:11 Sat-EOD.Z
-rwxrwxrwx   1 group    146621785 Jan  2 04:54 Sat-POS.Z
-rwxrwxrwx   1 group    157670655 Feb  3 05:27 Thr-POS.Z
-rwxrwxrwx   1 group    157293293 Jan 27 05:19 Thr-EOD.Z
-rwxrwxrwx   1 group    157765169 Feb  1 06:47 Tue-EOD.Z
-rwxrwxrwx   1 group    157607567 Feb  1 06:20 Tue-POS.Z
-rwxrwxrwx   1 group    157634981 Feb  2 06:20 Wed-EOD.Z
-rwxrwxrwx   1 group    157715107 Feb  2 05:44 Wed-POS.Z
-rw-r--r--   1 sys           85 Dec  8 06:42 abcompress.url

-rwxrwxrwx   1 group    146595043 Dec 31 10:14 fc-DEC2011.Z

ftp> put Wed-0038-EOD.Z
local: Wed-0038-EOD.Z remote: Wed-0038-EOD.Z
200 PORT command successful.
150 Opening BINARY mode data connection for Wed-0038-EOD.Z

# date
Fri Feb  3 09:55:05 Pakistan 2012

# l
total 4244104
-rwxrwxrwx   1 fwb      group    157343980 Jan 27 11:51 Fri-EOD.Z
-rwxrwxrwx   1 fwb      group    157221480 Jan 27 11:05 Fri-POS.Z
-rwxrwxrwx   1 fwb      group    157703194 Jan 31 06:51 Mon-EOD.Z
-rwxrwxrwx   1 fwb      group    157514437 Jan 31 05:43 Mon-POS.Z
-rwxrwxrwx   1 fwb      group    147290354 Jan  2 05:11 Sat-EOD.Z
-rwxrwxrwx   1 fwb      group    146621785 Jan  2 04:54 Sat-POS.Z
-rwxrwxrwx   1 fwb      group    157670655 Feb  3 05:27 Thr-POS.Z
-rwxrwxrwx   1 fwb      group    157293293 Jan 27 05:19 Thr-EOD.Z
-rwxrwxrwx   1 fwb      group    157765169 Feb  1 06:47 Tue-EOD.Z
-rwxrwxrwx   1 fwb      group    157607567 Feb  1 06:20 Tue-POS.Z
-rwxrwxrwx   1 fwb      group    157634981 Feb  2 06:20 Wed-EOD.Z
-rwxrwxrwx   1 fwb      group    157715107 Feb  2 05:44 Wed-POS.Z
-rw-r--r--   1 root     sys            0 Feb  3 09:54 Wed-0038-EOD.Z

# date
Fri Feb  3 10:10:43 Pakistan 2012
# l
total 4244104
-rwxrwxrwx   1 fwb      group    157343980 Jan 27 11:51 Fri-EOD.Z
-rwxrwxrwx   1 fwb      group    157221480 Jan 27 11:05 Fri-POS.Z
-rwxrwxrwx   1 fwb      group    157703194 Jan 31 06:51 Mon-EOD.Z
-rwxrwxrwx   1 fwb      group    157514437 Jan 31 05:43 Mon-POS.Z
-rwxrwxrwx   1 fwb      group    147290354 Jan  2 05:11 Sat-EOD.Z
-rwxrwxrwx   1 fwb      group    146621785 Jan  2 04:54 Sat-POS.Z
-rwxrwxrwx   1 fwb      group    157670655 Feb  3 05:27 Thr-POS.Z
-rwxrwxrwx   1 fwb      group    157293293 Jan 27 05:19 Thr-EOD.Z
-rwxrwxrwx   1 fwb      group    157765169 Feb  1 06:47 Tue-EOD.Z
-rwxrwxrwx   1 fwb      group    157607567 Feb  1 06:20 Tue-POS.Z
-rwxrwxrwx   1 fwb      group    157634981 Feb  2 06:20 Wed-EOD.Z
-rwxrwxrwx   1 fwb      group    157715107 Feb  2 05:44 Wed-POS.Z
-rw-r--r--   1 root     sys            0 Feb  3 09:54 Wed-0038-EOD.Z

<break by CRTL+C)
421 Service not available, remote server has closed connection
49152 bytes sent in 299.91 seconds (0.16 Kbytes/s)

bytes not transfer to server B :wall:
======================================================
Server B to Server A

# ftp A
Connected to A
220-
220 A FTP server (Version wu-2.6.2(1) Tue Feb 18 02:26:24 PST 2003)
ready.
Name (A:root): root
331 Password required for root.
Password:
230 User root logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

ftp> status
Connected to A.
No proxy connection.
Mode: stream; Type: binary; Form: non-print; Structure: file
Passive mode: off
Verbose: on; Bell: off; Prompting: on; Globbing: on
Store unique: off; Receive unique: off
Case: off; CR stripping: on
Ntrans: off
Nmap: off
Hash mark printing: off; Use of PORT cmds: on
ftp>

ftp> cd /u/abcompress
250 CWD command successful.
ftp> lcd /u/abcompress
Local directory now /u/abcompress


ftp> pwd
257 "/u/abcompress" is current directory.

ftp> put Wed-0001-010212-POS.Z
local: Wed-0001-010212-POS.Z remote: Wed-0001-POS.Z
200 PORT command successful.
150 Opening BINARY mode data connection for Wed-0001-POS.Z.

# date
Fri Feb  3 04:02:49 Pakistan 2012

# l
total 1753580
-rwxrwxrwx   1 fwb      group    180500480 Jan 11 03:46 0038-0331-EOD
-rwxrwxrwx   1 fwb      group    37416744 Jan 16 06:24 0038-B4-ACTUAL-PFT.Z
-rwxrwxrwx   1 fwb      group    35095209 Jan 11 03:46 B4-ACTUAL-RUN-0038.Z
-rwxrwxrwx   1 fwb      group    33252311 Jan 11 03:46 B4-PROFIT-Sat.Z
-rwxrwxrwx   1 fwb      group    37505489 Jan 29 22:46 Fri-0038-EOD.Z
-rwxrwxrwx   1 fwb      group    37494439 Jan 27 06:19 Fri-0038-POS.Z
-rwxrwxrwx   1 fwb      group    37551427 Jan 30 05:25 Mon-0038-EOD.Z
-rwxrwxrwx   1 fwb      group    37539238 Jan 30 05:10 Mon-0038-POS.Z
-rwxrwxrwx   1 fwb      group    36603793 Jan 11 03:47 Sat-0038-EOD.Z
-rwxrwxrwx   1 fwb      group    36331535 Jan 11 03:47 Sat-0038-POS.Z
-rwxrwxrwx   1 fwb      group    37461545 Feb  2 06:17 Thr-0038-EOD.Z
-rwxrwxrwx   1 fwb      group    37448094 Feb  2 06:05 Thr-0038-POS.Z
-rwxrwxrwx   1 fwb      group    37575829 Jan 31 06:12 Tue-0038-EOD.Z
-rwxrwxrwx   1 fwb      group    37545034 Jan 31 05:56 Tue-0038-POS.Z
-rw-r--r--   1 root     sys       427731 Feb  3 04:02 Wed-0001-POS.Z

bytes successfully transfer to A


Last edited by methyl; 02-03-2012 at 08:17 AM.. Reason: code tags
# 4  
Old 02-03-2012
Do both (all) machines have MP5 installed? I saw this problem once before, and noticed that the ftp client program on the machines were different releases. I copied one to the other machine and solved the problem, I just don't remember which way the copy went (older version on both, or newer version.)
# 5  
Old 02-03-2012
both have same ftp client, i have installed the same os with mp5 on both machines.
# 6  
Old 02-03-2012
A fix which has worked for me many times:
Try lowering the "ftp" and "ftpd" buffer size. This may seem illogical (and contradicts the "man" pages for "ftp" and "ftpd") but it often fixes mysterious ftp hangs where either computer is connected to a modern Network Switch or a Modern Router.
# Client connection line
ftp -B 1

# In /etc/inetd.conf
ftpd -B 32



If you have a firewall between the two computers, make sure that both port 20 and port 21 are open. Microsoft ftp only uses one of the ports, but unix ftp uses both. Unix will start off on port 21 and then use port 20 for the second and subsequent data block.


Make sure that the two "ftp" lines in /etc/services are identical on both computers and also check that nobody has configured ports 20 or 21 for something else. If you have logging enabled in "ftpd" (see /etc/inetd.conf) then make sure that the logging area is not full.


If you have 100 MBits/s Ethernet, make sure that no network connections are configured to auto-negotiate and that no network connection has dropped to half-duplex. The half-duplex issue often happens if people re-patch data connections with the power on.



Make sure that the "root" account is not listed in /etc/ftpusers .

Last edited by methyl; 02-03-2012 at 08:50 AM.. Reason: layout
# 7  
Old 02-08-2012
is there any data packet sniffer for sco unix, which is easy to install through which i can check why the data is not transferring and on what end the problem occur. (network or os)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP using script not working (for transfering file from a remote unix server to windows PC.)

hi, Im using the following code for FTP #!/usr/bin/ksh ftp -v -n "10.29.45.11" << cmd user "mahesva" "mahesva123" get rtl.tar quit cmd Below is the log when i run the above code ********************************** Connected to 10.29.45.11. 220 (vsFTPd 2.0.1) 530 Please login with USER... (20 Replies)
Discussion started by: dll_fpga
20 Replies

2. UNIX for Advanced & Expert Users

Unix FTP Script connecting through proxy Not working

Hi All, can some one please help me to solve this issue, its urgent:confused: We need to FTP a file form our Unix server to an external client FTP location. I am trying to connect to the proxy server first and then use the below USER comment to connect to the external FTP server, and its working... (3 Replies)
Discussion started by: JesusJoseph
3 Replies

3. SCO

Sco-Unix IP Printer no longer working

I have a client running Sco-Unix 5. They have many IP Printers setup. One of the IP Printers is "LPJ", it has been functional for 3 weeks and then the switch died and hung up the queue. We reset the switch and restarted the jobs and they printed. The switch went down again and we replaced the... (1 Reply)
Discussion started by: Netwrkengeer
1 Replies

4. UNIX for Dummies Questions & Answers

Problem with FTP o n Unix SCO

my problem is like this while ftping locally it works, but when users from WAN try the ftp services it doesnt comes the message it displays is as follows "connection closed by remote host " please help Thanks (5 Replies)
Discussion started by: Athos19
5 Replies

5. UNIX for Dummies Questions & Answers

hand needed about FTP service on SCO UNIX

Hi all. I'm pretty new to this forum,hope a good time here. issue is that I have a SCO UNIX 5.0.5 installed on the virtual machine VMware. Configured the NIC and assigned 192.168.18.254 as it's IP,and the host OS windows XP 's IP is 192.168.18.8 ,both of them can PING each other... (4 Replies)
Discussion started by: blf0
4 Replies

6. HP-UX

HP-UX weird FTP ?

Hi, I am trying to connect to a distributors FTP server (which returns the prompt at the bottom of this post). Each week these people post our sales data using the same file names. When you do an ls you can see them all there for months on end. When I use my windows or linux ftp clients I can... (10 Replies)
Discussion started by: IngmarMeins
10 Replies

7. UNIX for Dummies Questions & Answers

Kind of weird question

I recently purchased a book titled Hacking: The Art of Exploitation. When I got it home I read the preface and found out that i shouldnt have bought it. It says the code examples in this book were done on an x86 based computer (I have a mac). Is there anything I can do to make my mac run similar to... (2 Replies)
Discussion started by: Cyberaxe
2 Replies

8. UNIX for Dummies Questions & Answers

FTP from SCO UNIX to Windows XP PC

I am trying to start an FTP session from my UNIX PC to a PC running XP. I aim to run a cron to manipulate remote files on the Windows M/C. I cannot connect to the Windows M/C when i start rthe FTP session on the UNIX box. I can do it fine the other way round. I have set entries in /etc/hosts... (2 Replies)
Discussion started by: farmacy
2 Replies

9. UNIX for Advanced & Expert Users

FTP - Sco Unix to ProFTPD Error

First off I did try google for help on this topic, didn't really find anything. When I try to ftp from my SCO Unix box (SCO_SV servername 3.2 5.0.5 i386) to a proFTPD server within my company I get this error Connected to 10.?.?.?. 220 ProFTPD Server ftp.hostname.com Name (10.?.?.?:root):... (1 Reply)
Discussion started by: whegra
1 Replies

10. UNIX for Dummies Questions & Answers

what kind of UNIX

ok, so i want to figure out what type of UNIX i have and in this book im reading about it, it says that i can figure out what type i have by typing the command uname in the prompt. So i did this and it came up saying Darwin?? is that part of System V UNIX or BSD or do i have LINUX? if anyone can... (2 Replies)
Discussion started by: hiei
2 Replies
Login or Register to Ask a Question