Solved

Solaris netstat

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now