|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
Quote:
/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
|
|||
|
|||
|
you could probably use super-handy pcp.sh script
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
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 |
|
|