FTP


 
Thread Tools Search this Thread
Operating Systems Solaris FTP
# 1  
Old 07-05-2011
FTP

421 Service not available, remote server has closed connection,

I am running a script on Tandeem Box. It establishes the connection to sun server and from sun server it pushes the file to tandeem box.

Around 10 files are transfered properly after that I receive above error message.

Code:
05
Connecting to 172.31.xx.xx.........Established.
220 kplprdapp1 FTP server ready.
331 Password required for xyzdm.
230 User xyzdm logged in.
ftp> 250 CWD command successful.
ftp> 200 Type set to A.
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for DWCMATVT.
226 Transfer complete.
local: DWCMATVT remote: DWCMATVT
10374 bytes sent in  0.02 seconds (506.54 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for DWMMCMOT.
226 Transfer complete.
local: DWMMCMOT remote: DWMMCMOT
1483482 bytes sent in  0.19 seconds (7624.80 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for DWMMDEPO.
226 Transfer complete.
local: DWMMDEPO remote: DWMMDEPO
37187874 bytes sent in  4.26 seconds (8524.95 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for DWMMPMTS.
226 Transfer complete.
local: DWMMPMTS remote: DWMMPMTS
43750758 bytes sent in  5.04 seconds (8477.25 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for FXDFILE.
226 Transfer complete.
local: FXDFILE remote: FXDFILE
3865290 bytes sent in  0.54 seconds (6990.18 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for FXFILE.
226 Transfer complete.
local: FXFILE remote: FXFILE
13825890 bytes sent in  1.60 seconds (8438.65 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for FXGLSTAT.
226 Transfer complete.
local: FXGLSTAT remote: FXGLSTAT
151164 bytes sent in  0.04 seconds (3690.53 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for FXPFILE.
226 Transfer complete.
local: FXPFILE remote: FXPFILE
5586200 bytes sent in  0.77 seconds (7084.77 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for FXRVFILE.
226 Transfer complete.
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for INEXFILE.
226 Transfer complete.
local: INEXFILE remote: INEXFILE
21235654 bytes sent in  2.44 seconds (8499.16 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for STRCMMDD.
226 Transfer complete.
local: STRCMMDD remote: STRCMMDD
1531512 bytes sent in  0.19 seconds (7871.67 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for FRXD.
226 Transfer complete.
local: FRXD remote: FRXD
22746724 bytes sent in  2.57 seconds (8643.42 Kbytes/s)
ftp> 200 PORT command successful.
150 Opening ASCII mode data connection for MMVS.
226 Transfer complete.
local: MMVS remote: MMVS
3747744 bytes sent in  0.48 seconds (7624.80 Kbytes/s)
ftp> 421 Service not available, remote server has closed connection
ftp> Not connected.
ftp> Not connected.
ftp> Not connected.

Please someone help!!!!!!!

---------- Post updated at 02:43 PM ---------- Previous update was at 02:35 PM ----------

I have checked all settings under
Code:
/etc/ftpd. svcs-x |grep ftp

, is there some setting that I can do for user under ./profile.

Moderator's Comments:
Mod Comment Please use [CODE] tags when posting source listings, console output, ...

Last edited by pludi; 07-05-2011 at 06:33 AM.. Reason: More information
# 2  
Old 07-05-2011
A 421 indicates some sort of policy eror. It can happen whenever:
  • the maximum number of simultaneous FTP users is reached
  • the maximum number of files per session is reached
  • the maximum of number of simultaneous connections is reached
  • the user is somehow not authorized for another reason
By "Tandeem Box" do you mean a Tandem machine running NonStop?

Last edited by Morgan Greywolf; 07-05-2011 at 01:01 PM..
This User Gave Thanks to Morgan Greywolf For This Post:
# 3  
Old 07-05-2011
Hi,
1st off why are you using ftp. Use scp or at least sftp. There are clients for windows that use ssh/scp. I would check the firewall on the Solaris box and if the Tandeem Box uses a special account make sure the password is not expired on the Solaris box.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

FTP log only shows FTP LOGIN FROM entry?

OS: Solaris 9 Configuration /etc/syslog.conf daemon.debug /etc/inetd.conf ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd -A -l -d Found the ftp.log only generate those entries from other servers/hosts. Can we trace on all ftp entries either from/to the server? ... (6 Replies)
Discussion started by: KhawHL
6 Replies

2. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

3. AIX

ftp connect in passive mode , ftp settings

how to connect to ftp server in passive mode? ftp server.abc and how can i see ftp settings, doesn't exist some ftpd.conf there is some other file where i check the options and configurations of ftp server? Thanks (3 Replies)
Discussion started by: prpkrk
3 Replies

4. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host=192.168.0.1 /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine 192.168.0.1 login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

5. Shell Programming and Scripting

passing parameter to ftp script from output of another ftp

Hi, I have a ftp script which first gets all the file names and echo's the latest file. I'm using another ftp command sets to get the file name given by first ftp. The problem is the parameter is not accepted by second ftp. The error message i'm getting is > Rename Temp File calloc:ICMP... (5 Replies)
Discussion started by: ammu
5 Replies

6. UNIX for Advanced & Expert Users

Using FTP to check whether file is completely FTP... plz find the description below

Hi, We have some clients who will place huge files in to one of the remote server. And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients. My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies

7. Shell Programming and Scripting

ftp script not able to connect to ftp server.

I have the following ftp script to get files from a remote location. However, on running the script I find that I am not even able to connect to ftp server. I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP. IP used here is a dummy IP. What can go... (3 Replies)
Discussion started by: gram77
3 Replies

8. UNIX for Advanced & Expert Users

MVS->Unix FTP : Using chmod as part of FTP.

We are transferring file from mainframes to unix, & in FTP process itself we would like to set access rights for unix machine. Has anyone used chmod command in association with site command in ftp? How it should be used? Thanks in advance. (1 Reply)
Discussion started by: videsh77
1 Replies

9. Shell Programming and Scripting

FTP script to FTP file to UNIX - Solaris

Hello, A couple of times per week, i receive emails notifications when files are available for processing. Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies

10. Answers to Frequently Asked Questions

Automate FTP / Scripting FTP Transfers

One of our most frequent questions is how to automate ftp transfers. There are several approaches. Since I'm writing this post, we will start with my favorite technique. :) In Automated FTP task I present a simple example of my ksh co-process technique. And note that later in this thread I... (0 Replies)
Discussion started by: Perderabo
0 Replies
Login or Register to Ask a Question