The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
is traceroute a problem? bvvkrishna SUN Solaris 1 05-24-2008 12:08 AM
how we can use traceroute phani_sree High Level Programming 3 12-12-2006 02:06 AM
usefulness of the traceroute command TRUEST UNIX for Dummies Questions & Answers 6 05-29-2003 09:09 AM
traceroute dosent work definate UNIX for Dummies Questions & Answers 2 06-21-2002 12:33 AM
traceroute output? justine petrie UNIX for Dummies Questions & Answers 6 05-28-2002 10:25 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-03-2005
hedrict hedrict is offline
Registered User
  
 

Join Date: Jun 2001
Posts: 35
will traceroute work for this?

hello all-
I am soon to convert a large scale ftp server and my problem is this. There are currently over 50,000 ftp profiles (each one within an individual file) that I need to determine which of the 2 interfaces it is traveling to get to its destination.
My plans were that I will loop thru individual files (a profile containing all of the ftp information for one transmission), within the file I read in a parm named ADDRESS="someipaddress", issue a traceroute command against the address. If I see within the traceroute the first hop going 192.168.1.1 then I can assume that it travels the internal interface however if I see the first hop as 191.144.1.1, then I know this an 'external' ftp. For everyone that I identify as and 'internal' FTP, I will (within the file) change a parm called RESOURCE=FTP to be RESOURCE=FTP_INT) and each that I identify as 'external will change from RESOURCE=FTP to RESOURCE=FTP_EXT.

I know there is a lot of very sharp individuals monitoring this site and I was wondering is there a better way to determine which NIC a ftp is traveling than a traceroute command? Will my idea even work? Might I get some sample code for the traceroute piece?


Thanks in advance for your help!
  #2 (permalink)  
Old 04-04-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,124
I would think that you should have a list of your internet ip address ranges. It might be as simple as "is the address 192.168.*.*".
  #3 (permalink)  
Old 04-04-2005
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,754
I don't fully understand.

You should not need to do a traceroute. You can determine the information you need from your routing table and search files based on this information.

What routing protocol are you running? Or, as I suspect, are you simply static routing?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0