- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ftp between two HP-UX servers
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
10-01-2004 03:55 AM
10-01-2004 03:55 AM
Here is the situation:
ftp 2 files (IRDS.tar.Z, IRDS2.tar.Z) from this location on new server:
/opt/oracle/data/orabackup
to these locations on old server:
/opt/oracle12/newlogs (IRDS2.tar.Z goes here)
/opt/oracle10/backup (IRDS2.tar.Z goes here)
How do I go about this process? Latest quality and hardware enablement patches installed on both machines.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 04:01 AM
10-01-2004 04:01 AM
Re: ftp between two HP-UX servers
Automating 'ftp' means hardcoding the passwords somewhere. Like .netrc or in the ftp script itself. The best way is to install openssh (you can get it from software.hp.com for free), setup public/private authentication and use 'sftp|scp' without passphrase mechanism.
If you are copying the files from systemA to systemB as the user 'oracle1 on systemA' and 'oracle2 on systemB', then follow these commands once you installed ssh.
( press enter for all questions)
Copy id_dsa.pub file onto /tmp dir of. Logon to systemB
(Logon to systemA)
It shouldn't ask for a password.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 04:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 04:18 AM
10-01-2004 04:18 AM
Re: ftp between two HP-UX servers
# ftp 200.200.XXX.X
ftp timed out
happens all the time...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 04:31 AM
10-01-2004 04:31 AM
Re: ftp between two HP-UX servers
If the IP was incorrect, you would get:
ftp: connect: No route to host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 04:32 AM
10-01-2004 04:32 AM
Re: ftp between two HP-UX servers
If you are able to ping to the server, then there is a good chance for any of these possibilities.
1. Firewall setup in between that is not allowing ftp access.
2. ftp is not enabled on the ohter host. Check the line 'ftp' in /etc/inetd.conf. It shouldn't be commented out.
3. ftp is disallowed on the other host. Check /var/adm/inetd.sec file for any filters. If you are using tcp_wrappers (you should see ftp line containing tcpd entry in your inetd.conf file.
For reasons 2 and 3, you will get 'connection refused' messages rather than timeout messages. But it doesn't hurt to validate them. For any changes related to 2 and 3, you will need to refresh inetd as (inetd -c)
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 04:50 AM
10-01-2004 04:50 AM
Re: ftp between two HP-UX servers
Since you are in the process of willing to learn all sorts, why not go for NFS, your RP5430 is a good candidate for a NFS server, the D350 would be the client:
You can use sam for this task:
export /opt/oracle/data/orabackup
configure to allow the other box for root access (you never know)
When done,On the D350, create a new mount point like I dont know /mt_nfs
Then mount the exported filesystem on it
mount
cd /mt_nfs, can you see your files? just copy them where you wish...
All the best
Victor.
P.S.
Be sure you have each box knowing about the other in /etc/host if you are not using DNS...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 06:01 AM
10-01-2004 06:01 AM
Re: ftp between two HP-UX servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 06:13 AM
10-01-2004 06:13 AM
Re: ftp between two HP-UX servers
dtspc allow 127.0.0.1 loopback
In the inetd.conf here are the uncommented lines containing "ftp":
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
tftp dgram udp wait root /usr/lbin/tftpd tftpd\
/opt/ignite\
/var/opt/ignite
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 06:47 AM
10-01-2004 06:47 AM
Re: ftp between two HP-UX servers
I can actually ftp
I cannot ftp
:(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 06:57 AM
10-01-2004 06:57 AM
Re: ftp between two HP-UX servers
attached is the output from:
# netstat -r
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 07:08 AM
10-01-2004 07:08 AM
Re: ftp between two HP-UX servers
Can you ping and telnet to the old server from new server?. If so, then the problem is only with ftp. If not, then it's a network problem that you would need to fix.
You would be checking ftpd configuration on 'old server'. Can you be able to ftp to the old server from any other server on the network?. How about ftp from old server to itself?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 07:25 AM
10-01-2004 07:25 AM
Re: ftp between two HP-UX servers
When I telnet from oldserver to newserver:
root:INLAND3>telnet 200.200.120.3
Trying...
Connected to 200.200.120.3.
Escape character is '^]'.
telnetd: /dev/pts/ta: No such file or directory
.
Local flow control off
Connection closed by foreign host.
root:INLAND3>
So is this network problem then?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 07:44 AM
10-01-2004 07:44 AM
Re: ftp between two HP-UX servers
I wasnt feeling well and gone home, I will try my best to assist you but I feel very dizzy...
Lets see how you are configured network wise:
from
box1 -> ping box2
box2 -> ping box1
OK?
Now same but instead of ping-> nslookup
but with a) ip.address then hostnames
What do you have in the file /etc/nsswitch.conf?
Do you have a /etc/resolv.conf file?
Are the boxes declared in /etc/hosts?
What are the permissions on these files?
(read for every one?)
Courage!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 07:53 AM
10-01-2004 07:53 AM
Re: ftp between two HP-UX servers
You may have some trouble with you lan interface: the interface in the box or speed/protocol mismatch it happens when it badly negociate with the switch port or if something changed...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 07:59 AM
10-01-2004 07:59 AM
Re: ftp between two HP-UX servers
root:INLAND8>nslookup 200.200.120.8
Using /etc/hosts on: inland8
looking up FILES
Name: inland3.irdbb.com
Address: 200.200.120.8
Aliases: inland3
root:INLAND8>
if case is relevant then inland3 is supposed to be INLAND3 although the IP address shouldn't make a difference no?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:03 AM
10-01-2004 08:03 AM
Re: ftp between two HP-UX servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:05 AM
10-01-2004 08:05 AM
Re: ftp between two HP-UX servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:10 AM
10-01-2004 08:10 AM
Re: ftp between two HP-UX servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:10 AM
10-01-2004 08:10 AM
Re: ftp between two HP-UX servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:17 AM
10-01-2004 08:17 AM
Re: ftp between two HP-UX servers
Type ifconfig lan0
ifconfig lan1 on old and new box
You seem to have duplicate or its my fever...
There is a file for configuring network interfaces: /etc/rc.config.d/netconf
Check on both boxes that they have a different IP but the same netmask and gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:27 AM
10-01-2004 08:27 AM
Re: ftp between two HP-UX servers
root:INLAND8>ifconfig lan1
lan1: flags=1843
inet 200.200.120.3 netmask ffffff00 broadcast 200.200.120.255
output from old:
root:INLAND3>ifconfig lan1
lan1: flags=843
inet 200.200.120.8 netmask ffffff00 broadcast 200.200.120.255
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:31 AM
10-01-2004 08:31 AM
Re: ftp between two HP-UX servers
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=200.200.120.3
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=200.200.120.255
INTERFACE_STATE[0]=down
DHCP_ENABLE[0]=0
but IP is NOT that it's actually:
200.200.120.8
there is another entry yet further down in the file:
IP_ADDRESS[1]=200.200.120.8
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=200.200.120.255
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
which has the correct info....
is that wrong IP entry on old server in netconf the culprit? seems fishy...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:32 AM
10-01-2004 08:32 AM
Re: ftp between two HP-UX servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:40 AM
10-01-2004 08:40 AM
Re: ftp between two HP-UX servers
This means you had 2 cards configured lan0 whith the address of the other box but it is down I would be sure it is not connected in case somebody by accident brings it back up OR change the address...
So I wonder in the /etc/hosts of the old box if you dont have anything with the address X.X.X.3 with its own hostname...
Once you doublechecked these files and put them right I would suggest a man of lanadmin because I dont remember if -x or -X you need to see the configuration of your card one tells you how it is configured e.g. 100FD for 100Mb Full Duplex - the other is to set the value...
once you know how it is configured, check how the pots of you switches are, if you are using 100FD then be sure to fix both sides (port - box card) turning off Autonegociation