- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Incomplete file received via FTP
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
09-18-2003 07:09 PM
09-18-2003 07:09 PM
Incomplete file received via FTP
Is there a way to test for an EOF marker in a script before I process the file ? Or perhaps count the number of records and compare before processing ?.
The files are relatively small 1200 - 2000 recs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 07:15 PM
09-18-2003 07:15 PM
Re: Incomplete file received via FTP
Another possible answer would be to first transfer the file to a PC at the other end. Then you can use a gui ftp tool like ws_ftp and see the progress as it uploads onto the hp box.
If it fails, ws_ftp makes a nasty noise to let you know.
I think the more important issue is to figure out why its failing.
On hp box.
inetd -l
tail -f /var/adm/syslog/syslog.log
to the transfer and watch the errors....
You might get something useful for diagnosis....
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 08:37 PM
09-18-2003 08:37 PM
Re: Incomplete file received via FTP
In addition, one possible reason for a file getting truncated is a timeout. Check that in the IBM side.
Kind regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 09:02 PM
09-18-2003 09:02 PM
Re: Incomplete file received via FTP
Checksum sounds like it's worth further investigation on my part... Even though I can't find a man entry on it.
The syslog looks like this:
ftpd[8210]: USER hquest
ftpd[8210]: PASS password
ftpd[8210]: FTP LOGIN FROM 10.4.2.12 [10.4.2.12], hquest
ftpd[8210]: CWD /lawp/interfaces/hbo/hc/
ftpd[8210]: PWD
ftpd[8210]: PORT
ftpd[8210]: RETR hqglchg.dat
ftpd[8210]: QUIT
ftpd[8210]: FTP session closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 09:03 PM
09-18-2003 09:03 PM
Re: Incomplete file received via FTP
I think SEP's checksum solution is the only way to go here, apart from finding out what is causinmg the problem in the first place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 09:17 PM
09-18-2003 09:17 PM
Re: Incomplete file received via FTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2003 09:54 AM
09-19-2003 09:54 AM
Re: Incomplete file received via FTP
We do hundreds of these daily From DOS/VSE to HP-UX. I have to admit I have not seen your truncation problem without the DOS/VSE ftp batch job failing.
Couple of things to check:
1. As mentioned, the timeout on your DOS/VSE ftp product. Some use CSI's stack, some use BSI's stack. Those are the two heavy hitters. If you are using BSI's, I can help here.
2. Check the VSE listing from the ftp batch job. Look for byte count as well as errors.
3. Check the timeout option on your UNIX side.
4. As mentioned, if there is an "eye catcher" for the last record in the file, tail the file, grep for your "eye catcher", process or not process on the results.
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2003 10:07 AM
09-19-2003 10:07 AM
Re: Incomplete file received via FTP
ftpput.pl file1 file2 file2
will login, cd to /tmp, go to ascii mode, and then start transfering file1, file2, and file3. Error checking is done and it will attempt 5 retries before giving up. An exit status of zero is returned on success.
You can avoid the plaintext passwd by using .netrc. I made those comments in the code.
The good news is that this script will run unchanged on any platform that has Perl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2003 10:56 AM
09-19-2003 10:56 AM
Re: Incomplete file received via FTP
A good test for a NIC is to get your local Cisco guy to do an extended ping of your IP address and tell it to sweep a range of sizes from the smallest up to 18000. He should see nothing but !'s. If you get a . once in a while then the NIC is probably at fault. If you get Q's you need to turn off Source Quench in ndd. Also check that you have the latest patches for the NIC driver. Some of the outdated drivers will cause the same problem.
You might also want to investigate potential bottlenecks in the network and see if they are overloaded and dropping packets. You might have to put some custom queuing on the routers to give your ftp traffic a bit higher priority.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 02:50 AM
09-25-2003 02:50 AM
Re: Incomplete file received via FTP
For what its worth, we always used to insist that the files we were to receive had at least a header record that told us how many records were in the file, and more often than not we had a trailor record too. That way we could do some post-FTP validation to ensure a complete file had been transferred. The transfer process itself was done using Perl (so much better than any other method we could find).
If you are able to influence how the files are generated, perhaps you can request that header/trailor records are added?