Solved

Solaris netstat

Posted on 1998-10-19
4
1,986 Views
Last Modified: 2013-12-19
Using netstat on Solaris I can see the connections but not the users that own the connections.
Linux's netstat has an option -e to show which user owns which connection.
How do i do that on Solaris ?
Thanks
0
Comment
Question by:boyan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Expert Comment

by:ydsh
ID: 1582467
I typed "man netstat" on my SunOS 5.5.1 workstation, and found that
it seemed that Solaris does not support the function you have descriped above.
That means you cannot know who actually own the connections on Solaris
through the command "netstat". :-(


0
 

Author Comment

by:boyan
ID: 1582468
Well i found out there is a tool lsof that does the job:
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof.tar.gz

It is really good althought I couldn't get it to work on a AFS system.
0
 

Accepted Solution

by:
seena earned 100 total points
ID: 1582469
if u need the users along with the IP Address from where they are connected use "finger" in solaris correct me if am wrong in my answer.

Seena
0
 

Expert Comment

by:wayhigh
ID: 1582470
lsof is GREAT!

it'd be simple to write a tool to cache lsof stats every 1-5 minutes (you decide) to a file in /tmp and use that to grep info out such as who's listening on what port, etc..

I could do that in perl in 5 minutes..

Kevin
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question