10-10-2008
Recheck
Sorry, I just rechecked again the code. The tag "ftp return" is hard-coded. But the value 32 is the value returned by the built-in "ftp put" function in the code. It is written in dsd (it's a language used by particular framework product, derived from TCL as I know).
The manual says the "ftp put" will return non-zero value if success, else 0.
Usually it return 226 for every file uploaded, but recently some times it return 32 and no file uploaded.
Below is the sample success log :
[20081009230000]:[ INFO ] : Total Files in Dir are 4
[20081009230000]:[ INFO ] : FTP Connected to xx.xx.x.xx (edited)
[20081009230000]:[ ERROR ] : Remote Dir is /xx/xx/xx/ (edited)
[20081009230000]:[ ERROR ] : Total Files in Dir are 4
[20081009230000]:[ ERROR ] : ftp return 226
[20081009230000]:[ ERROR ] : Error String is Transfer complete.
[20081009230000]:[ ERROR ] : File uploaded xxx
[20081009230001]:[ ERROR ] : ftp return 226
[20081009230001]:[ ERROR ] : Error String is Transfer complete.
[20081009230001]:[ ERROR ] : File uploaded yyy
[20081009230001]:[ ERROR ] : ftp return 226
[20081009230001]:[ ERROR ] : Error String is Transfer complete.
[20081009230001]:[ ERROR ] : File uploaded zzz
[20081009230003]:[ ERROR ] : ftp return 226
[20081009230003]:[ ERROR ] : Error String is Transfer complete.
[20081009230003]:[ ERROR ] : File uploaded aaa
[20081009230003]:[ WARNING ] : Total files Uploaded are 4
[20081009230003]:[ INFO ] : Closing the File Handle
Below for the failed upload log :
[20081003234500]:[ INFO ] : Total Files in Dir are 2
[20081003234500]:[ INFO ] : FTP Connected to xx.xx.x.xx (edited)
[20081003234500]:[ ERROR ] : Remote Dir is /xx/xx/xx/ (edited)
[20081003234500]:[ ERROR ] : Total Files in Dir are 2
[20081003234500]:[ ERROR ] : ftp return 32
[20081003234500]:[ ERROR ] : ftp return 32
[20081003234500]:[ WARNING ] : Total files Uploaded are 0
[20081003234500]:[ INFO ] : Closing the File Handle
The OS is the same for both client and server. But I don't know what the FTP server software it used..
Could that be the bug in the product?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi guys,
I am having a problem to determine if the FTP request I had was successful or not... Here is what I do:
In a shell script I call another shell script to do the FTP like:
#!/bin/ksh
echo "Hello..."
...
# call do_ftp.sh
do_ftp.sh $SERVER $USR $PASS $FILE....
status=$?
if ; then
... (7 Replies)
Discussion started by: Shaz
7 Replies
2. UNIX for Advanced & Expert Users
Does anyone know what the return code will be if an ftp fails because the /var/tmp filesystem is full?
AIX 4.3 (1 Reply)
Discussion started by: lawadm1
1 Replies
3. Shell Programming and Scripting
Hello,
I still have problems when trying to figure out if the status of an ftp was successful. I ftp to different types (nt, vax, unix, etc...) of machines. I am trying to write a universal script that will ftp a file and then check to see if the ftp was successful. I have tried the... (12 Replies)
Discussion started by: blt123
12 Replies
4. Shell Programming and Scripting
Hi all,
i have written a code to ftp a file from one server to other.The ftp is happeneing successfully,but i am not able to capture the return code,to check if ftp has failed.
plz help me to find out the return code....this is urgent
below is the code i have written... (3 Replies)
Discussion started by: anju
3 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I have a problem to identify the error code thrown by FTP Server while uploading files.
The message is : ftp return 32.
I couldn't find out what is the meaning of that. :confused:
OS is Sun Solaris 2.10.
Anyone can help?
Thanks a lot (1 Reply)
Discussion started by: wilsonSurya
1 Replies
6. Shell Programming and Scripting
I have a automated FTP script that gets a file using mget. I am using mget because the date will change on the file frequently. The mget works, however if I incorrectly type the file (e.g. if I want to get /dog123 and I enter /dg*) I do not receive and error code from in the FTP session. The... (1 Reply)
Discussion started by: dog123
1 Replies
7. Shell Programming and Scripting
Hey guys,
I'm new to the programming world in general, and I only write in applescript so far. I am trying to find a shell script that will return a list of all the sub directories (or folders) within a directory on my ftp server. The server needs a username and password. I would assume the... (4 Replies)
Discussion started by: thriftinkid
4 Replies
8. UNIX Desktop Questions & Answers
below is my code , but for some reason the return part is not working, only file transfer is happening and no exit status is checked .please me help me to fix this code
#!/bin/sh
#set -vx
ftp -nv sitelocation << !
user username password
lcd localdir
cd /remote dir
mget *.*
... (4 Replies)
Discussion started by: gwrm
4 Replies
9. Shell Programming and Scripting
Hello folks,,,
I am calling a Unix shell script from java. The unix script is transferring a file through FTP. I wonder how can I confirm whether the script has been executed properly without any error. Is there any way to find the return value from the script.
My FTP script is given below
... (3 Replies)
Discussion started by: dinesh1985
3 Replies
10. Shell Programming and Scripting
is it possible to capture the 3 digit return code of ftp commands in a local variable inside a shell script?
Code:
ftp remoteserver << EOFTP
quote USER uid
quote PASS pass
prompt
cd remote_directory
mput file.txt
bye
EOFTP
in the above script, if cd ... (4 Replies)
Discussion started by: Little
4 Replies
IPS(4) BSD Kernel Interfaces Manual IPS(4)
NAME
ips -- IBM/Adaptec ServeRAID controller driver
SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file:
device pci
device scbus
device ips
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
ips_load="YES"
DESCRIPTION
The ips driver claims to support the IBM (now Adaptec) ServeRAID series SCSI controller cards.
These cards come with a built in configuration utility stored in the firmware known as the ISPR. This utility is accessed with the <Ctrl+I>
key combination during the initial card POST.
It is highly recommended that this utility be used to configure the card before attempting to diagnose the below error messages.
In some cases, the ips driver can have difficulties attaching during the system initialization period. To avoid these difficulties, set the
hw.ips.0.disable tunable to 1. It will prevent the driver from attaching.
HARDWARE
Controllers supported by the ips driver include:
o IBM ServeRAID 3H
o ServeRAID 4L/4M/4H
o ServeRAID Series 5
o ServeRAID 6i/6M
o ServeRAID 7t/7k/7M
DIAGNOSTICS
Several error codes may be shown when the card initializes the IBM ISPR utility and are independent of FreeBSD.
ips%d: failed to get adapter configuration data from device
ips%d: failed to get drive configuration data from device
Unable to obtain adapter or drive configuration.
ips%d iobuf error
A buffer input/output error has occurred. [ENXIO]
General adapter errors:
Attaching bus failed
This message is undocumented.
WARNING: command timeout. Adapter is in toaster mode, resetting
A command timeout has caused the adapter to be reset.
AIEE! adapter reset failed, giving up and going home! Have a nice day
An error occurred while attempting to reset the adapter.
unable to get adapter configuration
unable to get drive configuration
There was an error when attempting to get configuration information.
Adapter error during initialization.
adapter initialization failed
There was an error while attempting to initialize the adapter.
adapter failed config check
adapter clear failed
There was an error while checking the adapter.
device is disabled
The adapter is disabled.
resource allocation failed
irq allocation failed
irq setup failed
The driver was unable to allocate resources for the device.
Error messages due to DMA:
can't alloc command dma tag
can't alloc SG dma tag
can't alloc dma tag for statue queue
dmamap failed
Failure to map or allocate DMA resources.
Cache, buffer, and command errors:
failed to initialize command buffers
no mem for command slots!
The ips driver will return [ENOMEM] in such cases.
ERROR: unable to get a command! can't flush cache!
ERROR: cache flush command failed!
ERROR: unable to get a command! can't update nvram
ERROR: nvram update command failed!
ERROR: unable to get a command! can't sync cache!
ERROR: cache sync command failed!
ERROR: unable to get a command! can't sync cache!
ERROR: etable command failed!
COMPATIBILITY
Unlike many of the other SCSI devices in FreeBSD, the ips driver does not use the cam(4) SCSI subsystem.
SEE ALSO
ch(4), da(4), sysctl(8)
AUTHORS
The ips driver was written by David Jefferys and Scott Long <scottl@FreeBSD.org>.
This manual page was written by Tom Rhodes <trhodes@FreeBSD.org>.
BSD
November 4, 2006 BSD