LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-13-2006, 12:45 PM   #1
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

Rep: Reputation: 30
need ideas: pulling files from PCs on VPN


I would like to pull a number of files from remote PCs that exist on a VPN. I can do it manually but it's semipainfully slow. Is there a fast way to pull this certain something.txt file from each PC? The PCs are either win2k or XP and firewalled up the yinyang. I have remote control of the machines currently but I'd rather write a script to pull them instead of using my remote software and manually grabbing them.

My first thought is to write a bash script to
1)log onto certain IP addy (only about 105 to log into)
2)'get' file c:\somewhere\something\x.log${unique.identifier}
3)close connection & move on
4)grep the files for the data I needed and somehow make them comma separated or something friendly for Oracle to be able to easily slip them into a table.

Really the only part so far that I need ideas on is the getting of the files. The data manipulation is far less important.

Anyone else have a method of pulling a file from a machine automagically? What would I have to do to the firewall (ie, deny all ftp except from a certain IP going to certain IP)? Am I 'up in the night' (don't answer that)? Ideas? Thx.

ß

Last edited by beeblequix; 11-13-2006 at 12:46 PM.
 
Old 11-13-2006, 01:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well what you suggest is a logical process of events, but you've not said much about how you do get access to these boxes, so we've not got enough information to fill in any gaps. what kind of "remote control" is it? how are these vpns configured? what kind of vpns are they? what ports are open on the boxes? there are a million ways to move data between boxes, but it's down to what methods are available to you, and we've no idea what they are.
 
Old 11-13-2006, 02:49 PM   #3
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

Original Poster
Rep: Reputation: 30
sorry, some that data is a tad too sensative to post, and some I'd have to get from the net admin. What I can say is that the remote control software I have is similar to Timbuktu Pro & UltraVNC -- it has visual control (multimonitor) as well as 'explore' and command line. Client is installed on PCs, manager on my PC.

The PCs are on a VLAN, not VPN. Sorry. I think I'm able to answer one of my questions. I think the application I'd use would be VSFTPD (Very secure ftp). I'd have the firewall policy set to allow VSFTPD through the firewall, use a number of variables set to the IP addys set inside the bash script so I could log into machine X, then Y, then Z. I'd use a non-production linux guest to pull these files down to and run my data manipulation there, then send to the network.

I think my question comes down to: How do I code my bash script to NOT prompt me for anything, but to just take data from my script? I just searched for automating ftp transfers and found this link:
http://linuxgazette.net/issue34/izquierdo.html

This info looks promising. Not sure yet if it will matter that my targets are all Windows machines.

Another one:
http://www.nottingham.ac.uk/is/servi...al-hints.phtml

Last edited by beeblequix; 11-13-2006 at 04:18 PM.
 
Old 11-17-2006, 11:33 PM   #4
nitrohuffer2001
Member
 
Registered: Apr 2006
Posts: 165

Rep: Reputation: 19
Have you looked at netcat? You might also try installing cgwyn om the windows boxes with ssh and do a key exchange so your script can simply scp files back an forth with out being prompted or you are going to have to write it in perl and use expect. I think an ssh key exchange would be best for what you are doing.
 
Old 11-18-2006, 03:52 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Too sensitive to post... haha yeah sure. knowing that port 22 on a pc somewhere on earth is open is sensitive information.
 
Old 12-01-2006, 06:06 PM   #6
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

Original Poster
Rep: Reputation: 30
do you really think you had to mock me?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pulling info from files beeblequix Linux - Enterprise 2 10-05-2006 12:43 PM
How do I browse files on a VPN connection? joekm Linux - Networking 1 11-28-2005 03:38 PM
NTFS partition won't let me change files, and ideas? groovetrain Mandriva 7 10-10-2005 05:44 PM
share files on two connected linux pcs shaikhmansoor Linux - General 2 06-18-2005 03:44 PM
Gentoo 2004.2 chroot/pulling files ghazz Linux - Distributions 2 01-25-2005 05:10 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration