1827807 Members
2631 Online
109969 Solutions
New Discussion

Re: copy/ftp

 
SOLVED
Go to solution
Gerry Downey
Frequent Advisor

copy/ftp

I'm trying to do a copy/ftp onto a windows 2003 server. The ftp space on the 2003 server is set up correctly.

The command I use is
copy/ftp xx.txt server"username password"::"dir"

But I get the error "no logical name match"

I can ftp onto the server, enter the user name and password, CD to the correct directory and then PUT the files. It only fails when I do the copy/ftp command.

The Alpha is running VMS V7.3-1 and TCPIP V5.3 ECO4

Thanks for any help
26 REPLIES 26
Craig A Berry
Honored Contributor

Re: copy/ftp

What syntax are you using for the target directory? What happens if you explicitly specify dir/xx.txt as the target filename?

You might want to try the /verbose qualifier to see if that tells you anything.
Antoniov.
Honored Contributor

Re: copy/ftp

Gerry,
I guess your command has a syntax error; may be in dir component if you are using vms convention.
Example of wrong command:
$ COPY/FTP XX.TXT W2K3"USER PWD"::"[TEMP]"
Example of right command:
$ COPY/FTP XX.TXT W2K3"USER PWD"::"\TEMP"

Antonio Vigliotti
Antonio Maria Vigliotti
Antoniov.
Honored Contributor

Re: copy/ftp

Gerry
don't forget you could use /NOSTRU qualifier.

Antonio Vigliotti
Antonio Maria Vigliotti
Bojan Nemec
Honored Contributor

Re: copy/ftp

Gerry,

If Craigs and Antonios sugestions have not work, can you post the exact copy of the error you received?

Try to copy with a command without the output file specification:

copy/ftp xx.txt server"username password"::

Bojan
faris_3
Valued Contributor

Re: copy/ftp

Have you tried

$ copy/ftp/verbose file.txt
server"domain\user pwd"::"c:\dir\file.txt"



hth,
HF
Gerry Downey
Frequent Advisor

Re: copy/ftp

Thanks for your replies guys. The exact command I us is
copy/ftp *.txt servername"username password"::"\didata"

Error: %SYSTEM-F-NOLOGNAME, no logical name match.

If I use /verbose and /nostruvms, or leave off the directory name at the end, I get exactly the same response.

I have also found that if I put in an incorrect username and password or even use a server name that doesn't exist, I still get the same error.
Gerry Downey
Frequent Advisor

Re: copy/ftp

Hi HF, we both posted at the same time so didnt see your reply until I had completed my reply.
I have just tried your suggestion and received the exact same error.

Karl Rohwedder
Honored Contributor

Re: copy/ftp

COPY/FTP uses the program defined by the logical name OPENVMS$FTP. How is this defined on your system?
Gerry Downey
Frequent Advisor

Re: copy/ftp

$ $ sho log openvms$ftp
"OPENVMS$FTP" = "SYS$SYSTEM:TCPIP$FTP_CLIENT.EXE" (LNM$SYSTEM_TABLE)
Bojan Nemec
Honored Contributor

Re: copy/ftp

Gerry,

Try to look at the OPENVMS$FTP logical name. Is that logical name defined? Where is pointing? If you do a DIR OPENVMS$FTP did you receive something like this:

Directory SYS$COMMON:[SYSEXE]

TCPIP$FTP_CLIENT.EXE;1

Total of 1 file.


Bojan
Antoniov.
Honored Contributor

Re: copy/ftp


I have also found that if I put in an incorrect username and password or even use a server name that doesn't exist, I still get the same error.

if you receive same error on wrong server means trouble is local. The logical name is right (it's the same on my system).
Can you copy onto your same system?
Example:
$ COPY/FTP XX.TXT -
LOCALHOST"user pwd"::"[DIR]"

Antonio Vigliotti
Antonio Maria Vigliotti
Bojan Nemec
Honored Contributor

Re: copy/ftp

Hi,

I definitely type to slow ;)

Ftp can have many logical names to adjust its work. So check all the TCPIP$FTP* logical names. Check also the SYS$LOGIN and SYS$DISK logical name.

And did you try Antonios sugestion?

Bojan
faris_3
Valued Contributor

Re: copy/ftp

Have you used domain\username instead of
username ?

On XP i cannot specify the directory.
It is defined in the properties of
IIS ftp server.

Just specifying the file name works :

$copy /ftp/verbose login.com 11.132.69.2"domain\faris Password"::"test" Passive is ON.
220 Microsoft FTP Service Connected to dhcp-11-132-69-2.xxx.yy.com.
331 Password required for domain\faris.
230 User domain\faris logged in.
227 Entering Passive Mode (11,132,69,2,17,124).
125 Data connection already open; Transfer starting.
226 Transfer complete.
faris_3
Valued Contributor

Re: copy/ftp

Is $ copy /ftp to a VMS system working ?

Can you post a
$ set watch file /class=major
$ copy/ftp ...

/HF
Gerry Downey
Frequent Advisor

