KERBEROS error in FTP script

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Sgiri1
Participant
Posts: 43
Joined: Sat Nov 08, 2008 10:58 pm
Location: Tambaram

KERBEROS error in FTP script

Post by Sgiri1 »

Hi,

The FTP script that i'm using to FTP a file from a UNIX server to a remote system of type VMS throws me the following error

FTP_CHECK1..JobControl (@Execute_Command_1): Executed: sh TEST/scripts/FTPScript.sh
Reply=0
Output from command ====>
I never heard of the AUTH command. Try HELP.
I never heard of the AUTH command. Try HELP.
KERBEROS_V4 rejected as an authentication type
local: check.txt: No such file or directory
%%RMS-E-FNF, file not found
FTP of check.txt is incomplete

the script that im using is
#!/bin/sh
HOST='host1'
USER='whoever'
PASSWD='watever'
FTPPATH=temp/test
ifile='check.txt'

#FTP concatenated file
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
binary
cd $FTPPATH
put $ifile
get $ifile retrieval.$$
quit
END_SCRIPT
if [ -f retrieval.$$ ]
then
echo "FTP of $ifile is complete"
rm -f retrieval.$$
else
echo "FTP of $ifile is incomplete"
fi
exit 0

the above script is able to connect to the remote server but is not able to locate the file in the local.the source is a UNIX server with SFTP. when i run the script from putty im able FTP the file to the desired location but when i run it from DS execute command stage in sequencer job, i get the above error.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

A) That KERBEROS message is informational, not an error, just saw the same thing last week. Google for it. B) Use full paths rather than relative ones.
-craig

"You can never have too many knives" -- Logan Nine Fingers
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Kerberos FTP defaults some of the authentication options that regular FTP supports (yah, i was surprised too!). You might want to also try the regular ftp with some of its authentication setting options and see if the auth messages go away. We switched for exactly that reason.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

For me, this *was* "regular ftp" the script was running, but it apparently had KERBEROS compiled in as an option. There was nothing for me to switch back to as far as I know... unless it is another of those things that unalias would fix! :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Kryt0n
Participant
Posts: 584
Joined: Wed Jun 22, 2005 7:28 pm

Post by Kryt0n »

lcd to the local directory (where check.txt exists) before trying to put the file.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Search for other ftp executables, maybe in strange places like /usr/sbin/ftp or /sbin/ftp. You never know what might show up!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

usually you have /usr/bin/ftp and /usr/kerberos/bin/ftp available. Typing "which ftp" will show you path of one you are getting by default.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
Post Reply