[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

02/23/2006 at 01:29AM PST, ID: 21748267
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

ports in use and programs using them

Asked by firepol in Sun Solaris

Tags: solaris, ports, use

I need a command that I can type on a single line that will show me all the ports in use and the name of the programs (eventually also the path) using them.

I searched EE and found some similar questions but without the solution I need:
http://www.experts-exchange.com/Operating_Systems/Solaris/Q_21185151.html
http://www.experts-exchange.com/Operating_Systems/Unix/Q_20887412.html

I cannot install lsof, nor I can install other software. I'm looking for a solution that I can use on every solaris machine (mostly solaris 9 or 8, but if it works also on solaris 7 it would be great) I will access without installing anything.

To make you better understand what I neet: under ubuntu linux I can achieve my goal by issuing this command:

netstat -lpn

which gives me a list like this:

root@myserver:/etc/apt # netstat -lpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN     11883/mysqld
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     6512/smbd
tcp        0      0 0.0.0.0:5901            0.0.0.0:*               LISTEN     6770/Xtightvnc
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN     6546/dovecot
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     6732/apache
tcp        0      0 0.0.0.0:6001            0.0.0.0:*               LISTEN     6770/Xtightvnc
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     6375/inetd
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN     6512/smbd
tcp6       0      0 :::22                 :::*                    LISTEN     6531/sshd
...
the list goes on giving me also the active sockets...

This list is very nice as it showes the "local address" (=port) and the "program name" which is what I need to see.

under solaris:

netstat -an gives me a list which is quite unusable and no program name is showed.
[+][-]02/23/06 06:23 AM, ID: 16028926

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/23/06 06:32 AM, ID: 16029005

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/23/06 07:38 AM, ID: 16029756

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/23/06 07:48 AM, ID: 16029895

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/23/06 08:53 AM, ID: 16030719

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/23/06 10:47 AM, ID: 16031805

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/23/06 10:53 AM, ID: 16031857

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/23/06 11:35 AM, ID: 16032298

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02/23/06 04:08 PM, ID: 16034752

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/23/06 05:51 PM, ID: 16035266

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Sun Solaris
Tags: solaris, ports, use
Sign Up Now!
Solution Provided By: yuzh
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02/23/06 07:54 PM, ID: 16035855

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/23/06 09:34 PM, ID: 16036218

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/24/06 12:52 AM, ID: 16036814

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/24/06 07:43 AM, ID: 16039154

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/24/06 09:09 AM, ID: 16040102

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/24/06 09:26 AM, ID: 16040296

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/24/06 12:01 PM, ID: 16041729

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/24/06 01:13 PM, ID: 16042404

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/24/06 01:21 PM, ID: 16042492

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/24/06 01:44 PM, ID: 16042684

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74