cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to ftp to hp-ux 11.31

NDO
Super Advisor

Not able to ftp to hp-ux 11.31

Hi All

 

I am trying to ftp from any non-hp-ux system to a hp-ux 11.31, but failing, on the other hand I can ftp to a 11.23 server.

 

my /etc/inetd.conf file has the following:

 

ftp          stream tcp6 nowait root /usr/lbin/ftpd     ftpd -l
telnet       stream tcp6 nowait root /usr/lbin/telnetd  telnetd

 my /etc/services has:

 

ftp           21/tcp                 # File Transfer Protocol (Control)

 

if I do netstat -an | grep 21 I got the following:

 

#netstat -an | grep 21
tcp        0      0  10.1.20.30.62179       10.1.20.30.50109        ESTABLISHED
tcp        0      0  10.1.20.30.50109       10.1.20.30.62184        ESTABLISHED
tcp        0      0  10.1.20.30.62182       10.1.20.251.1521        ESTABLISHED
tcp        0      0  10.1.20.30.62178       10.1.20.251.1521        ESTABLISHED
tcp        0      0  10.1.20.30.62201       10.1.20.251.1521        ESTABLISHED
tcp        0      0  10.1.20.30.62184       10.1.20.30.50109        ESTABLISHED
tcp        0      0  10.1.20.30.62176       10.1.20.251.1521        ESTABLISHED
tcp        0      0  *.2121                 *.*                     LISTEN
tcp        0      0  10.1.20.30.62189       10.1.20.30.50109        ESTABLISHED
tcp        0      0  10.1.20.30.62188       10.1.20.251.1521        ESTABLISHED
tcp        0      0  10.1.20.30.62175       10.1.20.251.1521        ESTABLISHED
tcp        0      0  10.1.20.30.50109       10.1.20.30.62179        ESTABLISHED
tcp        0      0  10.1.20.30.21          10.100.4.71.2847        ESTABLISHED
tcp        0      0  10.1.20.30.62187       10.1.20.251.1521        ESTABLISHED
tcp        0      0  10.1.20.30.62186       10.1.20.251.1521        ESTABLISHED
tcp        0      0  10.1.20.30.62183       10.1.20.251.1521        ESTABLISHED
tcp        0      0  10.1.20.30.21          10.100.4.71.4208        ESTABLISHED
tcp        0      0  10.1.20.30.50109       10.1.20.30.62189        ESTABLISHED
tcp        0   1336  10.1.20.30.1021        10.100.53.48.515        ESTABLISHED
tcp        0      0  *.21                   *.*                     LISTEN
udp        0      0  *.2121                 *.*
e000000424530680 dgram       0      0 e0000003cebcad00                0                0                0 /var/spool/sockets/pwgr/client22105
e000000421130700 stream      0      0                0 e0000003c7e6b900                0                0
e000000421130a00 stream      0      0                0 e0000003c7e6bb00                0                0
e000000421130d00 dgram       0      0 e0000003cf567200                0                0                0 /var/spool/sockets/pwgr/client23350
e0000003cf8f2100 stream      0      0                0 e00000041a4eb680                0                0 /tmp/.s.PGSQL.10864
e0000003cf1f2100 stream      0      0                0 e00000041a79f200                0                0 /tmp/.s.PGSQL.10864
e000000421902680 dgram       0      0 e0000003ce6dfd00                0                0                0 /var/spool/sockets/pwgr/client27957
e000000434f48100 dgram       0      0 e0000003c7d5f380                0                0                0 /var/spool/sockets/pwgr/client21596
e0000004238d8380 dgram       0      0 e00000041b873400                0                0                0 /var/spool/sockets/pwgr/client21487
e0000004210a8680 stream      0      0                0 e0000003cced7b00                0                0 /tmp/.s.PGSQL.10864
e0000004210aa080 stream      0      0                0 e00000041a748580                0                0 /var/evm/sockets/evmd
e0000004210aa380 stream      0      0                0 e00000041a748600                0                0
e0000004210aa980 dgram       0      0 e0000003cf172e80                0                0                0 /var/spool/sockets/pwgr/client1675
e00000042452dc80 dgram       0      0 e0000003cdeb6100                0                0                0 /var/spool/sockets/pwgr/client22113
e00000042440f080 dgram       0      0 e000000421d53280                0                0                0 /opt/dcelocal/var/rpc/local/s-3/2121
e0000004213bf100 dgram       0      0 e0000003cdf0bc80                0                0                0 /var/spool/sockets/pwgr/client2050
e00000042108f100 stream      0      0                0 e0000003ce1a1700                0                0
e00000042440f380 dgram       0      0 e000000421a5e100                0                0                0 /var/spool/sockets/pwgr/client3229
e0000004213bf700 stream      0      0 e000000420c28080                0                0                0 /opt/dcelocal/var/rpc/local/s-0/2121
e00000042108f700 stream      0      0                0 e0000003ce1a1880                0                0 /tmp/.s.PGSQL.10864
e00000042108fa00 dgram       0      0 e00000041ae8cd00                0                0                0 /var/spool/sockets/pwgr/client1669
e00000042108fd00 stream      0      0                0 e0000003ce1a1580                0                0 /tmp/.s.PGSQL.10864

 and if I do netstat -an | grep 21 | grep -i listen, I got:

 

