Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // ==============================
- // Server Uptime And Hardware Information |
- // ==============================
- ?>
- <html>
- <head>
- <title><?php echo $SERVER_NAME; ?> - Server Information</title>
- <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>
- <?php system("uptime"); ?>
- <b>System Information:</b>
- <?php system("uname -a"); ?>
- <?php system("cat /etc/redhat-release"); ?>
- <?php system("cat /var/log/dmesg | grep DMI:"); ?>
- <b>Memory Usage (MB):</b>
- <?php system("free -m"); ?>
- <?php system("grep -i memory /var/run/dmesg.boot"); ?>
- <b>Disk Usage:</b>
- <?php system("df -h"); ?>
- <?php system("cat /proc/partitions"); ?>
- <b>RAID:</b>
- <?php system("cat /proc/mdstat"); ?>
- <?php system("cat /proc/scsi/scsi"); ?>
- <?php system("grep -i Controller /var/run/dmesg.boot"); ?>
- <b>CPU Information:</b>
- <?php system("cat /proc/cpuinfo | grep name | sort -u"); ?>
- <?php system("cat /proc/cpuinfo | grep KB | sort -u"); ?>
- <?php system("cat /proc/cpuinfo | grep cores | sort -u"); ?>
- <?php system("cat /proc/cpuinfo | grep processor"); ?>
- <?php system("grep -i GHz /var/run/dmesg.boot"); ?>
- <?php system("grep -i CPU: /var/run/dmesg.boot"); ?>
- <?php system("grep -i CPUs /var/run/dmesg.boot"); ?>
- <b>Disk Information:</b>
- <?php system("cat /var/log/dmesg | grep ANSI"); ?>
- <b>System temperature:</b>
- <?php system("sensors | grep high"); ?>
- <?php system("sensors | grep Core"); ?>
- </pre>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment