<?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-Script with many mget-command hangs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502754#M597329</link>
    <description>Hello Craig,&lt;BR /&gt;&lt;BR /&gt;unfortunately, this is a public service I use, and the FTP-Server is not mine :(&lt;BR /&gt;No way to change it.&lt;BR /&gt;&lt;BR /&gt;Volker</description>
    <pubDate>Thu, 08 Mar 2001 18:24:35 GMT</pubDate>
    <dc:creator>Volker Borowski</dc:creator>
    <dc:date>2001-03-08T18:24:35Z</dc:date>
    <item>
      <title>FTP-Script with many mget-command hangs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502752#M597327</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;I have a problem with a ftp-script, I need to run frequently. Script goes:&lt;BR /&gt;&lt;BR /&gt;user ftp ftp&lt;BR /&gt;prompt&lt;BR /&gt;binary&lt;BR /&gt;mget dir1/dir2/*.txt&lt;BR /&gt;get dir1/dir2/picture.jpg&lt;BR /&gt;: repeat this 7000 times for several dirs&lt;BR /&gt;mget dir7/dir9/*.txt&lt;BR /&gt;get dir7/dir9/picture.jpg&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;Now this script runs 3 out of 20 times ok.&lt;BR /&gt;Mostly it suddenly hangs, keeping an established Port 20 and 21 connection showing up in "netstat -n" (and sometimes it keeps even two port 20 connections).&lt;BR /&gt;&lt;BR /&gt;Setting the Script to some 20 entries usally works at a rate of 99.9xx percent (which keeps me thinking, that firewall-rules are not the problem).&lt;BR /&gt;&lt;BR /&gt;What strikes me is, that each mget/get opens a seperate data stream, so I suspect something is blocking in the connection table, or in the socket administration.&lt;BR /&gt;&lt;BR /&gt;Any idea, if I need to adjust kernel (which value) to be able to handle more sockets.&lt;BR /&gt;Can I set additional parameters inside ftp ?&lt;BR /&gt;&lt;BR /&gt;BTW: I am facing the same problem with an ftp-client runnning on HP-UX, Solaris and Linux.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Volker&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Mar 2001 07:28:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502752#M597327</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-03-08T07:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: FTP-Script with many mget-command hangs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502753#M597328</link>
      <description>My first question is:  Why is ftp being used instead of rcp?  I'm guessing that the only reason is that the system being copied from does not support it.&lt;BR /&gt;&lt;BR /&gt;If this is the case, then I think I would write a socket program that would be used instead of FTP.  Why?  There is no way to be sure that the files copied with the mget is successful.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, there is no kernel parameter that you can change for this part of sockets.  You can use nettune on 10.20 and ndd on 11.00 to set the number of dynamically allocated sockets.  On 10.20, tuned high, and on 11.00 this range is 49152-65534.  20000 sockets should be enough for dynamic use to copy 7000 sockets.  You might be running out of system memory however.&lt;BR /&gt;&lt;BR /&gt;I recommend re-thinking the use of ftp.  It is not designed for the type of work that you are trying to do.</description>
      <pubDate>Thu, 08 Mar 2001 18:13:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502753#M597328</guid>
      <dc:creator>Craig Gilmore</dc:creator>
      <dc:date>2001-03-08T18:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: FTP-Script with many mget-command hangs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502754#M597329</link>
      <description>Hello Craig,&lt;BR /&gt;&lt;BR /&gt;unfortunately, this is a public service I use, and the FTP-Server is not mine :(&lt;BR /&gt;No way to change it.&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 08 Mar 2001 18:24:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502754#M597329</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-03-08T18:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: FTP-Script with many mget-command hangs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502755#M597330</link>
      <description>This may be considered "tabu", haha but have you considered useing a "ftp bounce" client on a winblows box?  I use a program named  flashFXP, wich opens up a connection to server A and server B, then willl transfer between the two. &lt;BR /&gt;The app allows draggin and dropping, and mass selection. You can setup queue's in the program. Everything is very automated and easy to use.   &lt;BR /&gt;&lt;BR /&gt;Just a thought.&lt;BR /&gt;&lt;BR /&gt;Brian.</description>
      <pubDate>Thu, 08 Mar 2001 18:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502755#M597330</guid>
      <dc:creator>Brian Markus</dc:creator>
      <dc:date>2001-03-08T18:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: FTP-Script with many mget-command hangs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502756#M597331</link>
      <description>OK, since we are working with a public domain server... it makes this harder.&lt;BR /&gt;&lt;BR /&gt;Not knowing what the other side of the connection is and how it is setup also complicates the issue.  It is possible with wftpd to limit the number of accesses.  If the server is wftpd or some variant, then it should state this on connection.  Check first for this.  &lt;BR /&gt;&lt;BR /&gt;Next, if not wftpd or unknown, then I would suggest doing a nettl trace or a tcpdump trace of the network traffic.  Are the commands issued from the HP successfully?  Is it the side that you can control or the server side that seems to be where the problem is.  If you find from the trace that the problem is in the server, then you have reached a point of negotiation with the service provider... or a brick wall.&lt;BR /&gt;&lt;BR /&gt;If the problem is in the HP then we can dig further.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 09 Mar 2001 22:15:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502756#M597331</guid>
      <dc:creator>Craig Gilmore</dc:creator>
      <dc:date>2001-03-09T22:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: FTP-Script with many mget-command hangs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502757#M597332</link>
      <description>Hello Craig,&lt;BR /&gt;the remote site is Microsoft FTP-Server 4.0 !&lt;BR /&gt;I checked man page for tcpdump....&lt;BR /&gt;... nothing you use so frequently.&lt;BR /&gt;&lt;BR /&gt;Any tip, where to begin with ?&lt;BR /&gt;Thanx&lt;BR /&gt;Volker&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Mar 2001 15:06:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502757#M597332</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-03-12T15:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: FTP-Script with many mget-command hangs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502758#M597333</link>
      <description>OK, Windows box is the server. &lt;BR /&gt;&lt;BR /&gt;Starting questions:&lt;BR /&gt;1. Are other ftp's requested from the same server able to compelete successfully at the same time that your mget script is running?&lt;BR /&gt; - If so, this probably means that there is something specific about the mgets that may be causing the hiccup.&lt;BR /&gt;&lt;BR /&gt;2.  Have we checked with the server to see if any other users have reported a problem?  This may tell us if we are breaking new ground or it is something that they are already working on.&lt;BR /&gt;&lt;BR /&gt;-------&lt;BR /&gt;&lt;BR /&gt;Tracing:  tcpdump is a public domain tool that many people use.  HP has their own tracing tool, nettl, that is built into the OS.  tcpdump has advantages and problems as does nettl.  If you don't already have tcpdump installed and familiar with it's use, I recommend saving time and using nettl.  &lt;BR /&gt;&lt;BR /&gt;1. You will want to be able to re-create the problem.&lt;BR /&gt;2. You turn on nettl, recreate the problem, and turn off the trace.  nettl uses circular capture files.  You need to turn off tracing soon after reaching the problem to be sure that you capture the info in the trace files.&lt;BR /&gt;3. To turn on tracing, use:&lt;BR /&gt;#nettl -tn pduin pduout -e ns_ls_ip -f (capturefilename) -tm 99999 -m 256&lt;BR /&gt;&lt;BR /&gt;What this means is:  -tn turn on tracing&lt;BR /&gt;                     -e entity or level of tracing.  In this case at the IP level.&lt;BR /&gt;                     -f filename  there will be .TRC0 and/or .TRC1 appended to this name.  file will be created in directory you issue the command from, unless you give absolute path.&lt;BR /&gt;                     -tm This is setting the tracefile to it's largest size.&lt;BR /&gt;                     -m this is how much of each message to capture.  In this case the first 256 bytes of the message.&lt;BR /&gt;&lt;BR /&gt;4. recreate the problem.&lt;BR /&gt;5. Turn off tracing:  #nettl -tf -e all&lt;BR /&gt;6. Use netfmt to format the data and look for the conversation.  USE FILTERS !&lt;BR /&gt;&lt;BR /&gt;A filter file, named xxy, could contain:&lt;BR /&gt;&lt;BR /&gt;filter ip_saddr  (ip of the windows server)&lt;BR /&gt;filter ip_daddr  (ip of the windows server) &lt;BR /&gt;&lt;BR /&gt;Using this filter file with netfmt would look like:&lt;BR /&gt;&lt;BR /&gt;#netfmt -Nl -c xxy -f filename.TRC0 &amp;gt; fmtfile&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;#netfmt -1 -c xxy -f filename.TRC0 &amp;gt; fmtfile &lt;BR /&gt;&lt;BR /&gt;This will take some time, but it may help answer why the conversation is failing.</description>
      <pubDate>Wed, 14 Mar 2001 17:14:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-with-many-mget-command-hangs/m-p/2502758#M597333</guid>
      <dc:creator>Craig Gilmore</dc:creator>
      <dc:date>2001-03-14T17:14:50Z</dc:date>
    </item>
  </channel>
</rss>

