- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- SCP or SFTP to copy binary files?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
05-11-2006 12:53 AM
05-11-2006 12:53 AM
SCP or SFTP to copy binary files?
They're on a remote node NODE2, the local node is NODE1.
These are the names of the 4 files:
DEC-AXPVMS-VMS732_F11X-V0500--4.PCSI;1
DEC-AXPVMS-VMS732_PCSI-V0300--4.PCSI;1
DEC-AXPVMS-VMS732_SYS-V1000--4.PCSI;1
DEC-AXPVMS-VMS732_UPDATE-V0600--4.PCSI;1
They reside on this directory:
NODE2::SYS$SYSDEVICE:[USER1.PATCH_200605]
and the local target directory is:
NODE1::SYS$SYSDEVICE:[SYSTEM.SOFTWARE.PATCHES.VMS732]
(1)
Using scp, I couldnt' seem to get the files to be recognized. I'm using the following syntax
scp user1@node2:[.PATCH_200605]* []
and I keep getting this error:
fcr_parse_raw: /SYS$SYSDEVICE/system/software/patches/vms732 (src): no such file (server msg: 'syserr: no such file or directory, fi
le: /SYS$SYSDEVICE/system/software/patches/vms732')
The /system/software/patches/vms732 is the path of the desination.
Should I be quoting the source? I tried it but to no avail...
(2)
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?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 01:07 AM
05-11-2006 01:07 AM
Re: SCP or SFTP to copy binary files?
I believe that for SFTP to work, the files should be in the following format:
- Stream_LF for text files
- Fixed length 512 bytes for binary files
Normally the PCSI files are in fixed length 512 bytes format so this should not give any problems.
Perhaps you should try to transfer the compressed PCSI archives or put them in a ZIP archive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 01:45 AM
05-11-2006 01:45 AM
Re: SCP or SFTP to copy binary files?
#*&()#% 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....
Any ideas on number 1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 01:51 AM
05-11-2006 01:51 AM
Re: SCP or SFTP to copy binary files?
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 01:51 AM
05-11-2006 01:51 AM
Re: SCP or SFTP to copy binary files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 02:01 AM
05-11-2006 02:01 AM
Re: SCP or SFTP to copy binary files?
scp -d user1@node1:patch_200605/*.* .
But alas, problem 2 exists for this too - the files are corrupt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 02:05 AM
05-11-2006 02:05 AM
Re: SCP or SFTP to copy binary files?
They're fixed, but 8192 byte length. I guess thats why it doesn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 02:05 AM
05-11-2006 02:05 AM
Re: SCP or SFTP to copy binary files?
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 ?
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 03:07 AM
05-11-2006 03:07 AM
Re: SCP or SFTP to copy binary files?
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....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 03:17 AM
05-11-2006 03:17 AM
Re: SCP or SFTP to copy binary files?
I find zipping a file then transfering using binary with scp works best. A current version of zip will preserve the VMS file attributes.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 03:31 AM
05-11-2006 03:31 AM
Re: SCP or SFTP to copy binary files?
ummm... Thanks? ;-)
>I find zipping a file then transfering using binary with scp works best. A current version of zip will preserve the VMS file attributes.
Good idea. Maybe we can invent some sort of wrapper script that would automatically do that for all files...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 03:32 AM
05-11-2006 03:32 AM
Re: SCP or SFTP to copy binary files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 03:39 AM
05-11-2006 03:39 AM
Re: SCP or SFTP to copy binary files?
I noticed on VMS Alpha V8.2 TCPIP V5.5 - ECO 1
scp option -p Preserve file attributes and timestamps.
I wonder if it works.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 04:38 AM
05-11-2006 04:38 AM
Re: SCP or SFTP to copy binary files?
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.
As Ian says, Zip is probably the best way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 04:39 AM
05-11-2006 04:39 AM
Re: SCP or SFTP to copy binary files?
scp option -p Preserve file attributes and timestamps.
>I wonder if it works.
It's also available on 7.3-2 ECO5 but no joy, didn't work...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 04:53 AM
05-11-2006 04:53 AM
Re: SCP or SFTP to copy binary files?
Regarding that, here is analyze/RMS of both file (before and after)
Before:
File Organization: sequential
Record Format: fixed
Record Attributes:
Maximum Record Size: 8192
Longest Record: 8192
After:
File Organization: sequential
Record Format: stream-LF
Record Attributes: carriage-return
Maximum Record Size: 0
Longest Record: 32767
I was able to set the record format and record attributes using:
set file/attr=RAT:NONE
set file/attr=RFM:FIX
but when I tried to set the block size like so:
set file/attr=BKS:8192
I get this error:
%SET-E-SYNTAX, error parsing '8192'
and
set file/attr=BKS:8
Succeeds but doesn't change these 2 lines:
Maximum Record Size: 0
Longest Record: 32767
What am I doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 05:14 AM
05-11-2006 05:14 AM
Re: SCP or SFTP to copy binary files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 05:17 AM
05-11-2006 05:17 AM
Re: SCP or SFTP to copy binary files?
pays to find an example like
RESET_BACKUP_SAVESET_FILE_ATTRIBUTES.COM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 05:20 AM
05-11-2006 05:20 AM
Re: SCP or SFTP to copy binary files?
File Organization: sequential
Record Format: stream-LF
Record Attributes: carriage-return
Maximum Record Size: 8192
Longest Record: 8192
Blocks Allocated: 1900, Default Extend Size: 0
End-of-File VBN: 1889, Offset: %X'0000'
File Monitoring: disabled
Global Buffer Count: 0
*** VBN 1887: Last stream record does not contain a delimiter.
Unrecoverable error encountered in structure of file.
Whats up with that error?
(At least the record size looks good....)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 05:28 AM
05-11-2006 05:28 AM
Re: SCP or SFTP to copy binary files?
the file has still STREAM-LF and carriage-control:
$ SET FILE/ATTR=(RFM:FIX,RAT:NONE)
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 05:29 AM
05-11-2006 05:29 AM
Re: SCP or SFTP to copy binary files?
$ set file/attr=(rat:none,rfm:fix) filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 05:32 AM
05-11-2006 05:32 AM
Re: SCP or SFTP to copy binary files?
What happened to RFM:FIX?
You should use one big SET FILE /ATTR
command with all the important stuff in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 05:32 AM
05-11-2006 05:32 AM
Re: SCP or SFTP to copy binary files?
Regarding
> Whats up with that error?
RMS expects to carriage control - this file doesn't have any.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 05:39 AM
05-11-2006 05:39 AM
Re: SCP or SFTP to copy binary files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 05:45 AM
05-11-2006 05:45 AM
Re: SCP or SFTP to copy binary files?
of files with non-UNIX-y file attributes)
will recur with any frequency, you might
enjoy the process more if you insinuate
Zip and UnZip (or BACKUP, or something) into
it to preserve those file attributes.
The extra steps involved would add annoyance,
but you'd get the right attributes on the
resulting files automatically.
Doing it all with FDL files sounds to me like
too much extra work, but that could work, too.