1.脚本部分#!/bin/bash#auto get system infoecho -e "\033[34m\033[1m"cat <服务器管理统计 主机IP主机名cup型号磁盘内存负载机房"; while($row = mysql_fetch_array($result)) { echo ""; echo "" . $row['ip_info'] . ""; echo "" . $row['serv_info'] . ""; echo "" . $row['cpu_info'] . ""; echo "" . $row['disk_info'] . ""; echo "" . $row['mem_info'] . ""; echo "" . $row['load_info'] . ""; echo "" . $row['mark_info'] . ""; echo ""; } echo "";}mysql_close($con);?>
显示结果: