Sponsored Content
Full Discussion: how we can use traceroute
Top Forums Programming how we can use traceroute Post 302099405 by phani_sree on Tuesday 12th of December 2006 01:06:16 AM
Old 12-12-2006
how we can get the gateway address

how we can get the gateway address.
i know gethostname used for ipaddress
how we can get the system gateway address.
thank u inadvance,
sree
 

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. Shell Programming and Scripting

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... (2 Replies)
Discussion started by: hedrict
2 Replies

3. 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

4. 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

5. 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

6. 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

7. 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

8. UNIX for Dummies Questions & Answers

Traceroute Query

Hi guys, Quick traceroute query. As part of some research I'm doing I need to send a traceroute to an equal number of IPv4 and IPv6 addresses on the net and basically capture the number of hops, and intermediate IP addresses from the traces. This all needs to be automated as there are... (2 Replies)
Discussion started by: churchill
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
gethostname(2)							System Calls Manual						    gethostname(2)

NAME
gethostname - Gets the name of the local host SYNOPSIS
#include <unistd.h> int gethostname ( char *name, size_t namelen ); The following definition of the gethostname() function does not conform to current standards and is supported only for backward compatibil- ity: #include <unistd.h> int gethostname ( char *name, int name_len ); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: gethostname(): XNS4.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies the address of an array of bytes where the host name is stored. Specifies the length of the array pointed to by the name parame- ter. DESCRIPTION
The gethostname() function retrieves the host name of the local host as it is configured on the system. If a fully-qualified domain name is configured as the host name, that name is returned. If sufficient space is provided, the returned name is null-terminated. System host names are limited to MAXHOSTNAMELEN as defined in the /usr/include/sys/param.h file. The gethostname() function allows a calling process to determine the internal host name for a machine on a network. RETURN VALUES
Upon successful completion, a value of 0 (zero) is returned. Otherwise, a value of -1 is returned. If the version of gethostname() provided for backward compatibility returns a -1, errno is also set to indicate the error. ERRORS
If the gethostname() function provided for backward compatibility fails, errno may be set to the following value: The address parameter or address_len parameter gives an invalid address. RELATED INFORMATION
Functions: gethostid(2), sethostid(2), sethostname(2) Standards: standards(5) delim off gethostname(2)
All times are GMT -4. The time now is 05:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy