How do I find out if a remote system is still alive, if certain services are running, which processes are running, etc.?

Want to support HowtoForge? Become a subscriber!
Submitted by admin (Contact Author) (Forums) on Mon, 2006-08-07 15:58. :: Linux

You can use ping to see if the system is alive:

ping -c4 <system's IP address>

To see if a certain service is still alive, use the telnet command:

telnet <system's IP address> 25 (for SMTP)

telnet <system's IP address> 80 (for HTTP)

telnet <system's IP address> 110 (for POP3)

You can login to the system using SSH (port 22) (use PuTTY if you are on a Windows PC; PuTTY is an SSH client for Windows), and when you are on the system, you have a few useful tools to gather more information:

uptime (shows how long the system has been up)

ps aux (shows a list with all running processes)

netstat -tap (shows a list of all services that are listening on some port)

top (shows the system load)

dmesg (shows bootup messages of the last boot)

You can also have a look into the log files in /var/log/ to find out about errors, etc.

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.