<?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: SCP or SFTP to copy binary files? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786586#M52283</link>
    <description>&lt;BR /&gt;&amp;gt;Normally the PCSI files are in fixed length 512 bytes format so this should not give any problems.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; They're fixed, but 8192 byte length. I guess thats why it doesn't work.&lt;BR /&gt;&lt;BR /&gt;I see now that there are indeed different formats, at least at my test site:&lt;BR /&gt;&lt;BR /&gt;DEC-AXPVMS-DFU-V0301--1.PCSI = Fixed length 512 byte records&lt;BR /&gt;&lt;BR /&gt;DEC-AXPVMS-VMS732_UPDATE-V0600--4.PCSI = Fixed length 8192 byte records&lt;BR /&gt;&lt;BR /&gt;So probably there is no guarantee that the PCSI files will always have the same format.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dave Laurier&lt;BR /&gt;</description>
    <pubDate>Mon, 15 May 2006 07:07:13 GMT</pubDate>
    <dc:creator>Dave Laurier</dc:creator>
    <dc:date>2006-05-15T07:07:13Z</dc:date>
    <item>
      <title>SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786549#M52246</link>
      <description>I've been trying to copy some pcsi product files over (pull) from a remote node.  Running into some problems.&lt;BR /&gt;&lt;BR /&gt;They're on a remote node NODE2, the local node is NODE1.&lt;BR /&gt;&lt;BR /&gt;These are the names of the 4 files:&lt;BR /&gt;&lt;BR /&gt;DEC-AXPVMS-VMS732_F11X-V0500--4.PCSI;1  &lt;BR /&gt;DEC-AXPVMS-VMS732_PCSI-V0300--4.PCSI;1&lt;BR /&gt;DEC-AXPVMS-VMS732_SYS-V1000--4.PCSI;1   &lt;BR /&gt;DEC-AXPVMS-VMS732_UPDATE-V0600--4.PCSI;1&lt;BR /&gt;&lt;BR /&gt;They reside on this directory:&lt;BR /&gt;&lt;BR /&gt;NODE2::SYS$SYSDEVICE:[USER1.PATCH_200605]&lt;BR /&gt;&lt;BR /&gt;and the local target directory is:&lt;BR /&gt;&lt;BR /&gt;NODE1::SYS$SYSDEVICE:[SYSTEM.SOFTWARE.PATCHES.VMS732]&lt;BR /&gt;&lt;BR /&gt;(1)&lt;BR /&gt;&lt;BR /&gt;Using scp, I couldnt' seem to get the files to be recognized.  I'm using the following syntax&lt;BR /&gt;&lt;BR /&gt;scp user1@node2:[.PATCH_200605]* []&lt;BR /&gt;&lt;BR /&gt;and I keep getting this error:&lt;BR /&gt;&lt;BR /&gt;fcr_parse_raw: /SYS$SYSDEVICE/system/software/patches/vms732 (src): no such file (server msg: 'syserr: no such file or directory, fi&lt;BR /&gt;le: /SYS$SYSDEVICE/system/software/patches/vms732')&lt;BR /&gt;&lt;BR /&gt;The /system/software/patches/vms732 is the path of the desination.&lt;BR /&gt;&lt;BR /&gt;Should I be quoting the source?  I tried it but to no avail...&lt;BR /&gt;&lt;BR /&gt;(2)&lt;BR /&gt;&lt;BR /&gt;using sftp, I was able to pull the files over, and I used the "binary" command prior to pulling them with the mget command.  But the files were corrupt when I tried to run prod install.  Any ideas why?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Thu, 11 May 2006 07:53:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786549#M52246</guid>
      <dc:creator>Thomas A. Williams</dc:creator>
      <dc:date>2006-05-11T07:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786550#M52247</link>
      <description>&lt;BR /&gt;I believe that for SFTP to work, the files should be in the following format:&lt;BR /&gt;&lt;BR /&gt;- Stream_LF for text files&lt;BR /&gt;- Fixed length 512 bytes for binary files&lt;BR /&gt;&lt;BR /&gt;Normally the PCSI files are in fixed length 512 bytes format so this should not give any problems.&lt;BR /&gt;&lt;BR /&gt;Perhaps you should try to transfer the compressed PCSI archives or put them in a ZIP archive.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2006 08:07:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786550#M52247</guid>
      <dc:creator>Dave Laurier</dc:creator>
      <dc:date>2006-05-11T08:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786551#M52248</link>
      <description>Thanks for the tip.&lt;BR /&gt;&lt;BR /&gt;#*&amp;amp;()#% auditors are making us convert to SSH and we will have to disable DECnet at some point.  Whole project just makes life more difficult for us...  Oh well....&lt;BR /&gt;&lt;BR /&gt;Any ideas on number 1?</description>
      <pubDate>Thu, 11 May 2006 08:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786551#M52248</guid>
      <dc:creator>Thomas A. Williams</dc:creator>
      <dc:date>2006-05-11T08:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786552#M52249</link>
      <description>on (1) - I haven't used TCP/IP Services' SCP, but the protocol that SCP uses requires a Unix-like format for file specifications.  I don't know if TCP/IP Services added any code to try to convert a VMS style file specification to a Unix-like one.&lt;BR /&gt;&lt;BR /&gt;Another possibility is that you need to add the qualifier saying that the destination needs to be a directory as you are expecting multiple source files.</description>
      <pubDate>Thu, 11 May 2006 08:51:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786552#M52249</guid>
      <dc:creator>Richard Whalen</dc:creator>
      <dc:date>2006-05-11T08:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786553#M52250</link>
      <description>What happens if you try the wildcard to be *.* or *.*;* or *.PCSI?</description>
      <pubDate>Thu, 11 May 2006 08:51:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786553#M52250</guid>
      <dc:creator>Dave Laurier</dc:creator>
      <dc:date>2006-05-11T08:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786554#M52251</link>
      <description>a combination of the previous 2 replies worked:&lt;BR /&gt;&lt;BR /&gt;scp -d user1@node1:patch_200605/*.* .&lt;BR /&gt;&lt;BR /&gt;But alas, problem 2 exists for this too - the files are corrupt.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2006 09:01:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786554#M52251</guid>
      <dc:creator>Thomas A. Williams</dc:creator>
      <dc:date>2006-05-11T09:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786555#M52252</link>
      <description>&amp;gt;Normally the PCSI files are in fixed length 512 bytes format so this should not give any problems.&lt;BR /&gt;&lt;BR /&gt;They're fixed, but 8192 byte length.  I guess thats why it doesn't work.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2006 09:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786555#M52252</guid>
      <dc:creator>Thomas A. Williams</dc:creator>
      <dc:date>2006-05-11T09:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786556#M52253</link>
      <description>Thomnas,&lt;BR /&gt;&lt;BR /&gt;can you reset the file attributes with SET FILE/ATTR=(...) to be the same as the original files ? Does PRODUCT INSTALL then recognize the files ?&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Thu, 11 May 2006 09:05:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786556#M52253</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-05-11T09:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786557#M52254</link>
      <description>&amp;gt;can you reset the file attributes with SET FILE/ATTR=(...) to be the same as the original files ? Does PRODUCT INSTALL then recognize the files ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yes, I guess we can, or we can use an FDL to reset the file... But sheeesh - talk about having to jump through hoops to satisfy the auditors....</description>
      <pubDate>Thu, 11 May 2006 10:07:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786557#M52254</guid>
      <dc:creator>Thomas A. Williams</dc:creator>
      <dc:date>2006-05-11T10:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786558#M52255</link>
      <description>welcome to audit hell :-)&lt;BR /&gt;&lt;BR /&gt;I find zipping a file then transfering using binary with scp works best. A current version of zip will preserve the VMS file attributes.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2006 10:17:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786558#M52255</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-05-11T10:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786559#M52256</link>
      <description>&amp;gt;welcome to audit hell :-)&lt;BR /&gt;&lt;BR /&gt;ummm... Thanks?  ;-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I find zipping a file then transfering using binary with scp works best. A current version of zip will preserve the VMS file attributes.&lt;BR /&gt;&lt;BR /&gt;Good idea.  Maybe we can invent some sort of wrapper script that would automatically do that for all files...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2006 10:31:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786559#M52256</guid>
      <dc:creator>Thomas A. Williams</dc:creator>
      <dc:date>2006-05-11T10:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786560#M52257</link>
      <description>One other thing - the actual file transfer is _painfully_ slow compared to DECnet copy - I guess because of all the encryption/decryption that has to occurr...</description>
      <pubDate>Thu, 11 May 2006 10:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786560#M52257</guid>
      <dc:creator>Thomas A. Williams</dc:creator>
      <dc:date>2006-05-11T10:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786561#M52258</link>
      <description>Note for the future that .PCSI$COMPRESSED files are 512 byte fixed length records and do copy sucessfully.&lt;BR /&gt;&lt;BR /&gt;I noticed on VMS Alpha V8.2 TCPIP V5.5 - ECO 1&lt;BR /&gt;scp option -p Preserve file attributes and timestamps.&lt;BR /&gt;&lt;BR /&gt;I wonder if it works.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2006 10:39:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786561#M52258</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-05-11T10:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786562#M52259</link>
      <description>&amp;gt;&amp;gt;Yes, I guess we can, or we can use an FDL to reset the file... &amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Don't use convert/fdl here. Use set file/attr instead. Convert will actually change the contents of the file --- and you probably don't want to do that.&lt;BR /&gt;&lt;BR /&gt;As Ian says, Zip is probably the best way.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2006 11:38:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786562#M52259</guid>
      <dc:creator>Doug Phillips</dc:creator>
      <dc:date>2006-05-11T11:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786563#M52260</link>
      <description>&amp;gt; noticed on VMS Alpha V8.2 TCPIP V5.5 - ECO 1&lt;BR /&gt;scp option -p Preserve file attributes and timestamps.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I wonder if it works.&lt;BR /&gt;&lt;BR /&gt;It's also available on 7.3-2 ECO5 but no joy, didn't work...</description>
      <pubDate>Thu, 11 May 2006 11:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786563#M52260</guid>
      <dc:creator>Thomas A. Williams</dc:creator>
      <dc:date>2006-05-11T11:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786564#M52261</link>
      <description>&amp;gt;Don't use convert/fdl here. Use set file/attr instead. Convert will actually change the contents of the file --- and you probably don't want to do that.&lt;BR /&gt;&lt;BR /&gt;Regarding that, here is analyze/RMS of both file (before and after)&lt;BR /&gt;&lt;BR /&gt;Before:&lt;BR /&gt;        File Organization: sequential&lt;BR /&gt;        Record Format: fixed&lt;BR /&gt;        Record Attributes:   &lt;BR /&gt;        Maximum Record Size: 8192&lt;BR /&gt;        Longest Record: 8192&lt;BR /&gt;&lt;BR /&gt;After:&lt;BR /&gt;        File Organization: sequential&lt;BR /&gt;        Record Format: stream-LF&lt;BR /&gt;        Record Attributes:  carriage-return &lt;BR /&gt;        Maximum Record Size: 0&lt;BR /&gt;        Longest Record: 32767&lt;BR /&gt;&lt;BR /&gt;I was able to set the record format and record attributes using:&lt;BR /&gt;&lt;BR /&gt;set file/attr=RAT:NONE&lt;BR /&gt;set file/attr=RFM:FIX&lt;BR /&gt;&lt;BR /&gt;but when I tried to set the block size like so:&lt;BR /&gt;&lt;BR /&gt;set file/attr=BKS:8192&lt;BR /&gt;&lt;BR /&gt;I get this error:&lt;BR /&gt;&lt;BR /&gt;%SET-E-SYNTAX, error parsing '8192'&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;set file/attr=BKS:8&lt;BR /&gt;&lt;BR /&gt;Succeeds but doesn't change these 2 lines:&lt;BR /&gt;&lt;BR /&gt;       Maximum Record Size: 0&lt;BR /&gt;        Longest Record: 32767&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong?</description>
      <pubDate>Thu, 11 May 2006 11:53:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786564#M52261</guid>
      <dc:creator>Thomas A. Williams</dc:creator>
      <dc:date>2006-05-11T11:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786565#M52262</link>
      <description>$ set file/attr=(lrl:8192,mrs:8192) filename</description>
      <pubDate>Thu, 11 May 2006 12:14:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786565#M52262</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2006-05-11T12:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786566#M52263</link>
      <description>When in doubt on SET FILE /ATTRIBUTES, it&lt;BR /&gt;pays to find an example like&lt;BR /&gt;RESET_BACKUP_SAVESET_FILE_ATTRIBUTES.COM.</description>
      <pubDate>Thu, 11 May 2006 12:17:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786566#M52263</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-05-11T12:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786567#M52264</link>
      <description>OK - good advice.  I got this as a result of your suggestions:&lt;BR /&gt;&lt;BR /&gt;        File Organization: sequential&lt;BR /&gt;        Record Format: stream-LF&lt;BR /&gt;        Record Attributes:  carriage-return &lt;BR /&gt;        Maximum Record Size: 8192&lt;BR /&gt;        Longest Record: 8192&lt;BR /&gt;        Blocks Allocated: 1900, Default Extend Size: 0&lt;BR /&gt;        End-of-File VBN: 1889, Offset: %X'0000'&lt;BR /&gt;        File Monitoring: disabled&lt;BR /&gt;        Global Buffer Count: 0&lt;BR /&gt;***  VBN 1887:  Last stream record does not contain a delimiter.&lt;BR /&gt;Unrecoverable error encountered in structure of file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Whats up with that error?&lt;BR /&gt;&lt;BR /&gt;(At least the record size looks good....)</description>
      <pubDate>Thu, 11 May 2006 12:20:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786567#M52264</guid>
      <dc:creator>Thomas A. Williams</dc:creator>
      <dc:date>2006-05-11T12:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: SCP or SFTP to copy binary files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786568#M52265</link>
      <description>Thomas,&lt;BR /&gt;&lt;BR /&gt;the file has still STREAM-LF and carriage-control:&lt;BR /&gt;&lt;BR /&gt;$ SET FILE/ATTR=(RFM:FIX,RAT:NONE)&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Thu, 11 May 2006 12:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-or-sftp-to-copy-binary-files/m-p/3786568#M52265</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-05-11T12:28:34Z</dc:date>
    </item>
  </channel>
</rss>

