FTP failed


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers FTP failed
# 1  
Old 05-12-2011
FTP failed

Hi All,
We are using the following step to place a file in server using FTP

Code:
STEP_EXECUTE STEP090 /usr/pjc/bin/FTP -i
DATASET FTPIN $sic/ctl/ftpsic.ctl DISP=OLD,KEEP,KEEP
STEP_END

If we run this step we are getting the error.

Code:
ftp> open arg.mnd.appsc.com

Connected to arg.mnd.appsc.com.

220 arg.mnd.appsc.com FTP server (Version 1.1.214.4(PHNE_38458) Mon Feb 15 06:03:12 GMT 2010) ready.

331 Password required for sicind.

530 Login incorrect.

Login failed.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> quit  <<--Inserted command (reason: error 5 encountered)

221 Goodbye.


I have opened the script ftpsic.ctl and checked it ,in that there is no user name and password
could you please help me how user name and password is taking.

ftpsic.ctl as follows

Code:
open arg.mnd.appsc.com
put file1.txt
quit

Please help me.
Thanks in advance

Last edited by pludi; 05-12-2011 at 06:28 AM..
# 2  
Old 05-12-2011
STEP_EXECUTE

STEP_END

What command language is that?

Is the username sicind for the username running the ftp process? If so, that is where the username comes from.
change:
Code:
open arg.mnd.appsc.com
put file1.txt
quit

to
Code:
open arg.mnd.appsc.com
USER correct_username_goes_here
PASS passw_for_correct_username_goes_here
put file1.txt
quit

You may be using LDAP or Kerberos to authenticate, but it doesn't look like that
# 3  
Old 05-13-2011
Thanks for your prompt reply.
We are using the following code only before it's running fine.Now the password has been expired so that we are getting the error .

Login incorrect.
Login failed.

open arg.mnd.appsc.com
put file1.txt
quit

This is running automatically.That time it's not asking for user name and password.
If we run this open arg.mnd.appsc.com step manually it's prompting for user name and password.
Please help me.
Thanks in advance
# 4  
Old 05-13-2011
you can change the password there is a tutorial on google for it
# 5  
Old 05-13-2011
Look for a file called ".netrc" in the home directory of the user who owns the ftp job.
A ".netrc" file is used for ftp autologin.
See "man .netrc".
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to check FTP service failed in between on Solaris 10?

Hi Guys, I need to check why FTP service on Solaris 10 machine did not work in between. What does Jun-29 means here? Does it mean that it has been RUNNING/UP since Jun 29th ? -bash-3.2$ sudo /usr/bin/svcs |grep -i ftp legacy_run Jun_29 lrc:/etc/rc3_d/S90proftpd online ... (3 Replies)
Discussion started by: manalisharmabe
3 Replies

2. UNIX for Advanced & Expert Users

FTP failed to copy mulitple files from multiple directory

I am using below scripts to copy all the files from multiple folders. By executing individually command i am able to copy all the files but using scripts only getting first file. System is ignoring the second CD and mget command. HOST=server.com USER=loginid PASSWD="abc" echo "open $HOST... (6 Replies)
Discussion started by: meetvipin
6 Replies

3. AIX

AIX ftp/sftp script monitor to failed logins

Hi All, Any idea on how to write a script on AIX 5.3 to monitor ftp or sftp login failed. Thanks and more power, Itik (2 Replies)
Discussion started by: itik
2 Replies

4. UNIX for Dummies Questions & Answers

FTP: Error -140: remote mkdir failed

I've just installed vsftpd on Ubuntu 9.04 server. I can access using my ftp client, however I cannot use mkdir either upload files. I get the following errors: `Error -140: remote mkdir failed` My configuration file has: write_enable = YES Is there some other parameter I should... (2 Replies)
Discussion started by: aneuryzma
2 Replies

5. Shell Programming and Scripting

automatic FTP failed

I have automated ftp for different scripts. every script uses different login and passwords for different server. it reads the username and password from netrc. there is 1 particular script that is failing. this script is failing in FTP step. i have checked the logs it says login failed. but... (5 Replies)
Discussion started by: dazdseg
5 Replies

6. Solaris

FTP login failed.

Hi guys, Can you please help me. I have SUN V100 server running solaris 8. I also have a Redhat Linux 6.2 machine and a windows XP machine on the network. I'm trying to copy files from the Linux and XP machines to the V100 server. When I try to ftp to the solaris machine, I'm challenged... (2 Replies)
Discussion started by: Stin
2 Replies

7. AIX

SFTP Failed---Request for subsystem 'sftp' failed on channel 0

Hi, While I am trying SFTP my machine to another unix machine , it was working fine till 10 min back. But now i am getting the below error "Request for subsystem 'sftp' failed on channel 0" Could you please someone help me to solve or analyise the root cause... Cheers:b:, Mahiban (0 Replies)
Discussion started by: mahiban
0 Replies

8. UNIX for Advanced & Expert Users

Capturing failed FTP error

Hi All, Please check the below ftp related job, which is deleting the files from remote host. Problem is it is not capturing the ftp failure error, and the exit status is still '0' eventhough the deletable files are not present in remote location OR ftp credential are incorrect. ... (5 Replies)
Discussion started by: ganapati
5 Replies

9. AIX

ftp check for failed attempts

Hi, I have created the below ftp script to put files over to our capacity server, the check at the end works if ftp fails to run however if the script cannot login or the transfer itself failed there is no warnings. Does anyone know the syntax to trap the erorr codes or to put a check within... (3 Replies)
Discussion started by: chlawren
3 Replies

10. Shell Programming and Scripting

failed to access directory thru ftp

Hi all, I am a beginner to unix and ftp too.So i request your valuable comments. Requirement: I want to put a specific file into a server(linux) and under a particular directory path in that server as /caps/details/data/ Problem : I login to that server through the command `ftp... (1 Reply)
Discussion started by: DILEEP410
1 Replies
Login or Register to Ask a Question

Featured Tech Videos