- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp not completing all files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 11:43 AM
07-09-2002 11:43 AM
ftp not completing all files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:06 PM
07-09-2002 12:06 PM
Re: ftp not completing all files
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:10 PM
07-09-2002 12:10 PM
Re: ftp not completing all files
I had a problem with very long ftp's between two hp9000's. The problem was with the speed setting on the lan card conflicting with the network switch. But you run it by hand and it seems to work. So this is probably not it.
Another idea: your environment when running it via cron is slightly different when running it by hand? Perhaps you are a different user? Or variables used for the ftp are not set when running via cron?
Type " env > /tmp/run.byhand"
Add " env > /tmp/run.bycron"
to your cron script.
Now you can compare the two text files.
just trying to help.
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:15 PM
07-09-2002 12:15 PM
Re: ftp not completing all files
On the receiving end, what are the permissions of the file that it's hanging on?
Also, think about rewriting your ftp script to use perl, if you already haven't:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xae627bb04b5cd611abdb0090277a778c,00.html
it allows for better error reporting, trapping, and restarting.
Also, it would be better if you tar'ed those files up into a single file and ftp'ed them.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:21 PM
07-09-2002 12:21 PM
Re: ftp not completing all files
I also would make sure that you explicitly set the FTP transfer mode as needed.
It seems to me that after you get any network problems resolved, you still have a fundamental problem. You are assuming that your FTP scripts work. A better idea is to introduce some error checking and an automatic retry if you receive a bad status. The easy way to do this is via Perl with the Net::FTP module you can download from www.cpan.org. That will make the error checking about as easy as it gets.
The attached perl script will get you started and will work on UNIX, Windows, VMS, ...
Use it like:
ftp.pl myfile1 ...
STAT=$?
if [ ${STAT} -eq 0 ]
then
echo "Transfer of myfile1 ok"
fi
This example, logs in, cd to /tmp, sets up for ASCII transfers (you can simply change 'acsii()' to 'binary()' if you need to), and starts tranferrring myfile1. It looks at the transfer status and will retry up to 5 times.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:25 PM
07-09-2002 12:25 PM
Re: ftp not completing all files
No, have not checked the two files with checksum. The problem is in the directory where the ftp files are going, I show approximately half of the files loaded with data and the others come with "0" data. I will ask the person who is running this load process to use checksum to make sure he got it all FTPed, however, we are still not completing the load process yet. thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:27 PM
07-09-2002 12:27 PM
Re: ftp not completing all files
I am not sure how the user is running their load process. It may be by a cron job, but its being ran from another server, which I believe it a MS server. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:33 PM
07-09-2002 12:33 PM
Re: ftp not completing all files
Also, check the obvious stuff: make sure you have enough space on the target server, *and* enough inodes, make sure that the nics on both systems are set in coordination with the router to which they are attached (either 100 half or 100 full, but not auto), make sure quoatas haven't been enabled on directory on the target server, and if you are using ACL's that you aren't having a problem there.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:33 PM
07-09-2002 12:33 PM
Re: ftp not completing all files
The permission on the file that is hanging on is the same as the previous successful FTP files. However, the owner/group of the ftp_dump directory is itapload/usr and I go into the ftp_dump directory, I see the owner/group of all the files are itapload/dba? I doubt this is the problem, because the other files prior to the hand were successful. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:49 PM
07-09-2002 12:49 PM
Re: ftp not completing all files
Under this is a listing, and the FTP is listed as Disabled.
But users have always been able to FTP, so what is this Disabled supposed to disable?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 02:28 PM
07-09-2002 02:28 PM
Re: ftp not completing all files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 09:40 PM
07-09-2002 09:40 PM
Re: ftp not completing all files
check if there's enough diskspace in the directory containing the ftp-files.
Go to the directory and execute 'bdf'
hecou