【root@www s_info】# more sinfo.php
<?
// ==================================================================
// Server Hardware Information
// ==================================================================
//

?>

<html>
<head>
<title>【 Server Information 】</title>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<STYLE type=text/css>
BODY { FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana,arial, helvetica, serif; margin : 0 0 0 0;}
</STYLE>
</head>
<body>
<pre>
<b>【Uptime】 :</b>
<? system("uptime"); ?>

<b>【System Information】 :</b>
<? system("uname -a"); ?>

<b>【O/S Name】 :</b>
<? system("cat /etc/issue"); ?>

<b>【CPU Information】 :</b>
<? system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>

<b>【Memory Usage (MB)】 :</b>
<? system("free -m"); ?>

<b>【Disk Usage】 :</b>
<? system("df -h"); ?>

<b>【Network info】 :</b>
<? system("cat /etc/sysconfig/network | grep \"GATEWAY\""); ?>
<? system("cat /etc/sysconfig/network-scripts/ifcfg-* | grep \"DEVICE\\|IPADDR\\|NETMASK\\|GATEWAY\""); ?>

<b>【Pstree Usage】 :</b>
<? system("pstree -up"); ?>

</pre>

<br>
<br>
<center>
<font size="1">Copyright &copy; 2008 </font>
</center>
</body>
</html>

html>
<body>
<script type="text/javascript">
document.location.href="http://aaa.domain.com:81";
</script>
</body>
</html>

 

-----------------------------------------------------------------------------

 

<frameset rows="*" border="0">
<frame name="MAIN" scrolling="auto" marginwidth="0" marginheight="0" src="http://aaa.domain.com:81">
</frameset>

+ Recent posts