Unix operating system is widely used in various telecom operators, and the backend servers of various business management systems almost all use UNIX operating system. As one of the UNIX operating systems, AIX has been welcomed by many system administrators because of its high stability and good compatibility.
Here are a few ways for everyone to share, to improve the purpose of maintenance, targeted and maintenance efficiency, reduce the incidence of failure, from the daily maintenance management to achieve "targeted", "foolproof."
1. Use the df–k command to check if the file system is full
After logging on to Aix with the root user, type: df–k., after the command prompt "#", indicates that the file system usage is checked in units of K. If the occupancy rate (%iused) exceeds 90%, a space adjustment is required.
2. Use the Errpt |more command to view the system error log
Enter: Errpt |more at the command prompt "#", indicating that the system error log (including hardware and software error messages) is displayed as a paging. According to the information displayed to determine the system hardware and software operating conditions. Enter: Errclear 0 command to clear the existing system log.
3, use the last command to check the system landing situation
At the command prompt "#" after entering: last, to display the individual login user (such as: root, etc.) login information. If you find an abnormal login user or login IP, then the corresponding security checks and processing.
4. Use the Find/-name core–print command to check for large core file generation
Enter: Find/-name core–print at the command prompt "#" to find all files named Core from the system root (huge core files can cause system crashes). If it exists, it is generally deleted directly.
5. Use the Vmstat command to check CPU and memory performance
At the command prompt "#" after entering: Vmstat 5, indicating that the system CPU and memory run every 5 seconds. View the display value of the R (number of processes in the running queue) field of the KTHR (number of processes in the kernel running queue) fields, if the number is 4 times times or more than 4 times times the actual CPU count of the system, it indicates high CPU usage and needs to be considered to increase the system CPU operating frequency ; View the fre (number of free pages) entry for the memory (virtual and real memory usage information) field, or if the value is below 120, indicates a system memory shortage. Sometimes the value is higher than 120, you can adjust the memory according to the actual situation, to see the page (information from page activity) field of Pi (page input from pages), PO (page output to the page), FR (number of free pages) and SR (number of pages searched through the page replacement algorithm) item value, These 4 values are generally 0, and sometimes 1; Finally, the CPU (CPU Utilization) field of us (the time of the user process) and the value of the SY (System process time) entry, the two values should not exceed 90%, otherwise the CPU capacity is insufficient.
6. Use the Lsps–a command to check swap memory space usage
At the command prompt "#" after entering: lsps-a, query swap memory space usage. If the%used field is below 70%, the system is functioning normally.
7. Use the Mail–u root command to check the Mail error report sent by the system to the root user
Enter: Mail–u root at the command prompt "#" to display the mail error report sent by the system to the root user. See if there is a hardware or software error message report and do the appropriate processing.
8. Use the DIAG command to check the operation of the system hardware
Every month with the DIAG command to check the operation of the system hardware, timely detection of the hardware may occur failure.
In summary, as an AIX system administrator, in the daily maintenance work to do a good job of forecasting, the system timely monitoring, the possible failure of the system to stifle in the embryonic stage.
Daily monitoring and maintenance of AIX systems