question about netstat

Thread Tools Search this Thread
Operating Systems BSD question about netstat
# 1  
Old 09-17-2009
question about netstat

For FreeBSD I use this command to determine what ports are listenning

netstat -an | grep LISTEN

is there another way, perhaps another command?
# 2  
Old 09-17-2009
lsof -i
sockstat -l

the man command is your friend.

Last edited by frank_rizzo; 09-17-2009 at 09:01 PM..
# 3  
Old 09-22-2009
sockstat -4 -l -P tcp

for listing only TCP 4 port listen .
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)


When running netstat -i from the Command Terminal, It returns with 21 different connections.. The addresses all look like this: ::1 fe80:1::1 10:dd:b1:a5:c4:ba with Network names like Linke#2 fe80::8e2d How can I delve deeper into this to clarify what is going on with my network?... (0 Replies)
Discussion started by: dwfiedler
0 Replies

2. Red Hat


Hi Can any body tell me about TIME_WAIT status meaning in the following command output. # netstat -anp|grep 5000 tcp 0 0* LISTEN 5058/ccsd tcp 0 0* ... (3 Replies)
Discussion started by: mastansaheb
3 Replies

3. UNIX for Advanced & Expert Users

Help with netstat

Hi, I want to list the time for how long a secure connections last to my server/blade. i am using netstat command to get the same, but not sure how to get the time for how long connections is being ESTABLISHED. netstat -na | grep 'ESTABLISHED' | grep :443 |awk '{print $4}' | cut -d: -f1 |... (1 Reply)
Discussion started by: Siddheshk
1 Replies

4. Homework & Coursework Questions

netstat -r question

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: a. Enter “ping”. Recall that ping is implemented using ICMP echo messages. What would be... (3 Replies)
Discussion started by: coolcalin812
3 Replies

5. Solaris

netstat -- what am i looking at?

Greetings to all, Here is a line of output from my netstat command cbp031.904 wdcprodhome.nfsd 98304 0 49640 0 ESTABLISHED The only thing i recognize is the unix machine "cbp031" but what is .904 and all the other data telling me? Thanks in advance. (3 Replies)
Discussion started by: Harleyrci
3 Replies

6. UNIX for Dummies Questions & Answers

netstat not working

Hello, One of the solaris machine in our network is giving an error when the netstat command is executed. soloman:/home/db2admin->netstat ip open: Permission denied can't open mib stream: Bad file number But it works with root. I couldnt' get any useful info during my search in google. ... (2 Replies)
Discussion started by: k_pranava
2 Replies

7. IP Networking


Hi what is the command to see the process name/application name along with the port number, connection status ... netstat is not giving process/application name Is there any way to know which application is holding which port? Thanks in advance (3 Replies)
Discussion started by: axes
3 Replies

8. UNIX for Dummies Questions & Answers

Netstat question

I'm sure this a simple networking question. I was performing a traceroute to a client of ours that connects to us over the internet. They were having problems connecting to us and I when I did the traceroute command it would stop at about 5 hops and give me 3 stars continously (* * *) What does... (1 Reply)
Discussion started by: eloquent99
1 Replies

9. IP Networking

TIME_WAIT in netstat

Why would I get TIME_WAIT when i netstat a port?? What would be some scenarios of this situation?? (1 Reply)
Discussion started by: eloquent99
1 Replies

10. IP Networking


Giving netstat command on the prompt gives commands such as localhost.43592 localhost.35237 32768 0 32768 0 TIME_WAIT localhost.43594 localhost.43595 32768 0 32768 0 TIME_WAIT localhost.43598 localhost.35237 32768 0 32768 0 TIME_WAIT... (6 Replies)
Discussion started by: DPAI
6 Replies
Login or Register to Ask a Question