HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

File transfer issue through SFTP

 
Mrityunjoy Kundu
Frequent Advisor

File transfer issue through SFTP

E-MS$ sftp
sftp> open AOLTRIO676@213.187.33.243
Opening connection to AOLTRIO676@213.187.33.243
sftp>
sftp> cd /DispatchConfirmation
/dispatchconfirmation/
sftp> ls
.
Archive
CPE_DISPATCH_CONFIRM_AOL_201005161044.TXT
CPE_DISPATCH_CONFIRM_AOL_201005161044.TXT;1
CPE_DISPATCH_CONFIRM_AOL_201005171044.TXT
CPE_DISPATCH_CONFIRM_AOL_201005181044.TXT
PROCESS_BTN_CPE_INBOUND_FILES.LOG;1
sftp>
sftp> mget *.txt
File CPE_DISPATCH_CONFIRM_AOL_201005161044.TXT not a regular file, directory or symlink.
File CPE_DISPATCH_CONFIRM_AOL_201005171044.TXT not a regular file, directory or symlink.
File CPE_DISPATCH_CONFIRM_AOL_201005181044.TXT not a regular file, directory or symlink.
sftp>

Please help me to sort out why this is not happening? "Mput" is working fine but while getting file using "mput" it is showing "not a regular file, directory or symlink.
File ".

If I do a "get" for any specific file it works fine.

Eg:
E-MS$ sftp
sftp> AOLTRIO676@213.187.33.243
Unrecognized command line: ' AOLTRIO676@213.187.33.243'
sftp> open AOLTRIO676@213.187.33.243
Opening connection to AOLTRIO676@213.187.33.243

sftp> cd /DispatchConfirmation.1.0
/dispatchconfirmation/
sftp> ls CPE_DISPATCH_CONFIRM_AOL_201005161044.TXT
CPE_DISPATCH_CONFIRM_AOL_201005161044.TXT;1
sftp> get CPE_DISPATCH_CONFIRM_AOL_201005161044.TXT
CPE_DISPATCH_CONFIRM_AOL_201005161044.TXT sftp>exit

I would like to know why "mget" is throghin the error?

6 REPLIES
Steven Schweda
Honored Contributor

Re: File transfer issue through SFTP

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1435351

> sftp "-V"

> Which version of TCP/IP are you using?

In other words:

tcpip show version

Still waiting for any answer to those
questions.

> Do we need to pay for this information?

I won't pay, by the way.


> Thanks , the issue has been resolved .

> What was the solution ?

There's another good question which got no
answer.

> I would like to know [...]

I would like to know why you can't or won't
answer simple questions. You seem to have no
trouble asking more.
P Muralidhar Kini
Honored Contributor

Re: File transfer issue through SFTP

Hi,

Yes, again its the same set of questions.

What is the VMS version and TCPIP version.

>> sftp> ls
>> .
>> Archive
>> CPE_DISPATCH_CONFIRM_AOL_201005161044.TXT
>> CPE_DISPATCH_CONFIRM_AOL_201005161044.TXT;1
Looks like there are two version of the same file.
One has a version number of ";1", other one does not have any version number ?
Are both of them files or is one of them a symlink?

does the following work -
sftp> mget CPE_DISPATCH_CONFIRM_AOL_201005161044.TXT;*

Regards,
Murali
Let There Be Rock - AC/DC
Khee Chan
Advisor

Re: File transfer issue through SFTP

Since the names of your files are in uppercase, have you tried:

sftp> mget *.TXT

or "get"ting each file individually?
Shriniketan Bhagwat
Trusted Contributor

Re: File transfer issue through SFTP

Hi,

Can you try getting the individual files with the exact case? I faced the similar problem with mget and resolved it by getting the individual files with exact case.

Regards,
Ketan
Mrityunjoy Kundu
Frequent Advisor

Re: File transfer issue through SFTP

The previous issue was the logical defination from VMS end was incorrect.As Duncan advised, I have corrected the same and issue resolved.

This is not a problem with TCPIP/VMS version as so many simillar scripts are running successfully for secure file transfer on the same server.

While fetching file from remote end "get" with exact file name is working but mget is not working. I am getting error as I mentioned. I'd like to mention mget with exact file name also throughing the same error.



P Muralidhar Kini
Honored Contributor

Re: File transfer issue through SFTP

Hi Mrityunjoy,

>> I'd like to mention mget with exact file name also throughing the same error.
Also, let us know if
* "mget" is not working on any other files in the "dispatchconfirmation" directory?
* does "mget" work on files in some other directory other than "dispatchconfirmation" ?

Regards,
Murali
Let There Be Rock - AC/DC