- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP and bytes statistic
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
03-11-2004 02:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 02:19 AM
03-11-2004 02:19 AM
Re: FTP and bytes statistic
Regards,
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 02:33 AM
03-11-2004 02:33 AM
Re: FTP and bytes statistic
I have an FTP script whereby I redirect the output of an ftp "put", then I grep for "bytes sent" and compare against the size of the file to report on FTP success or failure. I noticed that if a file is 0 bytes I do not get the "bytes sent" line. Scripted around that shortcoming. However, on a particularly long ftp ( 11 gig. in 9 hours ), I did not get the "bytes sent" stat after the "Transfer Complete" line. This caused my script to report a failed FTP when in fact it was successful.
Is this a "bug" ? Is there a way to ensure I always get the "bytes sent" line.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 02:53 AM
03-11-2004 02:53 AM
Re: FTP and bytes statistic
ftp -nv << EOF > /tmp/ftplog.dave 2>&1
open 0
user username password
ascii
lcd /etc
cd /tmp
put hosts
bye
EOF
grep bytes /tmp/ftplog.dave
I always get bytes sent in the logfile, although I have only run it a few times.
Regards,
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:17 AM
03-11-2004 03:17 AM
Re: FTP and bytes statistic
that is exactly what I'm doing.
I've attached a word doc which has the function I scripted to transfer the files, along with the log output. The very first ftp is the one that has the issue: no "bytes sent" line after the "Transfer Complete".
The other FTPs have that line, with the exception of the 0 bytes files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:30 AM
03-11-2004 03:30 AM
SolutionFTP server (Version 1.1.214.4(PHNE_27765) Wed
You could try installing PHNE_29461 on the server you are ftp'ing to.
http://www4.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHNE_29461&context=hpux:800:11:11
It fixes the follwing:-
1. JAGae85593/SR8606323128.
Under certain conditions ftpd does not work properly.
2. JAGae69021/SR8606305973.
ftp generates an incorrect transfer report while
storing files of size more than 2 GB.
3. JAGae58493/SR8606294799.
'get' command of ftp does not function properly.
Hope that helps
Regards,
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:32 AM
03-11-2004 03:32 AM
Re: FTP and bytes statistic
dir /etc/hosts
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
-rw-r--r-- 1 bin bin 1755 Feb 26 20:19 /etc/hosts
226 Transfer complete.
SIZE=$(grep $MYFILE ftp_log | awk '{print $5}'
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:33 AM
03-11-2004 03:33 AM
Re: FTP and bytes statistic
dir /etc/hosts
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
-rw-r--r-- 1 bin bin 1755 Feb 26 20:19 /etc/hosts
226 Transfer complete.
SIZE=$(grep $MYFILE ftp_log | awk '{print $5}')
Tha way, you can be sure of the remote size rather than relying on a transfer status report.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:40 AM
03-11-2004 03:40 AM
Re: FTP and bytes statistic
Thanks for your input. The patch description certainly points to the problem I'm having, but Bill's suggestion is the simpler one to implement, and is probably more reliable in terms of what I'm trying to do.
Thank again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:54 AM
03-11-2004 03:54 AM
Re: FTP and bytes statistic
Here is a link.
http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/webalizer-2.01.10/
Its not easy to install and this install is missing the primary config file, but I can provide that.
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
04-19-2004 03:07 AM
04-19-2004 03:07 AM
Re: FTP and bytes statistic
Could you pass your installation expertise with webalizer along. I'd very much like to have it installed on one of my webservers running HP-UX 11
magnus.andersen@walkerfirst.com
Thanks,
Magnus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 03:28 AM
04-19-2004 03:28 AM
Re: FTP and bytes statistic
http://awstats.sourceforge.net/
Rgds...Geoff