A. Maintaining the System Running Environment | |||
# | Command | Description | Expected output |
1 | # top | Check the node to make sure that no single process is consuming all of the available memory. Check the physical free memory of the system and whether the SWAP free memory meets the requirements. | The screen lists the 15 most active processes that are currently running on the node. For a single process, the CPU usage should be less than 40%. The total CPU usage should be less than 70%. The memory utilization (real - free)/real should be less than 70%. |
2 | # df –h | Check free space of the system hard disk. | The usage of the file system space should be less than 80%. |
3 | # ntpq -p | check the time synchronization | A table of system clocks appears. The line representing the system clock currently used by the node is marked with an asterisk (*). |
B. Maintaining the Unix System Logs | |||
1 | # more /var/adm/messages | Check this file for error messages | Make sure the log file doesn’t contain the following abnormal information: warning, panic, error, fail, exception, fatal |
2 | # cd /var/log/ # ls –ltr # more syslog.x Where “x” is the most recent syslog number. | Check for the most recent system log file and analyze it. | Make sure the log file doesn’t contain the following abnormal information: warning, panic, error, fail, exception, fatal, reject, alarm etc. |
C. Maintaining the Unix System Processes | |||
1 | # ps -ef | Check which processes are running on the server, which user started the process (UID), process ID (PID), and the command that started the process (CMD). | A list of all processes currently running on the system. The PID is important when you wish to “kill” the process, and the CMD is used to start the process again |
2 | # kill -9 PID_X Where PID_X is the process ID | Kill the process. Note the command used to START the process (CMD) before you kill it; you might want to START it again. | Use this command to kill processes that are using up the system resources. This can be seen from the “#top” command. Use the “#top” command to confirm that some system resources have been freed up after killing the process in question. |
D. Maintaining the TCP/IP Ports | |||
1 | # netstat -an | grep port_x Where port_x is the port number where the application is listening on or communicating on with other external applications. | Verify that the TCP/IP connection is in “LISTEN” or “ESTABLISHED” mode | If the port is functioning properly, you should receive a LISTEN/ESTABLISHED response. A hanging port will return a CLOSE/WAIT response. |
“It has become appallingly obvious that our technology has exceeded our humanity.” Albert Einstein
Wednesday, January 19, 2011
Unix Systems Administration - Server Health Checks
Subscribe to:
Post Comments (Atom)
2 comments:
Hello there, I would like to thank you first of all for this useful information they are really valued.
I got a question!! how can I show the system health of the working directory?!? by using ur commands or others?! thanks!!
Here a few commands that you can run on a directory:
#pwd - Will print the working directory
#mkdir - will create a new directory
#df -h /dir_name will print the disk usage for the directory "dir_name"
Post a Comment