- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File truncated in 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
Discussions
Discussions
Discussions
Forums
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
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
тАО05-23-2001 08:49 AM
тАО05-23-2001 08:49 AM
File truncated in ftp
Recently, I was assigned to take over a production system running on HP-UX 10.20 but with a serious ftp issue. I am new to HP-UX but have familiarity with Unix environment.
The problem I encountered is related to file truncation using ftp. We have a scheduled (Cron) script that executes a "mget *" from several remote servers (Novell, NT and Sun) daily. Sometimes, some of the files received were truncated (ie. received 130424 bytes instead of the actual 160812 bytes.) This problem is intermittent and not consistent. As I am new to this platform, I have trouble knowing where to begin to look for clues.
Would appreciate any help available. If you need addition info, I'd be most happy to furnish. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 09:26 AM
тАО05-23-2001 09:26 AM
Re: File truncated in ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 09:28 AM
тАО05-23-2001 09:28 AM
Re: File truncated in ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 09:40 AM
тАО05-23-2001 09:40 AM
Re: File truncated in ftp
All the remote server does not have firewall so ruled out as well.
I was having problem with a certain files but of not particular type. Maybe out of 20 files, 2 to 3 would be truncated. Basically, all the are reports in ascii format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 09:42 AM
тАО05-23-2001 09:42 AM
Re: File truncated in ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 09:48 AM
тАО05-23-2001 09:48 AM
Re: File truncated in ftp
By the way, how would the hash affects the "file truncation" ? Can you kindly enlighten ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 09:57 AM
тАО05-23-2001 09:57 AM
Re: File truncated in ftp
Try set -x in line 1 of script and ./script >/tmp/ctrl.log 2>&1,check ctrl.log for all errors.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 09:58 AM
тАО05-23-2001 09:58 AM
Re: File truncated in ftp
Since you indicated that this is on a LAN and not a WAN, I am willing to assume this is not a network issue. I also thought that since you were transferring from so many platforms that it could simply be an acsii/binary transfer issue. I assume you have ruled that out. My best explanation for what is happening is that your cron jobs are sometimes running before some of the files have finished being written. I assume you can do interactive ftp transfers without incident.
I think you may need to modify your scripts to first do a 'dir' command and examine the timestamps and only get those files which have not been modified in perhaps the last 5 minutes.
Hope this helps, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 10:00 AM
тАО05-23-2001 10:00 AM
Re: File truncated in ftp
Also, you could put in a "dir" command in your script to get a directory listing of the files before you transfer them. This would give you some idea of the sizes of the files before you transfer them. It won't solve your truncation problem but it may give you some more information about what is happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 10:04 AM
тАО05-23-2001 10:04 AM
Re: File truncated in ftp
I am totally agree with Mr Clay. I had same problem couple month ago and solution was to use dir command and ftp file one by one in loop.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2001 09:45 AM
тАО05-24-2001 09:45 AM
Re: File truncated in ftp
Thanks for your suggestion. We'll try it out and hope it works!
Hi Sachin
It good to know that the Mr. Clay suggest works. Prior to this, were you using "mget *" command and hence experience file truncation ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2001 04:15 AM
тАО05-25-2001 04:15 AM
Re: File truncated in ftp
One point in time I had a script written in EXPECT for ftp transfers. The files that took longer than the timeout were truncated ( during the transfer ftp doesn't display anything )so I had to use hash and get arround the timeout. I bet this is the main resons has was implemented on ftp.
Regards,
Ovidiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2001 10:19 AM
тАО05-28-2001 10:19 AM
Re: File truncated in ftp
I doubt that my problem is due to timeout as the servers are on LAN.
I thought that the hash command will print out the # for every 1KB trasferred. So how this help to get arround the timeout problem ? Can you enlighten.
Regards,
Ovidiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2001 10:30 AM
тАО06-05-2001 10:30 AM
Re: File truncated in ftp
- you're using a script for ftp
- the script times out if there's no input for a predefined period of time
- the file transfer takes longer than the time out period.
If hash is ON: after every 1K a # would be displayed, the script would have something to read on the input and would not time out (unless is unable to tranfer 1K/timeout period).
Regards,
Ovidiu