Sponsored Content
Full Discussion: netstat
Special Forums IP Networking netstat Post 302074181 by axes on Sunday 21st of May 2006 05:46:49 AM
Old 05-21-2006
For standard applications, /etc/services is O.K.

For non standard applications, is there any way to know process/application name vs port number
axes
 

10 More Discussions You Might Find Interesting

1. IP Networking

Netstat

Giving netstat command on the prompt gives commands such as localhost.43592 localhost.35237 32768 0 32768 0 TIME_WAIT localhost.43594 localhost.43595 32768 0 32768 0 TIME_WAIT localhost.43598 localhost.35237 32768 0 32768 0 TIME_WAIT... (6 Replies)
Discussion started by: DPAI
6 Replies

2. UNIX for Advanced & Expert Users

Netstat command

Hi.., Now, I am reading about the netstat command and its implementation. I have doubts in some options and its functionalities, natstat - M (Which is described as display masqueraded connections), what it means? What is Forwarding Information Base.?(--fib) Thanks in advance,... (3 Replies)
Discussion started by: nagalenoj
3 Replies

3. BSD

question about netstat

For FreeBSD I use this command to determine what ports are listenning netstat -an | grep LISTEN is there another way, perhaps another command? (2 Replies)
Discussion started by: edgarvm
2 Replies

4. IP Networking

netstat output

I can't tell what the output of the netstat command means. Is there anywhere that has this information? I tried the man pages, but they weren't helpful. (3 Replies)
Discussion started by: Ultrix
3 Replies

5. Solaris

netstat -- what am i looking at?

Greetings to all, Here is a line of output from my netstat command cbp031.904 wdcprodhome.nfsd 98304 0 49640 0 ESTABLISHED The only thing i recognize is the unix machine "cbp031" but what is .904 and all the other data telling me? Thanks in advance. (3 Replies)
Discussion started by: Harleyrci
3 Replies

6. Shell Programming and Scripting

netstat command

Hi, In my project we use sftp with batch mode (password less) script in parallel for 14 sessions which connects to 2 different servers alternatively i.e. 7 connects to one server say server1 and the other 7 connects to say server 2. Now the problem is that these 14 sessions are run in... (5 Replies)
Discussion started by: dips_ag
5 Replies

7. UNIX for Advanced & Expert Users

Help with netstat

Hi, I want to list the time for how long a secure connections last to my server/blade. i am using netstat command to get the same, but not sure how to get the time for how long connections is being ESTABLISHED. netstat -na | grep 'ESTABLISHED' | grep :443 |awk '{print $4}' | cut -d: -f1 |... (1 Reply)
Discussion started by: Siddheshk
1 Replies

8. UNIX for Dummies Questions & Answers

Need help with a netstat command

Do I have this command correct to show all current connections/sessions my Solaris box has? It does not seem to do anything. netstat -an | grep EST (6 Replies)
Discussion started by: SIFT3R
6 Replies

9. Red Hat

netstat

Hi Can any body tell me about TIME_WAIT status meaning in the following command output. # netstat -anp|grep 5000 tcp 0 0 127.0.0.1:50006 0.0.0.0:* LISTEN 5058/ccsd tcp 0 0 0.0.0.0:50008 0.0.0.0:* ... (3 Replies)
Discussion started by: mastansaheb
3 Replies

10. OS X (Apple)

netstat

When running netstat -i from the Command Terminal, It returns with 21 different connections.. The addresses all look like this: ::1 fe80:1::1 10:dd:b1:a5:c4:ba with Network names like Linke#2 fe80::8e2d How can I delve deeper into this to clarify what is going on with my network?... (0 Replies)
Discussion started by: dwfiedler
0 Replies
getservent(3N)															    getservent(3N)

NAME
getservent(), getservbyport(), getservbyname(), setservent(), endservent() - get, set, or end service entry SYNOPSIS
DESCRIPTION
The and functions each return a pointer to a structure of type servent containing the broken-out fields of a line in the network services data base, The members of this structure are: The official name of the service. A null-terminated list of alternate names for the service. The port number at which the service resides. The name of the protocol to use when contacting the service. Functions behave as follows: Reads the next line of the file, opening the file if necessary. Opens and rewinds the file. If the stayopen flag is non-zero, the services data base is not closed after each call to (either directly or indirectly through one of the other calls). Closes the file. Each sequentially searches from the beginning of the file until a matching service name (among either the official names or the aliases) or port number is found, or until EOF is encountered. If a non-NULL protocol name is also supplied (such as or searches must also match the protocol. If the system is running the Network Information Service (NIS), gets the service information from the NIS server (see ypserv(1M) and ypfiles(4)). In a multithreaded application, and use thread-specific storage that is re-used in each call. The return value should be unique for each thread and should be saved, if desired, before the thread makes the next call. For enumeration in multithreaded applications, the position within the enumeration is a process-wide property shared by all threads. may be used in a multithreaded application, but resets the enumeration position for all threads. If multiple threads interleave calls to the threads will enumerate disjoint subsets of the service database. Name Service Switch-Based Operation The library routines and their reentrant counterparts, internally call the name service switch to access the "services" database lookup policy configured in the file (see nsswitch.conf(4)). The lookup policy defines the order and the criteria of the supported name services used to resolve service names and ports. OBSOLESCENT INTERFACES
The above reentrant interfaces have been moved from to They are included to support existing applications and may be removed in a future release. New multithreaded applications should use the regular APIs without the suffix. The reentrant interfaces performs the same operations as their regular counterpart (those without the suffix.) However, and expect to be passed the address of a and will store the address of the result at this supplied parameter. An additional parameter, an address to a struct servent_data, which is defined in the file cannot be a NULL pointer. The reentrant routines return if the operation is unsuccessful, or, in the case of if the end of the services list has been reached. is returned otherwise. RETURN VALUE
and return a null pointer(0) on EOF or when they are unable to open EXAMPLES
The following code excerpt counts the number of service entries: WARNINGS
Programs that use the interfaces described in this manpage cannot be linked statically because the implementations of these functions employ dynamic loading and linking of shared objects at run time. AUTHOR
was developed by Sun Microsystems Inc. FILES
SEE ALSO
ypserv(1M), services(4), ypfiles(4), nsswitch.conf(4), thread_safety(5). STANDARDS CONFORMANCE
getservent(3N)
All times are GMT -4. The time now is 03:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy