Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

copy/ftp issue

 
Tru64Unix
Trusted Contributor

copy/ftp issue

Hi all,

I have two Alpha server(ES40&GS1280) running OpenVMS8.3.I copy some files from GS1280 to ES40 using copy/ftp in a script.
The script run successfully.But I find one of the files is broken,other files are OK.
All files are .COM file and no more than 30K.TCPIP version is 5.6ECO-2.If I do not run script and only run copy/ftp command,everything is OK.
Does anyone give some comment?
14 REPLIES 14
marsh_1
Honored Contributor

Re: copy/ftp issue

hi,

any recent changes ? network errors ? is it reproducable - different files affected or the same ones. any error messages ? also posting up the procedure involved may help everyone here to help you much faster.

fwiw

Wim Van den Wyngaert
Honored Contributor

Re: copy/ftp issue

Could you post the output of the copy/ftp, the return status and a prove that the files are "borken" ?
Make sure that sys$output and sys$error are not directed elsewhere or post it too.

WIm
Wim
Tru64Unix
Trusted Contributor

Re: copy/ftp issue

No any changes.I run this script about twice one week, only this time encounter the problem.

source file:
============
$ dir WAIT_FOR_FILES.COM;1/full

Directory DSA101:[TOFF00.DEV.CODE.DCL]

WAIT_FOR_FILES.COM;1 File ID: (69373,11,0)
Size: 21/111 Owner: [NGTS_DEV]
Created: 22-JUN-2007 00:52:00.95
Revised: 11-FEB-2009 11:45:37.73 (6)
Expires:
Backup: 17-FEB-2009 17:55:35.44
Effective:
Recording:
Accessed:
Attributes:
Modified:
Linkcount: 1
File organization: Sequential
Shelved state: Online
Caching attribute: Writethrough
File attributes: Allocation: 111, Extend: 0, Global buffer count: 0, No version limit
Record format: Variable length, maximum 0 bytes, longest 80 bytes
Record attributes: Carriage return carriage control
RMS attributes: None
Journaling enabled: None
File protection: System:RWED, Owner:RWED, Group:, World:
Access Cntrl List: None
Client attributes: None

Total of 1 file, 21/111 blocks.
$
============================================
Target file:
============
$ dir WAIT_FOR_FILES.COM;6/full

Directory TOOLS$:[DELIVERY.SYSTEM_INTEG.DCL]

WAIT_FOR_FILES.COM;6 File ID: (3185,105,0)
Size: 10KB/152KB Owner: [NGTS_99]
Created: 9-MAR-2009 11:00:10.52
Revised: 9-MAR-2009 11:00:10.52 (5)
Expires:
Backup:
Effective:
Recording:
Accessed:
Attributes:
Modified:
Linkcount: 1
File organization: Sequential
Shelved state: Online
Caching attribute: Writethrough
File attributes: Allocation: 304, Extend: 0, Global buffer count: 0
No version limit
Record format: Variable length, maximum 0 bytes, longest 80 bytes
Record attributes: Carriage return carriage control
RMS attributes: None
Journaling enabled: None
File protection: System:RWED, Owner:RWED, Group:, World:
Access Cntrl List: None
Client attributes: None

Total of 1 file, 10KB/152KB
$
Hein van den Heuvel
Honored Contributor

Re: copy/ftp issue

So help us understand.

What is "the problem" (last reply)

What is "broken" in "I find one of the files is broken,"

How do you know? What is broken about it?
Is there an error? Tell us about it!
Better still. Copy & Paste!

The DIR/FULL looks fine and similar except that one process was set to report in Kilobytes instead of the traditional blocks which will make serious analysis just a little more difficult.

Hein.

Wim Van den Wyngaert
Honored Contributor

Re: copy/ftp issue

And the log of the copy/ftp ?

Wim
Wim
Robert Gezelter
Honored Contributor

Re: copy/ftp issue

Tru64Unix,

Hein's point is indeed well taken. High water enabled is indeed the default (verified) on 6.2.

- Bob Gezelter, http://www.rlgsc.com
Robert Gezelter
Honored Contributor

Re: copy/ftp issue

To all,

My apologies, somehow my previous item ended up in the wrong thread.

The moderators may consider this a request to delete both this and my previous entry.

