- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: COPY/FTP Command and Date/Time Stamp
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-11-2009 05:47 AM
тАО03-11-2009 05:47 AM
COPY/FTP Command and Date/Time Stamp
On OpenVMS 8.3, two Alpha servers on IP network (no DECNet), I have implemented the COPY/FTP command in several DCL procedures to move files between developement and production servers. One thing I noticed was the file date/time stamp of the file takes the current date/time on the destination system. Is there anyway to retain the original file attributes using FTP? DECNet is not allowed in our corporate network (IP only).
Also, just reading about COPY/RCP, but have odd results using that form. Odd results meaning the destination file takes on a date/time other than the original file date or the destination system date. Hmmmmm...
Thanks,
John
John dot Farmer at Genworth dot com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 05:58 AM
тАО03-11-2009 05:58 AM
Re: COPY/FTP Command and Date/Time Stamp
I think that is expected behaviour.
Why is it a problem for you? Are you trying to synchronise procedures across nodes?
If so, the CHECKSUM command might be useful.
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:02 AM
тАО03-11-2009 06:02 AM
Re: COPY/FTP Command and Date/Time Stamp
Common alternative choices here are MD5/SHA1 and verification of the file against a known checksum, or the use of git or SVN or Hg or such (and a known-good repository), or to zip the bits and protect the date that way.
BTW: DECnet runs just fine over IP, if you want to use that.
ftp is a massive security hole and a security hole that's also basically incompatible with firewalls, too. FWIW.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:03 AM
тАО03-11-2009 06:03 AM
Re: COPY/FTP Command and Date/Time Stamp
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:20 AM
тАО03-11-2009 06:20 AM
Re: COPY/FTP Command and Date/Time Stamp
have changed in the last decade, it doesn't
know or care about file date-time info.
If you're _fetching_ files, you might try
using wget to do it. Wget tries to parse an
FTP server's LIST output to determine a
file's original date-time, and then set the
attributes of the fetched file accordingly.
(Different time zones may still cause some
trouble, however, and "ls -l"-format listings
from UNIX servers can be imprecise.)
http://antinode.info/dec/sw/wget.html
(Pushing a file is more demanding, as you'd
need to add capability to the FTP server,
which seems unlikely to happen.)
Or, use BACKUP or Zip (or even "tar") to
preserve those attributes before
transmission. Many things are possible.
(Even if most of them are sub-convenient.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:24 AM
тАО03-11-2009 06:24 AM
Re: COPY/FTP Command and Date/Time Stamp
It is an extra step (or two) but it may well be faster in the end.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:26 AM
тАО03-11-2009 06:26 AM
Re: COPY/FTP Command and Date/Time Stamp
This preserves the mod dates (we sync files using this mechanism).
Or write some DCL and use touch (freeware) to set the date correctly.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:30 AM
тАО03-11-2009 06:30 AM
Re: COPY/FTP Command and Date/Time Stamp
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:33 AM
тАО03-11-2009 06:33 AM
Re: COPY/FTP Command and Date/Time Stamp
Or you need a PCSI or other installation kit, and productize your files. It's entirely feasible to build these kits entirely from DCL, so you package and install your bits. For one or two servers, this might be overkill. But for larger pools of servers, this can be invaluable. This approach is highly reproducible.
Or you use a pool of files and save off the MD5 or SHA1 checksums, and a tool that verifies the filename against the checksum.
Worst case, you need some local and enhanced variation of the directory DIFF tool I posted on the Freeware a while back. That tool looked for file content skews between the contents of two directories. (Search HOFFMAN_EXAMPLES on Freeware V8 for *DIFF*, IIRC. I don't have a FW8 distro handy to check ATM, and don't remember the exact name of the file. And MVB's archives at SAIC are gone.)
File dates, BTW, can be forged with a SET FILE command. Which has two implications. One is a lack of trust or a lack of reliability. The other of which is to simply set the low bits of the file date - or the whole file date - to an encoded form of the release version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:39 AM
тАО03-11-2009 06:39 AM
Re: COPY/FTP Command and Date/Time Stamp
Personally, I would use BACKUP (if only 'cos I am a VMS bigot through and through)
You will need to investigate whether it is appropriate to compile and link on your DEV box, just moving the .EXE's to your PRD box.
I'd rather compile/link on your PRD box but accept that might not always be possible.
Also bear in mind that it would be helpful if your "deployment" DCL was robust enough to be able to support a back-out where necessary.
Finally, bear in mind that you might have to wait for a window to apply such changes on PRD. So use of some sort of logical name or flag file might be useful (especially if you have lots of PRD servers, possibly spanning timezones, etc..)
HTH
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:49 AM
тАО03-11-2009 06:49 AM
Re: COPY/FTP Command and Date/Time Stamp
I will concur with the others. The FTP protocol has no provision for preserving time stamps (a platform independent feature).
Personally, if I want to ensure that meta data is not damaged, I use BACKUP to build a saveset, then the OpenVMS ZIP with the "-V" switch to preserve attributes. I then ftp the ZIP archive.
It is slightly cumbersome, but it avoids the accident of dealing with an accidental corruption in transit (e.g., someone forgetting to issue the BIN command within FTP).
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 07:05 AM
тАО03-11-2009 07:05 AM
Re: COPY/FTP Command and Date/Time Stamp
MDTM reports the modification time of a file
MFMT sets the modification time of a file
MFCT sets the creation time of a file.
http://tools.ietf.org/html/draft-somers-ftp-mfxx-04
http://www.ietf.org/rfc/rfc3659.txt?number=3659
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 07:09 AM
тАО03-11-2009 07:09 AM
Re: COPY/FTP Command and Date/Time Stamp
> the OpenVMS ZIP with the "-V" switch to
> attributes. [...]
As I try always to say, if anyone finds a
case where Zip (-V) alone fails to save any
useful file attributes, be sure to file a
complaint.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 07:15 AM
тАО03-11-2009 07:15 AM
Re: COPY/FTP Command and Date/Time Stamp
Run some local tests of these two and see what you get for results.
And consider the complexity of zipping a saveset.
(This outside the discussion of portability. While there are tools to get access into BACKUP savesets on other platforms, zip and unzip are nearly ubiquitous. I have updated the classic vmsbackup tool for ODS-5 and some other relatively recent changes; that source pool available for download for folks that need access to savesets on other platforms.)
But here? This looks to be source code control. Mercurial. Subversion. Git. rsync. Whatever. It's quite unfortunate that there is no remote CMS client for use on OpenVMS available here, though you have to roll your own.