<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FTP and bytes statistic in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216138#M569063</link>
    <description>Dave,&lt;BR /&gt;that is exactly what I'm doing.&lt;BR /&gt;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".&lt;BR /&gt;The other FTPs have that line, with the exception of the 0 bytes files.</description>
    <pubDate>Thu, 11 Mar 2004 11:17:26 GMT</pubDate>
    <dc:creator>Luis Toro</dc:creator>
    <dc:date>2004-03-11T11:17:26Z</dc:date>
    <item>
      <title>FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216134#M569059</link>
      <description />
      <pubDate>Thu, 11 Mar 2004 10:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216134#M569059</guid>
      <dc:creator>Luis Toro</dc:creator>
      <dc:date>2004-03-11T10:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216135#M569060</link>
      <description>What do you need to know?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Thu, 11 Mar 2004 10:19:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216135#M569060</guid>
      <dc:creator>David Burgess</dc:creator>
      <dc:date>2004-03-11T10:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216136#M569061</link>
      <description>[inadvertently submitted question without any text...]&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;Is this a "bug" ? Is there a way to ensure I always get the "bytes sent" line.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2004 10:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216136#M569061</guid>
      <dc:creator>Luis Toro</dc:creator>
      <dc:date>2004-03-11T10:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216137#M569062</link>
      <description>This works.&lt;BR /&gt;&lt;BR /&gt;ftp -nv &amp;lt;&amp;lt; EOF &amp;gt; /tmp/ftplog.dave 2&amp;gt;&amp;amp;1&lt;BR /&gt;open 0&lt;BR /&gt;user username password&lt;BR /&gt;ascii&lt;BR /&gt;lcd /etc&lt;BR /&gt;cd /tmp&lt;BR /&gt;put hosts&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;grep bytes /tmp/ftplog.dave&lt;BR /&gt;&lt;BR /&gt;I always get bytes sent in the logfile, although I have only run it a few times.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Thu, 11 Mar 2004 10:53:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216137#M569062</guid>
      <dc:creator>David Burgess</dc:creator>
      <dc:date>2004-03-11T10:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216138#M569063</link>
      <description>Dave,&lt;BR /&gt;that is exactly what I'm doing.&lt;BR /&gt;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".&lt;BR /&gt;The other FTPs have that line, with the exception of the 0 bytes files.</description>
      <pubDate>Thu, 11 Mar 2004 11:17:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216138#M569063</guid>
      <dc:creator>Luis Toro</dc:creator>
      <dc:date>2004-03-11T11:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216139#M569064</link>
      <description>I see your ftp server is &lt;BR /&gt;&lt;BR /&gt;FTP server (Version 1.1.214.4(PHNE_27765) Wed &lt;BR /&gt;&lt;BR /&gt;You could try installing PHNE_29461 on the server you are ftp'ing to.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www4.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main" target="_blank"&gt;http://www4.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main&lt;/A&gt;|patch.breadcrumb.search|&amp;amp;patchid=PHNE_29461&amp;amp;context=hpux:800:11:11&lt;BR /&gt;&lt;BR /&gt;It fixes the follwing:-&lt;BR /&gt;&lt;BR /&gt; 1. JAGae85593/SR8606323128.&lt;BR /&gt;    Under certain conditions ftpd does not work properly.&lt;BR /&gt;&lt;BR /&gt; 2. JAGae69021/SR8606305973.&lt;BR /&gt;    ftp generates an incorrect transfer report while&lt;BR /&gt;    storing files of size more than 2 GB.&lt;BR /&gt;&lt;BR /&gt; 3. JAGae58493/SR8606294799.&lt;BR /&gt;    'get' command of ftp does not function properly.&lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Thu, 11 Mar 2004 11:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216139#M569064</guid>
      <dc:creator>David Burgess</dc:creator>
      <dc:date>2004-03-11T11:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216140#M569065</link>
      <description>You might want to take the opposite approach. After the put command, use the dir command for the transferred file and extract the size from the fifth field as in:&lt;BR /&gt;&lt;BR /&gt;dir /etc/hosts&lt;BR /&gt;200 PORT command successful.&lt;BR /&gt;150 Opening ASCII mode data connection for /usr/bin/ls.&lt;BR /&gt;-rw-r--r--   1 bin        bin           1755 Feb 26 20:19 /etc/hosts&lt;BR /&gt;226 Transfer complete.&lt;BR /&gt; &lt;BR /&gt;SIZE=$(grep $MYFILE ftp_log | awk '{print $5}'</description>
      <pubDate>Thu, 11 Mar 2004 11:32:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216140#M569065</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-03-11T11:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216141#M569066</link>
      <description>You might want to take the opposite approach. After the put command, use the dir command for the transferred file and extract the size from the fifth field as in:&lt;BR /&gt;&lt;BR /&gt;dir /etc/hosts&lt;BR /&gt;200 PORT command successful.&lt;BR /&gt;150 Opening ASCII mode data connection for /usr/bin/ls.&lt;BR /&gt;-rw-r--r--   1 bin        bin           1755 Feb 26 20:19 /etc/hosts&lt;BR /&gt;226 Transfer complete.&lt;BR /&gt; &lt;BR /&gt;SIZE=$(grep $MYFILE ftp_log | awk '{print $5}')&lt;BR /&gt; &lt;BR /&gt;Tha way, you can be sure of the remote size rather than relying on a transfer status report.</description>
      <pubDate>Thu, 11 Mar 2004 11:33:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216141#M569066</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-03-11T11:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216142#M569067</link>
      <description>Bill, Dave:&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thank again.</description>
      <pubDate>Thu, 11 Mar 2004 11:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216142#M569067</guid>
      <dc:creator>Luis Toro</dc:creator>
      <dc:date>2004-03-11T11:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216143#M569068</link>
      <description>I have just learned that webalizer can be used to analyze and provide statistics on the ftp log.&lt;BR /&gt;&lt;BR /&gt;Here is a link.&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/webalizer-2.01.10/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/webalizer-2.01.10/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Its not easy to install and this install is missing the primary config file, but I can provide that.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 11 Mar 2004 11:54:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216143#M569068</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-11T11:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216144#M569069</link>
      <description>Steven,&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;magnus.andersen@walkerfirst.com&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Magnus</description>
      <pubDate>Mon, 19 Apr 2004 10:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216144#M569069</guid>
      <dc:creator>Magnus Andersen</dc:creator>
      <dc:date>2004-04-19T10:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: FTP and bytes statistic</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216145#M569070</link>
      <description>Awstats will also do this for you - works with http, mail, ftp...etc.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://awstats.sourceforge.net/" target="_blank"&gt;http://awstats.sourceforge.net/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 19 Apr 2004 10:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-bytes-statistic/m-p/3216145#M569070</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-04-19T10:28:42Z</dc:date>
    </item>
  </channel>
</rss>

