Operating System - OpenVMS
1745791 Members
3884 Online
108722 Solutions
New Discussion юеВ

FTP fails although telnet works

 
shri Kanekal
New Member

FTP fails although telnet works

Hi,
I have recently become "system manager" on an old VAX
Alpha and have been trying to set up FTP on it. The machine
already had FTP setup but in its new location (on a new network) has stopped working. Telnet works and FTP fails with
SAMPEX$ ftp localhost
421 Service not available, Remote server has closed the connection

From reading previous posts in this forum I have tried to fiddle around but to no avail. If anybody can help it would be greatly appreciated. (I am appending some details from
UCX)
Thanks
Shri

UCX> sh ver

DIGITAL TCP/IP Services for OpenVMS Alpha Version V4.2 - ECO 1
on a Digital Personal WorkStation running OpenVMS V7.1-2

UCX> sh serv ftp /ful

Service: FTP
State: Enabled
Port: 21 Protocol: TCP Address: 0.0.0.0
Inactivity: 5 User_name: UCX$FTP Process: UCX$FTPD
Limit: 10 Active: 0 Peak: 1

File: SYS$SYSDEVICE:[UCX$FTP]UCX$FTPD_STARTUP.COM
Flags: Listen

Socket Opts: Keepalive Rcheck Scheck
Receive: 0 Send: 0

Log Opts: None
File: not defined

Security
Reject msg: not defined
Accept host: 0.0.0.0
Accept netw: 0.0.0.0

UCX> sh dev bg104 /ful
Device_socket: bg104 Type: STREAM LOCAL REMOTE
Port: 21 0
Host: 0.0.0.0 0.0.0.0
Service: FTP

RECEIVE SEND
Queued I/O 0 0

Q0LEN 0 Socket buffer bytes 0 0

QLEN 0 Socket buffer quota 8600 9700

QLIMIT 5 Total buffer alloc 0 0

TIMEO 0 Total buffer limit 34400 38800

ERROR 0 Buffer or I/O waits 0 0

OOBMARK 0 Buffer or I/O drops 0 0

I/O completed 11 0

Bytes transferred 0 0


Options: ACCEPT REUSEADR KEEP
State: PRIV
RCV Buff: None
SND Buff: None
15 REPLIES 15
Andy Bustamante
Honored Contributor

Re: FTP fails although telnet works

Please show the results from

$ UCX SHOW HOST
$ UCX SHOW CONFIG INTERFACE

Does the the address assigned to the network interface have a listed host name? Since you say "new network" Was the address properly changed and host entry created? Properly changed means with either sys$manager:ucx$config.com or appropraite UCX commands, you should not edit UCX configuration files manually.

Correct with:
$ @sys$manager:ucx$config

Please try to connect to yourself with both

$ ftp a.b.c.d ! your address here
$ ftp 0



If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net
Steven Schweda
Honored Contributor

Re: FTP fails although telnet works

> SAMPEX$ ftp localhost
> 421 Service not available, Remote server has closed the connection

The FTP service seems to be available, but
having trouble. If were completely dead,
then I'd expect something more like this:

alp $ ftp localhost
%TCPIP-E-FTP_NETERR, I/O error on network device
-SYSTEM-F-REJECT, connect to network object rejected


You might look at the FTP server log file.
Nowadays it's:
SYS$SYSDEVICE:[TCPIP$FTP]TCPIP$FTP_RUN.LOG

I'd guess that if you change "TCPIP" to "UCX"
everywhere, then you might find yours.

> Log Opts: None
> File: not defined

Well, you might need to define the log file
first. I see nothing in TCPIP HELP, but the
config procedure suggests something like:

$TCPIP set serv ftp -
/log=(file:sys$sysdevice:[TCPIP$ftp]TCPIP$ftp_run.log, all)

Again, "TCPIP" -> "UCX" for an old version.


> $ @sys$manager:ucx$config

Going through that whole thing again might be
the easy way.
John Gillings
Honored Contributor

Re: FTP fails although telnet works

Could be SYLOGIN.COM is doing something which only works for an interactive login.

Simplest test is to change the first line to:

$ EXIT

and retry your FTP connecting.
A crucible of informative mistakes
P Muralidhar Kini
Honored Contributor

Re: FTP fails although telnet works

Hi Shri,

Welcome to the ITRC forum.

>> Telnet works and FTP fails

You need to check whether the FTP server is enabled.
Also need to check if SYLOGIN.COM file to check if it encountered any error
as it could lead to FTP getting disabled.

The following link talks more about this -
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1434742

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
Shriniketan Bhagwat
Trusted Contributor

Re: FTP fails although telnet works

Hi Shri,

Can you try restarting the FTP service on your machine? There was a discussion on similar topic in the below thread.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1274178128562+28353475&threadId=698290

May be helpful.

Regards,
Ketan
Steven Schweda
Honored Contributor

Re: FTP fails although telnet works

> You need to check whether the FTP server is
> enabled.

You mean like this?:

> UCX> sh serv ftp /ful
>
> Service: FTP
> State: Enabled
> [...]

I think that that's been done already.
P Muralidhar Kini
Honored Contributor

Re: FTP fails although telnet works

Steven,

>> I think that that's been done already.
Ahhh. How can i miss the data in the very first post!

>> UCX> sh serv ftp /ful
>>
>>Service: FTP
>> State: Enabled
Yes, FTP server is started as per the output provided.

Regards,
Murali
Let There Be Rock - AC/DC
Bhadresh
Trusted Contributor

Re: FTP fails although telnet works

Hi,

Please have a look at following thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?&threadId=1219348

Regards,
Bhadresh
Steven Schweda
Honored Contributor

Re: FTP fails although telnet works

> Please have a look at following thread:
> [...]

I'll bite. How is that (name resolution)
problem relevant to this FTP server problem?