LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Daemon monitoring commands

[ILUG] Daemon monitoring commands

Padraig Brady padraig at antefacto.com
Mon Mar 25 21:48:10 GMT 2002


Tim wrote:
> Hi all,
> 
> I would normally just use ps to see if telnetd, sshd, httpd etc are running
> on a server.
> 
> Is there any nice way to list all ports accepting connections on a machine?
> (sort of like an internal port scan I guess...)
> 
> Or something that prints out the services at the current runlevel.  I guess
> I could write a script, but I was wondering if there was some dodgy switch
> to ps or some other util that might do it for me.
> 
> (p.s.  SuSE 7.2 and DGUX 4.0  - no gui)
> 
> Thanks,
> 
> Tim
> 
> 

To find all tcp services listening on your mahcine:

netstat -ta | sed -ne '/LISTEN[ ]*$/p'

Padraig.





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell