Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

List of Ports being used.

Solaris


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 04-08-2010
EmbedUX EmbedUX is offline
Registered User
 
Join Date: Sep 2009
Last Activity: 5 June 2013, 4:49 AM EDT
Posts: 65
Thanks: 3
Thanked 0 Times in 0 Posts
Tools List of Ports being used.

Hi,

I have 2 queries:

a) Is it possible that a port no., not defined in /etc/services, be used by an application.

b) how do i find the list of ports is being currently used on my Solaris box(if entry not made into /etc/services) I donot have "lsof" installed on my box.
Sponsored Links
    #2  
Old Unix and Linux 04-08-2010
pshelke pshelke is offline
Registered User
 
Join Date: Nov 2007
Last Activity: 2 February 2012, 11:40 PM EST
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
MySQL find the port no by netstat command

You can use the -n option to netstat to get port numbers instead of having the utility try to provide names for services:

netstat -an | egrep 'Proto|LISTEN'
Sponsored Links
    #3  
Old Unix and Linux 04-08-2010
pupp's Unix or Linux Image
pupp pupp is offline Forum Advisor  
cap_10hdx 1
 
Join Date: Feb 2008
Last Activity: 22 September 2010, 2:56 PM EDT
Location: Jersey Shore
Posts: 647
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
a) Is it possible that a port no., not defined in /etc/services, be used by an application.
yes

/etc/services does not necessarily show what ports are open on your specific host. its more a repository for translating port numbers to more meaningful, human readable names... and those that are properly registered with the iana. (NIS maps "services.byname" and the NIS+ table "services" are counterparts).

if you run `netstat -a`, /etc/services will be used to translate a port number to a meaningful name. if you run `netstat -an`, port numbers will not be translated.

you can change /etc/services to whatever you like.
    #4  
Old Unix and Linux 04-09-2010
masloff masloff is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 26 July 2013, 9:25 AM EDT
Location: Kiev, UA
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
you could probably use super-handy pcp.sh script
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Splitting a list @list by space delimiter so i can access it by using $list[0 ..1..2] shriyer Shell Programming and Scripting 1 07-29-2009 02:05 PM
List TCP ports with process vimes Solaris 7 10-30-2008 11:22 AM
How to find list of userdefined ports in aix kittu1979 AIX 1 05-08-2008 04:19 AM
get the list of open ports in unix? zainab UNIX for Dummies Questions & Answers 1 04-14-2008 10:09 AM
list all ports and their relative IP@ if any samsal_991 UNIX for Dummies Questions & Answers 4 04-10-2006 11:16 AM



All times are GMT -4. The time now is 02:56 PM.