How Do I FTP System Files to Different Server?

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers How Do I FTP System Files to Different Server?
# 15  
Old 07-25-2018
OK, now I'm pulling my hair out. I deleted the working VM that I had, in order to pursue some different options, but now I'm determined to find a way to get this option working. I'm using VM Workstation 12, which has a configuration equivalent to Workstation 8.x that seems to work wonderfully well for installing OpenServer 5.0.6, even though according to Xinuos that setup is "not supported". I know that I had it working before, and it was connected to my LAN because I could remote in using a program called ICE.TCP which works with my operating legacy hardware server.


Now the problem is that when I install 5.0.6 using the option to "Auto-detect) when it comes to selecting the network adapter, it does not work after the software is finished installing. I can't think of anything different that I did before when I got it to work, but I must have. In the VM settings for Workstation, I have it set to used "Bridged" networking, which should allow the VM to have a separate IP address from the host, which is what I want.



The actual NIC in the Host is an Intel 82579V built-in the MB. The "Auto-detect" feature of the OS installation selects an AMD PCNet-PCI adapter with Bus-Dev-Func of 2:0:0. I cannot think of anything else I would have done the first time, so I'm wondering if I did something after installation that got the VM connected to my LAN. The Windows setting for the NIC is for static IP of 192.168.40.215, and when I assign an IP to the OS in VM I give it 192.168.40.216. After I finish the installation I am unable to ping to or from the OS 5.0.6 VM. I do have the host entry in my local DNS server for the VM IP and machine name.



Can anyone point me in the direction of what I might be missing? I KNOW it was working with my other VM, before I trashed it. Any help is appreciated.
# 16  
Old 07-26-2018
Have we had this conversation before:

Creating a VM
# 17  
Old 07-26-2018
SCO auto-detecting AMD PCNet-PCI adapter is correct.

Did you configure that virtual NIC when prep'ing??

Ref: You never know: SCO Openserver 5.0.7 P2V
# 18  
Old 07-26-2018
Well, I've made some progress but still not totally solved. My two SCO machines I will call now the "physical" and the "VM". At this point I can ping from any machine on the LAN to both the physical and the VM IP addresses or machine names. From the physical machine, I can ping out to any machine on the LAN by either IP address or machine name, which would mean that it is correctly finding my local DNS server for resolution. However, from the VM I cannot ping out to any other machine using either the IP address or machine name. All I get is a "host down" message.


I was unaware that anything needed to be done with the NIC settings in the Host Windows PC in order to use the VM "bridge" mode - please let me know if this is my problem and what I need to do.


I also read somewhere that there is a "route" file in the /etc directory, but it's binary so I have no idea if that is configured correctly in the VM. When I look at the Network settings in scoadmin everything appears to be correct, with similar settings to the physical machine.


Any help as to what I am missing will be greatly appreciated. Thanks!


Edit to add: In the Virtual NIC settings for the VM I saw a checkbox that says "Replicate physical network connection state" that was not checked. I tried shutting down the VM and checking that box. I restarted and it still won't ping out - so that was not the problem. I also forgot to mention that I entered the Gateway IP and the primary and secondary DNS IPs at system installation for the VM. Still not sure what the problem is.

Last edited by spock9458; 07-26-2018 at 12:51 PM..
# 19  
Old 07-26-2018
Hmmmmm........need to gather some information!

Please post the ip address of the physical system and the ip address of the VM system.

Login to the VM system...........

What are the locally configured hosts? Please post the output of:

Code:
# cat /etc/hosts


What net adapters does the VM machine think it has? Please post the output of:

Code:
# ifconfig -a


What routing does the VM system think it has? Please post the output of:

Code:
# netstat -r

That lot ought to tell us something.
# 20  
Old 07-26-2018
There are probably many was to do this sort of thing, however if you are looking at cloning/virtualising a server, I would point you to something like Storix although there are other products like Christie clone manager etc. I'm not sure if it will support your OS though, you would need to check.

