Operating System - HP-UX
1819929 Members
3077 Online
109607 Solutions
New Discussion юеВ

ftp client report UNKNOWN system type

 
John Dvorchak
Honored Contributor

ftp client report UNKNOWN system type

I have an HPUX 11.11 system that is causing our automated ftp clients fits. When you try to ftp to it everything is normal and it works except it report system type as UNKNOWN instead of UNIX like the HPUX 11.11 boxes. I have searched on the forums for combinations of ftp ftpd UNKNOWN etc. Here is what I get with swlist:

root> swlist|grep -i ftp
PHNE_30990 1.0 ftpd(1M) and ftp(1) patch
PHNE_32449 1.0 bootpd(1M)/DHCP, tftp(1)

Any ideas?
If it has wheels or a skirt, you can't afford it.
8 REPLIES 8
Jaime Bolanos Rojas.
Honored Contributor

Re: ftp client report UNKNOWN system type

John,

Make sure that the ftpd on both systems are HP's, sometimes when one of the is third party causes that error.

Regards,

Jaime.
Work hard when the need comes out.
John Dvorchak
Honored Contributor

Re: ftp client report UNKNOWN system type

They both appear to be the same:

root> what /usr/localcw/opt/nas/sidftpd
/usr/localcw/opt/nas/sidftpd:
$Revision: 92453-07 linker linker crt0.o B.11.30 010914 $
HP92453-02A.11.00 HP-UX SYMBOLIC DEBUGGER (END.O ILP32) $Revision: 75.04 $
wu-ftpd-2.6.2 - sidftpd for largefiles
If it has wheels or a skirt, you can't afford it.
spex
Honored Contributor

Re: ftp client report UNKNOWN system type

John,

Manually log in via ftp, then issue 'SYST'. If 'UNIX' is returned, the problem is most likely your clients.

PCS
John Dvorchak
Honored Contributor

Re: ftp client report UNKNOWN system type

it still reports unknown:
ftp> syst
215 UNKNOWN Type: L8
ftp>

If it has wheels or a skirt, you can't afford it.
A. Clay Stephenson
Acclaimed Contributor

Re: ftp client report UNKNOWN system type

Are you doing auto-login? If so then use the -c ftp option to suppress the SYST and TYPE queries -- which is probably a good idea anyway. Your script should be asserting the type of transfer (ASCII or BINARY) regardless of the system type.
If it ain't broke, I can fix that.
John Dvorchak
Honored Contributor

Re: ftp client report UNKNOWN system type

The -c switch didn't seem to change the reponse from the ftp server:

230 User xxxx logged in.
Remote system type is UNKNOWN.
ftp> quit

but thanks for the effort.
If it has wheels or a skirt, you can't afford it.
A. Clay Stephenson
Acclaimed Contributor

Re: ftp client report UNKNOWN system type

Actually, what I meant for you to try was "ftp -nc remote_host"; that will not make any inquiries. Your first command will be "user mickey". The client will not query the system for its type so unknown is okay.
If it ain't broke, I can fix that.
John Dvorchak
Honored Contributor

Re: ftp client report UNKNOWN system type

Thank you all for your suggestions and all of them were good. Here is what we finally found out. The ftpd was compiled with the system type as "unknown" so it didn't know how to respond to the querry. We replaced the binary with one that had UNIX as the system type compiled in.

The best suggestion from was from A. Clay and our appications person has modified his scripts to use ftp -nc and force binary transfer.
If it has wheels or a skirt, you can't afford it.