Go Back   The UNIX and Linux Forums > Operating Systems > SCO
Search Forums:



SCO Santa Cruz Operation (SCO) was a software company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-02-2012
Registered User
 

Join Date: Nov 2007
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
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
Sponsored Links
    #2  
Old 02-02-2012
methyl methyl is offline Forum Staff  
Moderator
 

Join Date: Mar 2008
Posts: 5,646
Thanks: 203
Thanked 560 Times in 539 Posts
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.
Sponsored Links
    #3  
Old 02-03-2012
Registered User
 

Join Date: Nov 2007
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post

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

Attached Files
File Type: doc ftp A.doc (38.5 KB, 2 views)

Last edited by methyl; 02-03-2012 at 07:17 AM.. Reason: code tags
    #4  
Old 02-03-2012
jgt's Avatar
jgt jgt is offline Forum Advisor  
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 1,286
Thanks: 0
Thanked 89 Times in 86 Posts
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.)
Sponsored Links
    #5  
Old 02-03-2012
Registered User
 

Join Date: Nov 2007
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
both have same ftp client, i have installed the same os with mp5 on both machines.
Sponsored Links
    #6  
Old 02-03-2012
methyl methyl is offline Forum Staff  
Moderator
 

Join Date: Mar 2008
Posts: 5,646
Thanks: 203
Thanked 560 Times in 539 Posts
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 07:50 AM.. Reason: layout
Sponsored Links
    #7  
Old 02-08-2012
Registered User
 

Join Date: Nov 2007
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
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)
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Weird working of File Watcher job shahnazurs UNIX for Advanced & Expert Users 0 12-02-2010 12:48 PM
Which kind of UNIX to major investment banks use? rubrubber UNIX for Dummies Questions & Answers 5 01-22-2010 05:52 PM
how to determine which kind of unix is used gfhgfnhhn UNIX for Dummies Questions & Answers 2 03-01-2006 05:15 PM
Kind of weird question Cyberaxe UNIX for Dummies Questions & Answers 2 07-26-2005 05:19 PM
what kind of UNIX hiei UNIX for Dummies Questions & Answers 2 04-12-2004 07:15 PM



All times are GMT -4. The time now is 12:31 AM.