tcp        0      0  *.2121                 *.*                     LISTEN
tcp        0      0  *.21                   *.*                     LISTEN

 

 

I saw in google that I need wu-ftpd,  but I have it installed:

 

swlist -l bundle | grep -i ftp
  HPUX-FTPServer        C.2.6.1.7.0    HPUX FTP Server

 

 

Can you help?

 

FR

 

 

8 REPLIES
SaravananPalani
Frequent Visitor

Re: Not able to ftp to hp-ux 11.31

Hi FR,

 

From my documentation,

..

..

A.) Check the daemon process existence by 'ps -ef | grep ftpd'.

# ps -ef | grep ftpd
    root  1964  1734  0 02:00:45 pts/tb    0:00 /usr/lbin/ftpd ftpd -l
    root  1977  1734  0 02:07:15 pts/tb    0:00 grep ftpd
#


Run 'inetd -c' command if daemon is not listed.


B.) If the daemon process is not listed even after (A.), run the command found in /etc/inetd.conf file (manually).
    You should have Superuser (root) permission to do that.

# /usr/lbin/ftpd     ftpd -l &
[2] 1978
#

29891.pts-0.ba
NDO
Super Advisor

Re: Not able to ftp to hp-ux 11.31

Hi

 

Thank you for your response, here the commands that I runned but no luck:

 

#ps -ef | grep ftpd
    root 25317  1161  0 08:44:55 ?         0:00 ftpd: 10.100.4.71: bscsprod: IDLE
    root 27957  1161  0 16:57:41 ?         0:00 ftpd: 10.100.4.71: bscsprod: IDLE
    root 21881 23364  0 13:27:02 pts/0     0:00 grep ftpd


inetd -c

#ps -ef | grep ftpd
    root 25317  1161  0 08:44:55 ?         0:00 ftpd: 10.100.4.71: bscsprod: IDLE
    root 27957  1161  0 16:57:41 ?         0:00 ftpd: 10.100.4.71: bscsprod: IDLE
    root 21920 23364  0 13:28:01 pts/0     0:00 grep ftpd

/usr/lbin/ftpd     ftpd -l &
[1]     21936
mcel_VMhost2[467]/ #

 perhaps ... but I am not sure that I should get that o/p from the ps -ef command

 

 

FR

Steven Schweda
Honored Contributor

Re: Not able to ftp to hp-ux 11.31

 
NDO
Super Advisor

Re: Not able to ftp to hp-ux 11.31

this is a command run from a solaris 10 server to a 11.23 server

 

 ftp 10.1.20.23
Connected to 10.1.20.23.
220 mceldev FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_32286) Fri Apr 15 17:37:21 GMT 2005) ready.
Name (10.1.20.23:root): root
331 Password required for root.
Password:
230 User root logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
lost+found
etc
stand
home

 and this is another command from the same solaris 10 server to a 11.31 server:

 

 ftp 10.1.20.30
ftp: connect: Connection timed out
ftp>

 

 

BTW, Steven, you dont need to be rude, if did not like the post, just ignore instead of ..... perhaps because I am not an english native speaking person, I did not express myself correct, my apologies

Steven Schweda
Honored Contributor

Re: Not able to ftp to hp-ux 11.31

 

Re: Not able to ftp to hp-ux 11.31

If you don't see SYN_RCVD entry for port 21 in netstat -an after you hit ftp command from other machine

before getting "Connection Timed out" error, then, the root cause of the problem is either of external firewall or

IPFilter configuration. If the connection request reaches the system's TCP layer from the ftp client, then,

there must be SYN_RCVD for the connection request in netstat -an. If not, that means the connection request

(SYN packet) does not reach the TCP layer.

 

To check if there's any IPFilter configuration, try :

 

# ipfstat -io

 

 

NDO
Super Advisor

Re: Not able to ftp to hp-ux 11.31

Hi

 

I see the following when I do ftp from a solaris 10 server (192.168.0.81), and do a netstat -an | grep 21 on my hp-ux server:

tcp        0      1  10.1.20.30.21          192.168.0.81.34928      SYN_RCVD
tcp        0      0  10.1.20.30.21          10.100.48.75.32804      TIME_WAIT

 to my hp-ux server which is 10.1.20.30

 

And I spoke with the network guys and they told me that could be tha a firewall is on the middle, they are investigating.

 

FR

NDO
Super Advisor

Re: Not able to ftp to hp-ux 11.31

ipfstat -io
open: No such file or directory