- Bob Gezelter
Hoff
Honored Contributor

Re: copy/ftp issue

If all we have here is "is broken", well, the set of things that can be broken here is infinite. Specific symptoms or DCL commands or error messages or diagnostics or exact commands and such are a vital part of resolving something that is broken.

Some suggestions around how to pose a question:

http://www.catb.org/~esr/faqs/smart-questions.html

Asking questions is as much a learned skill as answering them, in my experience. And both are worth cultivating.
Peter Zeiszler
Trusted Contributor

Re: copy/ftp issue

have you also thought of scp to move/copy files? I have been getting spoiled using that to move files around.
Tru64Unix
Trusted Contributor

Re: copy/ftp issue

Hi all,
Thanks a lot.
"Broken" means contents after line 167 are missing and leave there blank.

Source file:
===============
$ REAL_ISIX = F$EXTRACT(0, 5,ISIX) --->line 167
$ @TOFF$DCL:GET_CLUSTER "I:''REAL_ISIX'"
......
Target file:
==============
$ REAL_ISIX = F$EXTRACT(0, 5,ISIX) ---->line 167
$ @TOFF$DCL:GET_CLUSTER "
Hein van den Heuvel
Honored Contributor

Re: copy/ftp issue

>> Broken" means contents after line 167 are missing and leave there blank

Ok. Thanks. Just in case you have other problems in the future please ask yourself how on earth any reader to have guessed that?!


Now line 167 is probably an effect, not a cause. The cause is more likely to be the BLOCK + OFFSET for the NEXT line.
Try DUMP/RECORD=(STAR=166,COUNT=5) on both systems. There will be an 'RFA' which is BLOCK+BYTE.
Now use the BLOCK for $DUMP/BLOCK=(START=x,COUNT=1) /OUT=x.txt

If you can not figure out the contents, then attach good + bad dump to a future reply as a .TXT.

If you enjoy those puzzles add a /HEADER to the DUMP and check for the EXACT EOF BLOCK and BYTE and such.

OR...

Just ZIP up ALL the files in one container (optionally with -V ), transfer and unpack.
So much easier!

And uh, get rid of that good gor nothing KB reporting. It's just confusing for problems like this. I know, 1KB = 2 blocks, but why
make it hard on yourself and us?

Cheers,
Hein

Richard J Maher
Trusted Contributor

Re: copy/ftp issue

Hi,

Did you get an FTP log with some sort of dodgy status reported in it?

FWIW, I would copy over all the "real" files and once that's done then copy over the zero-length setinel file copy_complete.flag (or whatever)

The target platform then just waits for the presence of the sentinel file to tell it that the other files have been successfully copied.

'Cos polling is anathema to me I use the attached mechanism for determining when the sentinel has arrived (or timeout and report problems).

Cheers Richard Maher
Richard J Maher
Trusted Contributor

Re: copy/ftp issue

Hi again,

Obviously won't help you if the destination node is not VMS but attached is the code that I've used to tell me when a file arrives in a directory on VMS.

FWIW, there is/was a product (that I have nothing to do with) that I think is was called something like Connect Direct (Got LiveConnect in my head at the moment so I could be wrong) It used to check such transfers by polling I believe?

Cheers Richard Maher

PS. Just a shame that in 2009 FTP is still the middleware of NO-choice for VMS customers :-( If only they were able to *integrate* their rich herritage of data and business rules, resident on their VMS boxes, with their *nix and Windows platforms then they wouldn't have to rely on dodgy data replication.

"Real-time integrated access to VMS Applications, Business-Rules, and Data" - Now there's a thought!
Craig A
Valued Contributor

Re: copy/ftp issue

Another thing to bear in mind is that when donig a PUT (or a get for that matter) don't forget that at any point in the actual transfer it may terminate prematurely (system crash, power cutage, device full, diskquota exceeded, network glitch, etc.. which will leave an incomplete file on a system that may (just may) have an automated process in place to detect the file and process it.

For that reason, I was always do the PUT to a .TMP file first and then do a RENAME as part of the script.

Eg:

put craig.dat craig.tmp
rename craig.tmp craig.dat

That way if the PUT fails the RENAME doesn't occur. (Assuming ERROR_LEVEL is set to SUCCESS)

Craig