If you just have a new server and need to get all sorts of (hopefully small) configuration files across, then you could:
  • build an archive file (cpio, tar etc.) and FTP it before extracting
  • NFS share from the new server and mount on the old so you can write the file(s)
  • If you are very short of space on the old, you might use a tunnel:
    • make a pipe file on the receiving server in /tmp/receive.pipe with mknod
    • make a pipe file on the sending server in /tmp/source.pipe
    • start reading the receiving pipe (for instance with tar) such as tar -xvf /tmp/receive.pipe
    • on the source, use rsh/remsh/rlogin to open a telnet port connection, reading from one pipe and writing to the other pipe file something like (dd if=/tmp/source.pipe | remsh newserver "dd of=/tmp/arrive.pipe") &
    • start your archive (with tar or whatever to match above) such as tar -cvf /tmp/source ./file1 ./file2 ./file3 ........
    Hopefully this will all hang together across the network and channel the data across without the IO costs of really writing the intermediate files to disk.

    You might try ssh instead of a remote telnet shell if that is available to your OS (I don't know how old it is)

  • If you have ssh keys established so that there is password-less login from the source to the receiver, then you could probably scp each file. You might also try rsync if there are lots of files in a common directory (and below) to move across.

Always be careful of what you overwrite else the receiving server may become unusable of you overwrite the wrong things.



Looking at the issue of network connectivity, it may come down to what network adapter you have assigned to the VM. Do you have a default router configured that you can get to and get to other machines with for both the source and target? Perhaps your netmask is wrong for your routing. The output requested by hicksd8 would be useful to narrow this down.



Kind regards,
Robin
# 21  
Old 07-26-2018
IP of physical machine is: 192.168.40.217
IP of VM is: 192.168.40.216


I am attaching a screenshot of the output for the three commands suggested above, and I'm noticing there is nothing in my routing table in the VM. That's probably the problem? How do I fix?


Thanks,
How Do I FTP System Files to Different Server?-vm-settings-outputjpg
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

FTP-ing files from Windows server to UNIX server

I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output. Is it possible to transfer files from Windows server to unix server through any shell script? If so can you please help me with the details. Thanks in... (8 Replies)
Discussion started by: ssk250
8 Replies

2. Shell Programming and Scripting

FTP multiple files from one server to one server

Hi, I'm new to shell script..I have one requriement like - In one server have more than one files,I want to ftp those files to some otehr server.. Ex : test1.pdf test2.pdf Please suggest me how to do (3 Replies)
Discussion started by: venkaswa
3 Replies

3. Shell Programming and Scripting

Need help creating a script to FTP files to a server and then delete the files that were transfered.

I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Discussion started by: jmalfhs
4 Replies

4. Shell Programming and Scripting

Validating the size of file transferred from ftp server to the local system

Validating the size of file transferred from ftp server to the local system. File type: Text file/Flat file Source System: Windows / Unix Systems Target System is always: Unix Mode of Transfer : ASCII We have generic ftp shell script that transfers the files from different ftp servers. ... (2 Replies)
Discussion started by: jpundalik
2 Replies

5. Shell Programming and Scripting

script for to take files from FTP server to UNIX server and Unzipped that files

script for to take files from FTP server to UNIX server and Unzipped that files (1 Reply)
Discussion started by: sunilamarnadh
1 Replies

6. Filesystems, Disks and Memory

Not able to FTP the files to a FTP server

Hi , We are facing a weird problem in our project. we need to send some xml & audio files to a remote FTP server from a Linux box, we are doing this in Perl script using Net::FTP->. Issue here is.. when FTPed the files using Perl scripts, only empty files ( 0 byte) are getting created on the... (2 Replies)
Discussion started by: kishorepotta
2 Replies

7. UNIX for Dummies Questions & Answers

FTP Files from one server to another

Hi, I want to run a process on server a, pulling files from server b and pushing it to server c. Can i do that without dropping the files on server a? Thanks, Samit (2 Replies)
Discussion started by: samit_9999
2 Replies

8. Shell Programming and Scripting

FTP files to target Mainframe system

Hi Experts... Greetings for the day..! I just want to FTP the files to mainframe system.. my code is not working..and also i need to put the files in a particular directory in a specific naming format... ftp -i -n ${HOST_NAME} << END_FTP user ${USER_NAME} ${PASSWORD} put ${FILE_NAME}... (3 Replies)
Discussion started by: spkandy
3 Replies

9. Solaris

Secure FTP Problem using Sun SSH on Client system F-Secure on Server system

I am using shell script to do secure ftp. I have done key file setup to do password less authentication. Following are the FTP Details: FTP Client has Sun SSH. FTP Server has F-Secure. I am using SCP Command to do secure copy files. When I am doing this, I am getting the foll error scp:... (2 Replies)
Discussion started by: ftpguy
2 Replies

10. Shell Programming and Scripting

FTP multiple files from remote server to local server

Hi, I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)
Discussion started by: berlin_germany
2 Replies
Login or Register to Ask a Question