Solved

Solaris netstat

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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

707 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