Re: copy/ftp

I CANT copy/ftp onto the Alpha. I have attached the output from the set watch command.


$ copy/ftp login.com hayesfuelsmf"user pass"::"\didata"
%XQP, Thread #0, Access FDLSHR.EXE;1 (2131,2,0) Status: 00000001
%XQP, Thread #0, Access (0,0,0) Status: 00000910
%XQP, Thread #0, Access DECC$SHR.EXE;1 (6508,3,0) Status: 00000001
%XQP, Thread #0, Control function (6508,3,0) Status: 00000001
%XQP, Thread #0, Deaccess (6508,3,0) Reads: 2, Writes: 0, Status: 00000001
%XQP, Thread #0, Access (0,0,0) Status: 00000910
%XQP, Thread #0, Access TCPIP$ACCESS_SHR.EXE;1 (14886,54,0) Status: 00000001
%XQP, Thread #0, Control function (14886,54,0) Status: 00000001
%XQP, Thread #0, Deaccess (14886,54,0) Reads: 2, Writes: 0, Status: 00000001
%XQP, Thread #0, Lookup (9158,675,0) Status: 00000001
%XQP, Thread #0, Access DECC$SHR_EV56.EXE;1 (9158,675,0) Status: 00000001
%XQP, Thread #0, Control function (9158,675,0) Status: 00000001
%XQP, Thread #0, Deaccess (9158,675,0) Reads: 12, Writes: 0, Status: 00000001
%XQP, Thread #0, Access SYS$PUBLIC_VECTORS.EXE;1 (6534,3,0) Status: 00000001
%XQP, Thread #0, Lookup (6534,3,0) Status: 00000001
%XQP, Thread #0, Access SYS$PUBLIC_VECTORS.EXE;1 (6534,3,0) Status: 00000001
%XQP, Thread #0, Control function (6534,3,0) Status: 00000001
%XQP, Thread #0, Deaccess (6534,3,0) Reads: 4, Writes: 0, Status: 00000001

%XQP, Thread #0, Lookup (9249,938,0) Status: 00000001
%XQP, Thread #0, Access UCX$IPC_SHR.EXE;1 (9249,938,0) Status: 00000001
%XQP, Thread #0, Control function (9249,938,0) Status: 00000001
%XQP, Thread #0, Deaccess (9249,938,0) Reads: 3, Writes: 0, Status: 00000001
%SYSTEM-F-NOLOGNAM, no logical name match
%XQP, Thread #0, Deaccess (6534,3,0) Reads: 0, Writes: 0, Status: 00000001
%XQP, Thread #0, Deaccess (2131,2,0) Reads: 7, Writes: 0, Status: 00000001
$
Bojan Nemec
Honored Contributor

Re: copy/ftp

Gerry,

Comparing yours output from the set watch file /class=major, I see that the next file open on my system is TCPIP$HOSTS.DAT. So check the logical name (and the file) TCPIP$HOSTS.

Bojan
Gerry Downey
Frequent Advisor

Re: copy/ftp

sho log tcpip$host
"TCPIP$HOST" = "SYS$COMMON:[SYSEXE]TCPIP$HOST.DAT;1" (LNM$SYSTEM_TABLE)


I have looked at the contents of TCPIP$HOST.DAT and it all looks ok. I have noticed however, that the Alpha TCPIP hostname in this file is not the same as the Alpha system name, could this be a problem?

faris_3
Valued Contributor
Solution

Re: copy/ftp

It seems there is a problem in the TCPIP
configuration.

First check the inet logicals :

$ show log *inet*

Then
- check host table for your own name
- tcpip show (conf) comm/interface

hth,
HF
faris_3
Valued Contributor

Re: copy/ftp

Problem with TCPIP$INET_HOST ?

$ deass /sys /exe "TCPIP$INET_HOST"
$ copy /ftp/verbose login.com - 151.10.9.2"domain\faris Password"::test
%SYSTEM-F-NOLOGNAM, no logical name match
Gerry Downey
Frequent Advisor

Re: copy/ftp

Ah hah!! I think we're getting somewhere.

show log *inet* shows that no logicals are defined. (I compared it with another Alpha that has these logicals defined)

Any suggestions as to how these logicals get
defined?

Bojan Nemec
Honored Contributor

Re: copy/ftp

Gerry,

It seems that you have similar problems which are described in this thread. Take a look:

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

Bojan
Bojan Nemec
Honored Contributor

Re: copy/ftp

The TCPIP$INET_HOST is defined by the TCPIP command SET [CONFIGURATION] COMMUNICATION /LOCAL_HOST= . Check with SHOW COMMUNICATION and SHOW CONFIGURATION COMMUNICATION.

Bojan
faris_3
Valued Contributor

Re: copy/ftp

or redo the config using
sys$manager:tcpip$config.com
Gerry Downey
Frequent Advisor

Re: copy/ftp

That has fixed the problem. The inet_host
was not defined. I ran the config procedure again and this set up the logicals, and now
my copy/ftp works.

Thanks everyone