Solved

Solaris netstat

Posted on 1998-10-19
4
1,982 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
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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…

839 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