Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-04-2012
Registered User
 
Join Date: Mar 2012
Posts: 36
Thanks: 5
Thanked 1 Time in 1 Post
Need help with a netstat command

Do I have this command correct to show all current connections/sessions my Solaris box has? It does not seem to do anything.


Code:
netstat -an | grep EST

Sponsored Links
    #2  
Old 06-04-2012
Registered User
 
Join Date: Mar 2008
Location: Italy - EU
Posts: 172
Thanks: 5
Thanked 35 Times in 35 Posts
hi,

may you check what's the current output for
Code:
netstat -an

without piping to grep?

see ya
fra
Sponsored Links
    #3  
Old 06-04-2012
Registered User
 
Join Date: Mar 2012
Posts: 36
Thanks: 5
Thanked 1 Time in 1 Post
it is to long to post.
    #4  
Old 06-04-2012
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 4,636
Thanks: 118
Thanked 257 Times in 246 Posts
So it works then...
Sponsored Links
    #5  
Old 06-04-2012
Registered User
 
Join Date: Mar 2012
Posts: 36
Thanks: 5
Thanked 1 Time in 1 Post
Yes
Code:
netstat -an

works but I wanted to get a cleaning view of th current connections, like 3-4 lines. not so much data that it cuts off the top it goes so long. I know that the command is
Code:
netstat -an | grep ???

I thought it was
Code:
EST

but that doesn't seem to work.
Sponsored Links
    #6  
Old 06-04-2012
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 4,636
Thanks: 118
Thanked 257 Times in 246 Posts
works for me:

Code:
lo4:/export/home/vbe $ netstat -an | grep EST
99.45.34.202.22     99.45.32.55.46903   262088     47 49232      0 ESTABLISHED
99.45.34.202.22     99.45.32.55.42615   262088      0 49232      0 ESTABLISHED

The Following User Says Thank You to vbe For This Useful Post:
SIFT3R (06-04-2012)
Sponsored Links
    #7  
Old 06-04-2012
Registered User
 
Join Date: Mar 2012
Posts: 36
Thanks: 5
Thanked 1 Time in 1 Post
Thanks for verifying the command for me.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
netstat command dips_ag Shell Programming and Scripting 5 11-10-2011 04:24 AM
Netstat command query charneet UNIX for Dummies Questions & Answers 1 12-05-2008 08:12 AM
Netstat command nagalenoj UNIX for Advanced & Expert Users 3 06-16-2008 01:27 AM
netstat command between clustered hosts murphyboy UNIX for Dummies Questions & Answers 4 10-28-2005 04:06 AM
Netstat DPAI IP Networking 6 10-02-2001 10:11 AM



All times are GMT -4. The time now is 05:13 AM.