<?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: COPY/FTP via a different port? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266886#M60245</link>
    <description>Lester,&lt;BR /&gt;&lt;BR /&gt;A quick check of some examples on a slightly older version of TCPIP (7.3-2/TCPIP 5.4) narrows the issue somewhat.&lt;BR /&gt;&lt;BR /&gt;$ COPY/FTP 127.0.0.1"username password"::LOGIN.COM X.TMP&lt;BR /&gt;&lt;BR /&gt;works as expected.&lt;BR /&gt;&lt;BR /&gt;$ COPY/FTP 127.0.0.1:21"username password"::LOGIN.COM X.TMP&lt;BR /&gt;&lt;BR /&gt;results in an attempted login as "anonymous".&lt;BR /&gt;&lt;BR /&gt;Going into FTP itself, the OPEN command clearly supports the following syntax:&lt;BR /&gt;&lt;BR /&gt;$ FTP&lt;BR /&gt;FTP&amp;gt; open 127.0.0.1&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;To avoid starting/stopping TCP (or hacking with the FTP server), adding a port number on the end, to wit:&lt;BR /&gt;&lt;BR /&gt;$ FTP&lt;BR /&gt;FTP&amp;gt; open 127.0.0.1 7465&lt;BR /&gt;&lt;BR /&gt;(Where 7465 is an unused port) produces the expected result.&lt;BR /&gt;&lt;BR /&gt;Admittedly with all of the caveats of a 3:00 AM check, it seems that FTP client has no problem with the construct, but that the command definition for COPY/FTP and DIR/FTP has a definition that does not quite accept the syntax. &lt;BR /&gt;&lt;BR /&gt;Admittedly, I do not have time today to undertake to look in detail at the DCL definitions for COPY/FTP and DIR/FTP gratis.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
    <pubDate>Fri, 17 Dec 2010 08:22:03 GMT</pubDate>
    <dc:creator>Robert Gezelter</dc:creator>
    <dc:date>2010-12-17T08:22:03Z</dc:date>
    <item>
      <title>COPY/FTP via a different port?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266884#M60243</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there a way for COPY/FTP or DIR/FTP to connect to an ftp server (non-VMS) via a different port?  Is there a logical name or something?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- this works ...&lt;BR /&gt;&lt;BR /&gt;$ ftp 192.168.201.132 4121&lt;BR /&gt;220 Microsoft FTP Service&lt;BR /&gt;Connected to 192.168.201.132.&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- but can we make this work? ...&lt;BR /&gt;&lt;BR /&gt;$ dir/ftp 192.168.201.132"theusername thepassword"::&lt;BR /&gt;%TCPIP-E-FTP_NETERR, I/O error on network device&lt;BR /&gt;-SYSTEM-F-REJECT, connect to network object rejected&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$ tcpip show version&lt;BR /&gt;&lt;BR /&gt;  HP TCP/IP Services for OpenVMS Industry Standard 64 Version V5.6 - ECO 2&lt;BR /&gt;  on an HP rx3600  (1.59GHz/9.0MB) running OpenVMS V8.3-1H1&lt;BR /&gt;&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Lester&lt;BR /&gt;&lt;BR /&gt;PS.  The frequently posted concerns with ftp are acknowledged.&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Dec 2010 02:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266884#M60243</guid>
      <dc:creator>Lester Dreckow</dc:creator>
      <dc:date>2010-12-17T02:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP via a different port?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266885#M60244</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Is there a way [...]&lt;BR /&gt;&lt;BR /&gt;I know of none.  If you're trying to fetch a&lt;BR /&gt;file, then wget seems to allow a ":port_nr"&lt;BR /&gt;specification in an URL.  For example, these&lt;BR /&gt;both do the same thing:&lt;BR /&gt;&lt;BR /&gt;$ wget "ftp://user:PASS@alp/login.com"&lt;BR /&gt;$ wget "ftp://user:PASS@alp:21/login.com"&lt;BR /&gt;&lt;BR /&gt;namely, something like the following.  (Note&lt;BR /&gt;the ":21".)&lt;BR /&gt;&lt;BR /&gt;--2010-12-16 22:19:16--  ftp://user:*password*@alp/login.com&lt;BR /&gt;           =&amp;gt; `login.com'&lt;BR /&gt;Resolving alp... 10.0.0.9&lt;BR /&gt;Connecting to alp|10.0.0.9|:21... connected.&lt;BR /&gt;Logging in as user ... Logged in!&lt;BR /&gt;==&amp;gt; SYST ... done.    ==&amp;gt; PWD ... done.&lt;BR /&gt;==&amp;gt; TYPE I ... done.  ==&amp;gt; CWD not needed.&lt;BR /&gt;==&amp;gt; SIZE login.com ... done.&lt;BR /&gt;==&amp;gt; PASV ... done.    ==&amp;gt; RETR login.com ... done.&lt;BR /&gt;Length: 9710 (9.5K) (unauthoritative)&lt;BR /&gt;&lt;BR /&gt;92% [==================================&amp;gt;    ] 8,943       --.-K/s   in 0.001s&lt;BR /&gt;&lt;BR /&gt;2010-12-16 22:19:17 (8.74 MB/s) - `login.com' saved [8943]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or, specifying a non-default port (where no&lt;BR /&gt;one is listening):&lt;BR /&gt;&lt;BR /&gt;alp $ wget "ftp://user:PASSWD@alp:421/login.com"&lt;BR /&gt;--2010-12-16 22:13:47--  ftp://user:*password*@alp:421/login.com&lt;BR /&gt;           =&amp;gt; `login.com'&lt;BR /&gt;Resolving alp... 10.0.0.9&lt;BR /&gt;Connecting to alp|10.0.0.9|:421... failed: connection refused  .&lt;BR /&gt;&lt;BR /&gt;So it appears to be following instructions.&lt;BR /&gt;&lt;BR /&gt;If you're trying to send a file, then you may&lt;BR /&gt;be out of luck.  I may have an old&lt;BR /&gt;VMS-adapted version of (the much less&lt;BR /&gt;popular) "wput" lying around, but I don't&lt;BR /&gt;know if it could deal with ":port_nr"&lt;BR /&gt;notation.  It might take a while to scrape&lt;BR /&gt;together a source kit.  (I looked briefly at&lt;BR /&gt;wput about six years ago, but, having COPY&lt;BR /&gt;/FTP, it never seemed to be worth much&lt;BR /&gt;effort.)</description>
      <pubDate>Fri, 17 Dec 2010 04:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266885#M60244</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-12-17T04:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP via a different port?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266886#M60245</link>
      <description>Lester,&lt;BR /&gt;&lt;BR /&gt;A quick check of some examples on a slightly older version of TCPIP (7.3-2/TCPIP 5.4) narrows the issue somewhat.&lt;BR /&gt;&lt;BR /&gt;$ COPY/FTP 127.0.0.1"username password"::LOGIN.COM X.TMP&lt;BR /&gt;&lt;BR /&gt;works as expected.&lt;BR /&gt;&lt;BR /&gt;$ COPY/FTP 127.0.0.1:21"username password"::LOGIN.COM X.TMP&lt;BR /&gt;&lt;BR /&gt;results in an attempted login as "anonymous".&lt;BR /&gt;&lt;BR /&gt;Going into FTP itself, the OPEN command clearly supports the following syntax:&lt;BR /&gt;&lt;BR /&gt;$ FTP&lt;BR /&gt;FTP&amp;gt; open 127.0.0.1&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;To avoid starting/stopping TCP (or hacking with the FTP server), adding a port number on the end, to wit:&lt;BR /&gt;&lt;BR /&gt;$ FTP&lt;BR /&gt;FTP&amp;gt; open 127.0.0.1 7465&lt;BR /&gt;&lt;BR /&gt;(Where 7465 is an unused port) produces the expected result.&lt;BR /&gt;&lt;BR /&gt;Admittedly with all of the caveats of a 3:00 AM check, it seems that FTP client has no problem with the construct, but that the command definition for COPY/FTP and DIR/FTP has a definition that does not quite accept the syntax. &lt;BR /&gt;&lt;BR /&gt;Admittedly, I do not have time today to undertake to look in detail at the DCL definitions for COPY/FTP and DIR/FTP gratis.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Fri, 17 Dec 2010 08:22:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266886#M60245</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2010-12-17T08:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP via a different port?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266887#M60246</link>
      <description>#import &lt;FTP-RANT.H&gt;&lt;BR /&gt;&lt;BR /&gt;AFAIK, no.  The alternate port specification on the DCL-level /FTP syntax is quite certainly undocumented, and AFAIK, there is no such alternate port selection mechanism implemented within the command processing.&lt;BR /&gt;&lt;BR /&gt;I've tried what would be the classic DCL encoding for this, and errors resulted:&lt;BR /&gt;&lt;BR /&gt;$ dir /ftp &lt;A href="http://www.example.com:4121" target="_blank"&gt;www.example.com:4121&lt;/A&gt;"user pass"::&lt;BR /&gt;$ dir /ftp/port=4121 &lt;A href="http://www.example.com" target="_blank"&gt;www.example.com&lt;/A&gt;"user pass"::&lt;BR /&gt;&lt;BR /&gt;And this verb syntax doesn't look promising:&lt;BR /&gt;&lt;BR /&gt;$ search -&lt;BR /&gt;SYS$COMMON:[SYSUPD]COPY.CLD -&lt;BR /&gt;ftp,port/window=11&lt;BR /&gt;&lt;BR /&gt;You might be able to tunnel into the box and get to the ftp server that way, which also would solve several problems.  This either in addition to the odd configuration, or as a wholesale replacement for it.&lt;BR /&gt;&lt;BR /&gt;I'd be interested in hearing the rationale and constraints for this Windows Server ftp configuration; without that detail, this looks to be among the worst of many possible file transfer implementation schemes.  &lt;BR /&gt;&lt;BR /&gt;(I run Unix servers for these sorts of tasks and not Windows Server boxes, so the tools and features are undoubtedly different; I'm not current on whatever Windows features and limitations might exist here.)&lt;BR /&gt;&lt;/FTP-RANT.H&gt;</description>
      <pubDate>Fri, 17 Dec 2010 15:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266887#M60246</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-12-17T15:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP via a different port?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266888#M60247</link>
      <description>Hi Lester,&lt;BR /&gt;&lt;BR /&gt;  No hacks that I'm aware of. I tend to use COPY/FTP and DIRECTORY/FTP whenever possible, but sometimes they just don't cut it.&lt;BR /&gt;&lt;BR /&gt; If you can't create a static script, and want to avoid generating temporary files, you can use PIPE to feed commands into FTP. For example, implementing CREATE/DIRECTORY/FTP:&lt;BR /&gt;&lt;BR /&gt;$   SET NOON&lt;BR /&gt;$   PIPE WRITE SYS$OUTPUT "mkdir ''ftp_dir'" | -&lt;BR /&gt;         FTP/INPUT=SYS$PIPE:/USERNAME="''ftp_user'"/PASSWORD="''ftp_pswd'" 'ftp_addr' | -&lt;BR /&gt;         COPY SYS$PIPE: NL:&lt;BR /&gt;&lt;BR /&gt;the copy to NL at the end is just to surpress noise, and for some reason &amp;gt;nl: didn't work (can't remember the details).&lt;BR /&gt;&lt;BR /&gt;In your case just include the non-standard port in the ftp_addr symbol.&lt;BR /&gt;&lt;BR /&gt;Obviously the first stage of the pipe can be more complex. If it gets too long, or needs conditionals to generate, use a procedure - "@GENERATE_FTP_COMMANDS"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Dec 2010 23:18:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266888#M60247</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-12-17T23:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP via a different port?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266889#M60248</link>
      <description>Thanks gentleman.  I needed to confirm before asking the client “why that port?”.  &lt;BR /&gt;&lt;BR /&gt;Thanks Steven for the wget idea.&lt;BR /&gt;&lt;BR /&gt;Thanks John, your pipe examples are always interesting.&lt;BR /&gt;&lt;BR /&gt;I guess a COPY/FTP/PORT= syntax would be the ideal.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lester Dreckow&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Dec 2010 02:38:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-via-a-different-port/m-p/5266889#M60248</guid>
      <dc:creator>Lester Dreckow</dc:creator>
      <dc:date>2010-12-18T02:38:01Z</dc:date>
    </item>
  </channel>
</rss>

