- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP abort on hp 10.20
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 07:50 PM
07-21-2004 07:50 PM
FTP abort on hp 10.20
We are using HP-UX 10.20, we run a script by cron, the script call ftp to connect a WinNT4 FTP server to get some files.
Rarely, the script will abort with no reasons. We are sure the script abort during FTP everytime, since we keep the FTP log.
Is the FTP we use have bug on 10.20?
Here is the what output about the ftp
=======================
/usr/bin/ftp:
Copyright (c) 1985, 1989 Regents of the University of California.
main.c based on 5.13 (Berkeley) 3/14/89
Revision 1.1.212.3 Wed Jul 14 10:27:17 GMT 1999
cmds.c 5.18 (Berkeley) 4/20/89
cmdtab.c 5.9 (Berkeley) 3/21/89
ftp.c 5.28 (Berkeley) 4/20/89
glob.c 5.7 (Berkeley) 12/14/88
ruserpass.c 5.1 (Berkeley) 3/1/89
domacro.c 1.6 (Berkeley) 2/28/89
===================
Thanks.
Jasper.
- Tags:
- ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 07:56 PM
07-21-2004 07:56 PM
Re: FTP abort on hp 10.20
Also do you get any messages in syslog for this?? Try using passive command on ftp.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 08:38 PM
07-21-2004 08:38 PM
Re: FTP abort on hp 10.20
Thanks, I am a newbie, what is the syslog and where is it?
Thanks,
-Jasper.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 09:06 PM
07-21-2004 09:06 PM
Re: FTP abort on hp 10.20
Check if there are any errors.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 10:14 PM
07-21-2004 10:14 PM
Re: FTP abort on hp 10.20
Thanks for the syslog.
But the syslog have no logging about the problem ftp process.
You suggest me to use passive mode, I type help in ftp but no command like passive, how can i use it?
About the problem event, Here is the FTP command input and the output for your reference
====input=====
user xxxxxxxx pppppppp
ascii
lcd /projectA/jasper/data_in
cd /jasperprojecta/export/data
get file_1.dat
quit
=====end======
=====output=====
Connected to xx.xx.xxx.xx
220 xxxxxxxx Microsoft FTP Service (Version 4.0).
331 Password required for xxxxxxxx
230 User xxxxxxxx logged in.
200 Type set to A.
Local directory now /projectA/jasper/data_in
250 CWD command successful.
200 PORT command successful.
150 Opening ASCII mode data connection for file_1.dat(17 bytes).
=====end=====
It seems abort at the get command. the quit command have never execute.
Other FTP command also abort before in other log, such as prompt and ls command.
Thanks,
-Jasper.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 10:29 PM
07-21-2004 10:29 PM
Re: FTP abort on hp 10.20
Does Windows box log anything???
Also it would be better to do binary transfer instead of ascii.
Check file /etc/inetd.conf and check ftp line. Does it -l option(to log)
If does not have it put otion -l and restart inetd. inetd -c
This should log ftp messages in syslog.log file.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 02:09 AM
07-22-2004 02:09 AM
Re: FTP abort on hp 10.20
Point of interest.This could be name resolution or even a bad router/hub
Do you get a problem if you run this from the command prompt or type the commands in 1 by 1
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 02:33 AM
07-22-2004 02:33 AM
Re: FTP abort on hp 10.20
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 01:33 PM
07-22-2004 01:33 PM
Re: FTP abort on hp 10.20
I have check the file inetd.conf
it contain a line
=========
ftp stream tcp nowait root /usr/lbin/ftpd.10.20 ftpd -1
=========
is it correct?
Thanks,
-Jasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 01:49 PM
07-22-2004 01:49 PM
Re: FTP abort on hp 10.20
Thanks, you are very nice.
I am sorry to mislead you both in my first message that the script abort "everytime".
Actually it doesn't abort everytime, it run hundard times a day, it always have no problem, just one or two times a week or a month it will abort. Also I have try manually FTP to that FTP server with no problems.
It abort completely to OS since all the statments after FTP statment can't run, including the outer calling script. So The outer calling script can't capture the return code to handle error.
Thanks, I will try to contact that Microsoft FTP server administrator , see if he can let me exam the log.
I am very grateful you have give me more ideal.
Thanks,
-Jasper.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 02:24 PM
07-22-2004 02:24 PM
Re: FTP abort on hp 10.20
After discuss with my colleague, we guess the job is not abort or 'dead', it may just hang in the FTP process, so the script also hang.
I agree with him, because I remember one time that I think it is 'abort' for several hours, I type ps -ef to check. I did see the ftp and that script in the list.
do you have any suggestion?
very thanks.
-Jasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 08:50 PM
07-22-2004 08:50 PM
Re: FTP abort on hp 10.20
I have got the NT 4 FTP log, and exam that when our script put/get file to that FTP server and 'hang', the FTP server log error 425 and/or 426.
Is it a problem on the network connection?
It seem the connection is lost, and our script wait a whole day(hang).
The file we put/get are very small, about serveral K.
Can the ftp command in our script timeout for a specific seconds of no network activity?
I have exam the ftp man page, there is a command 'idle' , is it useful to my case?
and can 'passive' command useful?
Thanks,
-Jasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 09:08 PM
07-22-2004 09:08 PM
Re: FTP abort on hp 10.20
look at nettune
TCP Keepalive 10 minutes
abort 2 minutes later:
nettune
nettune -s tcp_keepstart 600
nettune -s tcp_keepfreq 5
nettune -s tcp_keepstop 120
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 11:07 PM
07-22-2004 11:07 PM
Re: FTP abort on hp 10.20
What is nettune?
How I can use it to debug my problem?
This is very great to discuss with experts here, I have learn so much!
Thanks,
-Jasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2004 01:08 AM
07-23-2004 01:08 AM
Re: FTP abort on hp 10.20
A new network node-management tool called nettune. It is used to modify certain kernel parameters that control networking defaults such as keepalive timers. nettune is in /usr/contrib/bin.
nettune has a manpage on 10.20 and you can use it to force the connections to break after a time
NETTUNE
At HP-UX 10.0, there was a new command called nettune that provides an interface for configuration and tuning of various network parameters. nettune supports a consistent, reliable, and secure method for you to use to tune network parameters based on your performance and configuration needs. nettune allows you to view (get) or change (set) the value of many networking parameters, such as the TCP keep-alive timeout value(s), default socket buffer sizes, or the enabling/disabling of IP forwarding. All users may view the values of supported configurable network parameters, but only those with super-user capability can update a parameter. nettune is command-line driven and has an online help facility that briefly describes the available configurable values. nettune is in /usr/contrib/bin, and is not supported by Hewlett-Packard.
For more information on nettune, refer to the nettune(1) manpage in /usr/contrib/man/man1.
Steve Steel