Sponsored Content
Top Forums Shell Programming and Scripting will traceroute work for this? Post 68429 by hedrict on Sunday 3rd of April 2005 09:10:19 PM
Old 04-03-2005
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!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

traceroute output?

I understand the concept of traceroute - can anyone explain the output to me e.g. 39ms 39ms 39ms are these the times for each trip it takes? Assuming each machine is pinged 3 times. and how does the RTT work? Is this the time it takes from one machine to another because it doesn't look like... (6 Replies)
Discussion started by: justine petrie
6 Replies

2. UNIX for Dummies Questions & Answers

traceroute dosent work

hi , folks i m back with again some silly question i think.!! i can do ftp , telnet from windows to unix machine , but not vice versa!!! , from unix box , i get connection refused , and ping says not alive. ,...my os . solaris 7 , ok i know ishouldnt load network by using traceroute , but itried... (2 Replies)
Discussion started by: definate
2 Replies

3. Programming

how we can use traceroute

how we can use traceroute in unix c so how we can get the output of traceroute command in c thank u,inadvance sree (3 Replies)
Discussion started by: phani_sree
3 Replies

4. Solaris

is traceroute a problem?

Can somebody tell why 2 and 3 hops(147.149.129.21) are repeated two times? corizon@rds894a016 : /usr/sbin/traceroute 147.149.129.21 traceroute: Warning: Multiple interfaces found; using 10.187.37.35 @ e1000g1075000:4 traceroute to 147.149.129.21 (147.149.129.21), 30 hops max, 40 byte packets ... (1 Reply)
Discussion started by: bvvkrishna
1 Replies

5. UNIX for Advanced & Expert Users

traceroute

Hi, Can any one suggest me an add on feature for the traceroute command. Thanks in advance. Regards, Selvi (4 Replies)
Discussion started by: salvi
4 Replies

6. UNIX for Dummies Questions & Answers

traceroute

Good afternoon Can anyone explain traceroutes to me and when it would be necessary/what situations would call one to use it? (2 Replies)
Discussion started by: iamnew2solaris
2 Replies

7. IP Networking

Traceroute response

I have 20 servers I installed an application to that is returning message " wrong dispatcher or port " when starting agents. They all have the same dispatcher ip and going through the same port number. After verifying there are no application issues, we figured it was firewall related. The Firewall... (1 Reply)
Discussion started by: HFJ
1 Replies

8. UNIX for Advanced & Expert Users

Explain and example of traceroute.

Hi Colleagues, Somebody can explain me and send me examples about traceroute, I know is for network but I need anderstand your funcionality. Thank you for advanced. (2 Replies)
Discussion started by: systemoper
2 Replies

9. IP Networking

Traceroute

I have some question about traceroute: 1. Can we hide our computer from traceroute? (2 Replies)
Discussion started by: budiantho_indra
2 Replies
TRACEROUTE(1)                                                      User Commands                                                     TRACEROUTE(1)

NAME
traceroute - Trace the route to a host SYNOPSIS
traceroute [OPTION...] HOST DESCRIPTION
Print the route packets trace to network host. -f, --first-hop=NUM Set initial hop distance, that is the time-to-live. -g, --gateways=GATES List of gateways for loose source routing. -I, --icmp Use ICMP ECHO as probe. -m, --max-hop=NUM Set maximal hop count (default is 64). -M, --type=METHOD Use METHOD (icmp or udp) for traceroute operations, defaulting to udp. -p, --port=PORT Use destination PORT port (default is 33434). -q, --tries=NUM Send NUM probe packets per hop (default is 3). --resolve-hostnames Resolve hostnames. -t, --tos=NUM Set type of service (TOS) to NUM. -w, --wait=NUM Wait NUM seconds for response (default is 3). -?, --help Give this help list. --usage Give a short usage message. -V, --version Print program version. GNU inetutils 2015-05-15 TRACEROUTE(1)
All times are GMT -4. The time now is 05:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy