1836580 Members
1532 Online
110102 Solutions
New Discussion

HP-3k and remsh

 
Dave Debus_1
Occasional Contributor

HP-3k and remsh

I would like to execute a ftp script on a HP-UX
box running 11.11i from my 3k. I can get as far as the ftp script actually logging in to the remote server, but the mput commands are just skipped and and all I get from my log file is "Goodbye. Control connection closed."

No 'puts are done'. The script runs perfectly when run from session directly on the HP-UX box
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: HP-3k and remsh

Hi,

Enable ftpd on the UNIX box with -v and -l options. That should generate verbose messages into syslog.log. They may give you hints on why it is not working. Edit /etc/inetd.conf file and add -v and -a to the line that has ftpd line. Then re-read the configuration using 'inetd -c' command.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Dave Debus_1
Occasional Contributor

Re: HP-3k and remsh

I think I need to clarify the steps as the occur in the HP3k job stream

1) Create 2 files and ftp to HP-UX box (OK)
2) remsh encryption commands to encrypt files on HP-UX box (OK)
3) remsh from HP3k a ftp command file on the HP-UX box to send encrypted files to vendor ftp server. (FAIL)

I have attached a text file with results from a log file generated by the ftp command file that fails when called via remsh on the HP3k

File 'script_results.txt' has three sections.

Part one is the ftp script on the HP-UX box.

Part two are the results from interactive execution of the script (SUCCESSFUL)

Part three are the results of the ftp script being called via remsh from the HP3k

It seems as though the 'mput' commands are being ignored.

The syslog.log only showed that the ftp function from the HP3k to the HP-UX box was successful
Volker Borowski
Honored Contributor

Re: HP-3k and remsh

Hi,

may be it prompts you for the MPUT ?
Set "prompt" off may help, it is on by default.

Second: May be the target server is a passive FTP server ? You need to set the session "PASV" before you can transmit then !

Good hunting
Volker
Chris Vail
Honored Contributor

Re: HP-3k and remsh

I've always had trouble scripting with ftp. It can be done, but as you have found, it gets ugly.
Have you tried rcp or scp? These script much more nicely. I don't know if Secure Shell is available for an HP3k, but it should be. If so, install it and also on the HP9k box. Then you'll be able to copy securely without being prompted for a password.
Somewhere on these forums is a document I wrote a while back on configuring Secure Shell so that it doesn't prompt for passwords. I'm not at my regular system, else I'd attach it. If you're interested, post back here and I'll dig it up for you.


Chrs